Class 11 Computer Science Chapter 2 Introduction To Python Quiz 86 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. An expression like 2 + 2 in Python consists of .....
2. What widget would you use to display a single line of text input in Tkinter?
3. Can selenium be used for automation?
4. What does the keyword 'if' represent in Python?
5. Is this the correct code for a list?register = \{"Sam", "Pheobe", Georgia", Richard"\}
6. To execute a Python program, you need a Python interpreter.
7. What will the following code output if the variable 'age' is set to 12? 'print("You are '' + str(age) + '' years old.")'
8. Which one is the assignment operator?
9. Which keyword is used for function?
10. What is the output of the following code? "'pythonprint("The length is", 5, "metres.") "'
11. What is the purpose of the pass keyword in Python?
12. In programming, which word means to break something down into smaller chunks?
13. You can check code in the Python
14. Which expression converts numbers = (1, 5, 7, 1) into a mutable collection?
15. How do you write the number ten as a string in Python?
16. Which statement will print the temperature in Celsius entered by the user?
17. Which of the following keywords is used to create an anonymous function in Python?
18. For i in range(1, 4):print(i)#end loop
19. What will be the output of the following code? "'pythonprint("Python"[3]) "'
20. Which statement is used for decision making in Python?
21. Which of the following is true about the while loop?
22. Which mode of Python Interpreter allows to execute multiple statements saved in a file with extension .py ( can be Module/Script/Program file)
23. Which function is used to convert a number or string to an integer in Python?
24. What is the memory location name known as in Python. When using this high level language?
25. What is the result of the expression 5 + 3 in Python?