Page 100 - PlugGPT_V2.0_C7_Flipbook
P. 100
E. Long answer type questions.
1. What are relational operators ? Explain with the help of an example.
2. What is the use of comments in programming? How many types of comments are there in
Python?
3. What do you mean by high level language? Explain 3GL and 4GL.
Mind Boggler
A. Competency-based/Application-based question: Experiential Learning
Aarushi finished writing a program in Python and saved it successfully but now she has forgotten the
option to execute a program. Tell her which option she should use.
...........................................................................................................................................................................................................
...........................................................................................................................................................................................................
B. What will be the output of the following programs?
Critical Thinking
1. a = 4.5 2. y = 10
b = 2 y += 2
print (a//b) print(y)
Subject Enrichment
Write a program to:
convert kilometre unit to metre.
input five names from the user.
calculate the area of a square.
Write a Python program to demonstrate different data types: integers, floats, and strings.
Create variables for a student's age, height, and name, and print them.
Write a Python program to calculate simple interest. The program should take the
principal amount, rate of interest, and time (in years) as input from the user and print the
calculated interest.
Formula: Simple Interest = (Principal * Rate * Time) / 100
1. Discuss about Python programming modes with the students.
2. Go through all the other topics covered in this chapter.
3. Tell the students about the importance of Python.
98 Premium Edition-VII

