Page 28 - Modular v1.1 Pyhton
P. 28
4. Which of the following is true?
a. Comments are for programmers for better understanding of the program
b. Python Interpreter ignores comments
c. You can write multi-line comments in Python using triple quotes, either '''or"""
d. All of the above
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 display output on the screen. ……………………
2. Assignment operators are used to perform arithmetic operations. ……………………
3. The relational operators are used to make a decision. ……………………
4. The AND operator returns true, if both operands are true. ……………………
5. Comments are the most helpful part of any program. ……………………
C. Fill in the blanks using the words given below.
string, operators, false, precedence, assignment
1. …………………… of operators determines the order in which the operators are executed.
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. …………………… are special symbols which perform arithmetic and logical computation.
5. Logical OR operator returns ……………………, if both operands are false.
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 is the use of relational operators in Python?
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?
26 Touchpad MODULAR (Version 1.0)

