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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is pip?
2. What is the output of the following code?for i in range(3):if i == 2:breakprint(i)
3. The input() function in Python can be used to
4. An escape sequence represents how many characters?"\t"
5. What is the end after if statements?
6. What will the following code output?if 5 > 3:print("True")else:print("False")
7. What is the function to exit the turtle graphics window?
8. Write the output of the following:print(range(0, 8, 2))
9. Which of the following declarations is incorrect in python language?
10. Which of the following is NOT a built in module in Python?
11. What is the output of the following code?for i in range(5):if i == 2:continueprint(i)
12. Which of the following is a valid tuple declaration?
13. What does len("Python") return?
14. What will be the output of the following code? "'python# This is a commentprint(2 ** 3) "'
15. What will be the output?name = 'Dave'greeting = "Good morning" + nameprint (greeting)
16. What character is used to indicate a comment in PLS?
17. What will the below Python code will return?list1=[0, 2, 5, 1]str1="7"for i in list1:str1=str1+iprint(str1)
18. What is the output of the following code? "'pythonprint(type(3.14)) "'
19. What is the main purpose of the Python Software Foundation?
20. What is the correct full form of IDLE in Python?
21. Which of the following is the correct way to check if a variable 'weight' is greater than 10 in Python?
22. Python keywords are:
23. Where to write explanatory text in Google Colab?
24. Python files are saved with which extension?
25. Which operator is used for concatenation in the slides?