Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 27 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the increment operator
2. Say whether the following statement is true or false?"True and False are special values that belong to the class bool; they are not strings"
3. Which one of the following is not a keyword in Python language?
4. What will be the output for the following code:for x in range(6):print(x)
5. A store your program must use as an identifier to keep track of a value is called a
6. Slicing stringx="BOnvoyageprint(x[4:])
7. When writing an if/else statement, you
8. Lists are created using square brackets:
9. I want to allow the program to repeatedly ask the user to enter their guess if it does not equal the answer ..... Which option do I use?
10. What data type can hold more than one value?
11. Which commands would draw a triangle
12. Statements or instructions written by a programmer in a language that computers can understand defines .....
13. Predict the output:>>>str1="Rajathi Raja">>>print(str1.count('Raja'))
14. What will be the output of the following code:print (type(type(int)))
15. Which of the following modules need to be imported to handle date time computations in Python?
16. What data type would store the value:True
17. Tuples in Python are mutable
18. What is the result of the following code?print(10 == 9)
19. What is wrong with the following code? esports = ("Donkey Kong", "Galaga", "Pac Man")esports[1] = "Centipede"
20. Predict the output from the following code:print("3*4+5")
21. What purpose do wildlife drop centers serve?
22. Which of the following is the correct code to define a function?
23. If foo is equal to 3, what is the value of foo after this operation?foo /= 3
24. What is the official logo of Python?
25. What value is stored in the "total" variable after the following code runs? total = 0 for i in range(1, 4):total = total + i