Chapter - 1 - Python Revision Tour - 1 (One Mark, MCQ Questions)
Chapter - 1 - Python Revision Tour - 1 (One Mark, MCQ Questions)
c. print("hello\"example\"test.txt") d. print("hello"\example"\test.txt")
13. Which value type does input() return ?
c. print('Eina\nMina\nDika') d. print('Eina
Mina
Dika')
16. Which of the following is valid arithmetic operator in Python:
a. // b.? c. < d. and
II. Fill in the Blanks
1. The smallest individual unit in a program is known as a ________.
2. A token is also called a ________________.
3. A ___________ is a word having special meaning and role as specified by programming language.
4. The data types whose values cannot be changed in place are called ___________ types.
5. In a Python expression, when conversion of a value's data type is done automatically by the
compiler without programmer's intervention, it is called ______________________.
6. The explicit conversion of an operand to a specific type is called ____________.
7. The _______ statement is an empty statement in Python.
8. A _______ statement skips the rest of the loop and jumps over to the statement following the loop.
9. The __________ statement skips the rest of the loop statements and causes the next iteration of the
loop to take place.
10. Python's ______________ cannot be used as variable name.
III. True/False Questions
1. The expression int(x) implies that the variable x is converted to integer. -___________
2. The value of the expressions 4/(3*(2 - 1)) and 4/3*(2 - 1) is the same. -___________
3. The value of the expressions 4/(3*(4 - 2)) and 4/3*(4 - 2) is the same. -___________
4. The expression 2**2**3 is evaluated as: (2**2)**3. -___________
5. A string can be surrounded by three sets of single quotation marks or by three sets of double
quotation marks. - ___________
6. Variables can be assigned only once. - ___________
7. In Python, a variable is a placeholder for data. - ______________
8. In Python, only if statement has else clause. - _____________
9. Python loops can also have else clause. - _________________
10. In a nested loop, a break statement terminates all the nested loops in one go. - ____________