Page 35 - 2501_KVS_C-7
P. 35
3. Which key is used to execute a program?
4. What is the purpose of the print() function?
5. What is a comment? Which symbol is used to define a comment?
B. Fill in the blanks.
1. ________________ key is used to execute a program.
2. ________________ is used to declare a comment in a Python program.
3. ________________ function is used to display output.
4. ________________ is an important part of a program to get output.
5. Python program file are saved with ________________ extension.
C. Match the following:
A B
1. Compilation process a. .py
2. # b. is a function
3. File Extension Name c. F5
4. Output d. Comment
5. Print() e. Resultant value
D. Tick (ü) the correct option.
1. Which function key is used to execute a Python program?
a. F9 b. F11 c. F5 d. F1
2. Which symbol is used to define a comment in Python?
a. " b. ** c. # d. //
3. What is the extension of a Python program file?
a. .px b. .pz c. .py d. .pp
4. Which of the following might you not get after executing a program?
a. Error b. Result c. Expression d. Output
5. print() function is used to?
a. Output b. Input c. Process d. Interpret
E. State whether these statements are true or false.
1. $ is used to display a comment in a Python program.
2. PRINT("Hello") and print("Hello") will display the same output.
3. F5 key is used to execute a Python program.
4. Each Python program is stored in a separate file containing .py extension.
5. Python contains a text editor and interpreter in IDLE.
Python Programming 33

