Page 77 - ModularV1.1 _c8_flipbook
P. 77
Exercise
ü
A. Tick ( ) the correct option.
1. Which of the following symbols is used to write comments in Python?
a. = b. # c. $
2. Which of the following statements is used to take the input from the user?
a. del( ) b. list( ) c. input( )
3. Python was developed in 1991 by .......................... .
a. Guido Van Rossum b. Mitchel Resnick c. None of these
4. Which of the following variable is invalid?
a. Neha_Bhatia b. Priya $pay c. _Usha123
B. Write ‘T’ for true and ‘F’ for false.
1. Keywords are the reserved words in Python. ..........................
2. Python files are saved with .py extension. ..........................
3. The values on which an operator works are called operands. ..........................
4. IDLE stands for Integrated Document Level Environment. ..........................
5. The == operator is used to check the equality between two values. ..........................
C. Fill in the blanks using the words given below.
reserved, object-oriented programming, print( ), operators, input( )
1. Python is an .......................... language.
2. Keywords are the .......................... words in Python.
3. .......................... are special symbols used to perform arithmetic or logical computation.
4. .......................... statement is used to print the output on the screen.
5. .......................... statement in used to take the input from the user.
D. Short answer type questions.
1. What is Python?
......................................................................................................................................................................................
2. Explain the usage of Arithmetic operators % and * * with an example.
......................................................................................................................................................................................
3. Define character set.
......................................................................................................................................................................................
Introduction to Python 75

