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

Quiz Instructions

Select an option to see the correct answer instantly.

1. The 'in' operator is used to check if a value exists within an iterable object container such as a list. Evaluates to true if it finds a variable in the specified sequence and false otherwise.
2. An empty list can be declared as
3. Consider the code:a=21; b=6print(a/b); print(a//b); print(a%b) What is the result?
4. Comparison Operators:Select the correct operator for equals to
5. What is the output of the following piece of code?class A:def ..... init ..... (self):self.multiply(15) print(self.i) def multiply(self, i):self.i = 4 * i;class B(A):def ..... init ..... (self):super() ..... init ..... () def multiply(self, i):self.i = 2 * i;obj = B()
6. While True: ..... breakWhat does a break statement do inside the "While-True" loop
7. What is the output of the following code?p, q, r = 10, 20, 30print(p, q, r)
8. Names = ["Hyderabad", "New Delhi", "New York"]What gets printed when you saynames[1][-1]
9. An exception can be manually triggered by the command
10. What is elif in Python?
11. What is a Count-Controlled loop?
12. What is the syntax to check if a value is greater than another value in Python?
13. Mylist = ["a", "b"]mylist[1] = "c"'print(mylist)
14. What is the output of program below?mariana ..... islands = ['Saipan', 'Tinian', 'Rota']mariana ..... islands.append('Guam')print(mariana ..... islands)
15. Which of the following would be an example of a float variable:
16. What is one of the ecological impacts of Burmese Pythons in Florida?
17. What is the output when we execute list( "hello" )?
18. A loop that repeats forever until the level is beaten
19. Which is NOT a data type in Python?
20. In Python, Dictionaries are
21. What is an output?
22. Look at the following code:L = 50W = 30Area = L * Wprint ("Area")What is the result of this code?
23. If I want to store my name in a variable, which of the following would be a good variable name in best practice?
24. Which operators are used to compare 2 values whether it is equal?
25. What concept repeats whatever is inside it?