Page 92 - TP_Modular_V2.1_Class6
P. 92
B. Write 'T' for true and 'F' for false.
1. The print() function allows to display output on the screen while a
program executes. ...................
2. A compiler converts the entire source program into machine language
before executing. ...................
3. The relational operators are used primarily in the expression evaluation to
make a decision. ...................
4. A variable can hold different types of values. ...................
C. Fill in the blanks using the words given below:
string, Guido van Rossum, false, input( ), assignment
1. Python was developed by ..............................
2. The ............................. operators are used to assign the value of the right expression to the left
operand.
3. A ............................. value is a collection of one or more characters put in single or double quotes.
4. The ............................. function allows to take user’s input while a program executes.
5. Logical OR operator returns ............................., if both operands are false.
D. Short answer type questions.
1. What is the use of variables in Python?
....................................................................................................................................................................................................
2. Define the term data types.
....................................................................................................................................................................................................
3. What is low-level language?
....................................................................................................................................................................................................
E. Long answer type questions.
1. List the relational operators used in Python with the help of an example.
....................................................................................................................................................................................................
....................................................................................................................................................................................................
....................................................................................................................................................................................................
2. What is the use of comments in programming? How many types of comments are there in
Python?
....................................................................................................................................................................................................
....................................................................................................................................................................................................
....................................................................................................................................................................................................
90 Modular (Ver. 2.1)-VI

