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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is displayed to the screen when the following code runs? esports = ["Donkey Kong", "Galaga", "Pac Man"] esports.insert(0, "Centipede") print(esports)
2. What is the output of the following code?Time = "Day" Sleepy = False Pajamas = "Off" if Time == "Night" and Sleepy == True:Pajamas = "On" print(Pajamas)
3. Variable names can start with .....
4. Which data type is used to store whole numbers in Python?
5. ..... function can be used to insert an element/object at a specified index.
6. ..... is a data type that contains a single character such as A, a, Z, z etc.
7. What is an example of a boolean?
8. What is the output of the code shown below?g = (i for i in range(5))type(g)
9. What is the name of the method that is always called when a new object is created from a class?
10. Which of these is correct Python conditional statement?
11. What will be printed to the screen?x = 5y = "John"print (x + y)
12. Comparison Operators:Select the correct operator for less than or equal to
13. Makes it easy to repeat steps over and over
14. The order of the commands in a program.
15. Which symbol is used to make a comment line in Python?
16. Numbers = [1, 2, 3, 4, 5]Which of the following code removes all the elements from the list but retains the list
17. What will the output be from the following Python code?Print("Hello world!")
18. Which symbol means "not equal" ?
19. Select the correct operator for subtraction:
20. What is the index of "grape" in the list[ "apple" , "grape" , "orange" , "watermelon" ]?
21. What will be the value of variable y after execution of following Python code?x="55"y=x + str(9)
22. The rules for how programming languages statements can be assembled is known as
23. What is the Python Software Foundation?
24. How many parameters are there in the sum() function call below?sum(1, 3, 5)
25. If I want to store multiple names in variables, which of the following would be good variable names in best practice?