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

Quiz Instructions

Select an option to see the correct answer instantly.

1. ..... are reserved words.
2. Which symbol stands for multiply?
3. To repeat until a particular condition is true use:
4. What will the following code output? 'print("5 + 3 =", 5 + 3)'
5. Which of the following is the correct syntax for a while loop in Python?
6. The Raspberry Pi devices used in this course use which operating system (O/S)?
7. What will happen if you run this code print('red is my favourite colour") (a)
8. What is the result of the expression 'Hello' + ' World'?
9. Which statement correctly assigns the string "Tanner" to the variable name?
10. Which of the following is a valid integer in Python?
11. What is one reason for Python's huge community support?
12. Which of the following is a key design feature of Python that enforces code structure?
13. What will be the result of the following import statement?from math import *
14. How do you add the value '9' to the end of a list called 'numbers'?
15. What does the 'append()' method do in a list?
16. What will be the output of the following code?total = 0for i in range(1, 4):total += iprint(total)
17. Which Python keyword is used to handle an alternative condition that should be checked only if the initial if statement is false?
18. What is the correct way to output "Hello, World!" in Python?
19. What does a cross platform language mean?
20. Apa tujuan dari pernyataan 'if' dalam Python?
21. What is the output of print(2 + 3)?
22. What is the first step to save a Python program?
23. Full form of IDLE
24. Which subprogram is used to set the color of the pen in the turtle library?
25. Which arithmetic operator is used to calculate the remainder (or modulus) after division?