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

Quiz Instructions

Select an option to see the correct answer instantly.

1. The "break" command:
2. What is an input?
3. Comments are
4. What is the output of program below?mariana ..... islands = ['Saipan', 'Tinian', 'Rota', 'Guam']mariana ..... islands.sort()print(mariana ..... islands)
5. Do you think a variable to store a car's value would be a class or instance variable?
6. Why is iteration important?
7. Print(9>2 and 6<=6)
8. Choose the correct data type:-5.88
9. A prompt means
10. What will be displayed on the screen when the following code is run? esports = ["Donkey Kong", "Galaga", "Pac Man"] print( esports[1] )
11. How many return statements can you place inside one function body?
12. What will be the data type of num1 if the following code is executed?num1=float(5)
13. Why the following variable name invalid:1st ..... Name
14. When do you know when you come to the end of the loop?
15. Word = "amazing"For the given string if we run word[2:5] what does it mean?
16. Which of the following would NOT work as a variable name?
17. Which of the following is the correct way to add the number 4 to mylist?
18. Why is it important to continue researching Burmese Pythons?
19. Suppose B is a subclass of A, to invoke the ..... init ..... method in A from B, what is the line of code you should write?
20. Fill in the blank such that the following Python code results in the formation of an inverted, equilateral triangle.import turtlet=turtle.Pen()for i in range(0, 3):t.forward(150)t.right( ..... )
21. If Python were to get into a fight with JavaScript, who would win?
22. Str="world of python programming"str.upper()
23. Random.random() generates a floating point number between ..... and .....
24. A character or thing that can perform actions
25. Which of the following is NOT a reason that loops are useful when writing code?