Page 120 - Touchpad_Plus_V3.2_Class 6
P. 120
5. Which of the following symbol(s) is/are used for comments in Python?
a. // b. ''
c. /**/ d. #
B. Fill in the blanks using the words given below:
Hints
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.
C. Write 'T' for true and 'F' for false.
1. The print() function allows to display output on the screen while a program executes. ........................
2. Assignment operators are used to perform arithmetic operations between two
operands. ........................
3. The relational operators are used primarily in the expression evaluation to make
a decision. ........................
4. A variable can hold different types of values. ........................
5. Comments are the most helpful part of any program. ........................
D. Short answer type questions.
1. What do you mean by expression ‘a = 8’?
....................................................................................................................................................................................
2. What is the use of variables in Python?
....................................................................................................................................................................................
3. Define the term data types.
.....................................................................................................................................................................................
4. What is operator precedence?
.....................................................................................................................................................................................
5. What does IDLE stands for?
.....................................................................................................................................................................................
118 Plus (Ver. 3.2)-VI

