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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What will be the output of the following Python code?x = ['ab', 'cd'] for i in x:x.append(i.upper()) print(x)
2. What will be the output of the following code? "'pythonprint(type(7)) "'
3. What will the following code output?print(2 == 2.0)
4. What is an example of a task a robot controlled by Python can do?
5. Which of the following will store the value 3.5 as a float in Python?
6. What will print(len([1, 2, 3, 4])) output?
7. Which of these is NOT a data type?
8. What will be the output of this code:x = 10; if x < 5:print('Low'); else:print('High')?
9. Why does a 'NameError' occur in Python?
10. What will this code print? "'pythonprint("My favourite colour is blue") "'
11. What is the output of the following code? print('A' == 'a')
12. Named reference that holds data in memory. Assigned using the "=" sign with name on left
13. A block is
14. How many times will the loop run?for i in range(1, 6):print(i)
15. What will be the value of 'result' after executing the following code?result = 10 > 5 and 3 < 2
16. Which of the following is the equal to comparison operator in Python (used to check if two values are the same)?
17. What is the decimal of binary 111?
18. Python is ..... language
19. Which data type can store numbers, letters and symbols?
20. Module-2:True or False:Pretty Printing is a topic under Dictionaries and Structuring Data.
21. What does the 'len()' function do in Python?
22. What will the output be from the following code?print("Hello world!" * 2)
23. What does Python turtle allow you to do?
24. What programming language do web developers use to create dynamic web applications besides HTML and CSS?
25. You want three different messages for weather: "rainy", "sunny", or "snowy" . Which structure should you use?