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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Low-level languages are more efficient that high-level ones.
2. What will the output be from the following code?print("Hello world!")
3. What will be the output of the following code? 'print("Learning", "Python", "is fun!")'
4. Which of the following statements about variables is true?
5. What is an error in programming?
6. What is the primary purpose of a computer program?
7. Python (TM) is owned and managed by
8. Which of the following is NOT a Python data type?
9. Which of the following is not correct about Python?
10. L = [1, 3, 5, 7, 9]print(L.pop(-3), end = ' ')print(L.remove(L[0]), end = ' ')print(L)
11. Which of these professions might use Python?
12. Which is the most appropriate data type for: "13th December"
13. What command is used to start drawing a circle?
14. Which of the following is a programming language?
15. What keyword is used to exit a loop early?
16. Which errors are detected by the Python IDLE?
17. What will print(len('Python')) output?
18. Which of these is the correct code for creating a list of names?
19. What is the purpose of importing the randint function from the random module?
20. What will the following code do? "'pythontry:print(1 / 0)except ZeroDivisionError:print("Cannot divide by zero") "'
21. Number1 = 15number2 = 10total = number1 + number2What is total?
22. What will the following code output?if not 0:print("True")else:print("False")
23. What is the purpose of the 'return' statement in a function?
24. Smallest element of Python coding is called .....
25. What does the following code do? "'pythonname = "Sam"print(name) "'