Page 111 - TP_Play_V2.1_class6
P. 111
4. Which of the following is true?
a. Comments are for programmers for better understanding of the program.
b. Python Interpreter ignores comments.
c. Both a. and b.
d. Logical operators are used to Split conditional statements as operand.
5. Which of the following symbol(s) is/are used for comments in Python?
a. " b. /**/ c. # d. %
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 in the expression 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 side expression to the left
side 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?
.....................................................................................................................................................................................................
.....................................................................................................................................................................................................
Introduction to Programming Python 109

