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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which statement is used to skip the current iteration and move to the next one?
2. What is the main objective of the Python programming class?
3. What is a correct syntax to output "Hello World" in Python?
4. Which of these stores a piece of data, and gives it a specific name?
5. What does the Python 'print()' function automatically add to ensure that console output appears on separate lines?
6. Which job might involve using Python to build robots?
7. What data type is "67" ?
8. Python is a popular programming language used for .....
9. Which symbol is the assignment operator in Python?
10. How do you define a list in Python?
11. If else statement
12. Which function is used to read a CSV file into a Pandas DataFrame?
13. In the expression a + b, what are a and b called?
14. Which keyword is used to define a function?
15. What is the official website to download Python?
16. Is python an interpreted language?
17. Which of the following is a valid comment in Python?
18. Which of these is a Python list method?
19. Which of the following is an invalid variable?
20. How many times will the following loop execute?for i in range(5):print(i)
21. Your program asks people how much money something costs and saves it as a variable named "price" . Assuming users enter the amount correctly, which command will result in the value containing dollars BUT NO cents.
22. Which of the following is used to create a list in Python?
23. What will the following code output if diceroll equals 4?from random import randintdiceroll = 4if diceroll > 3:print(diceroll, "is a large roll")else:print(diceroll, "is a small roll")
24. What is the correct function to display output to the console in Python?
25. Identify the keyword that accesses an instance's attributes when three objects are created.