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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of the following best describes how many times the statements in the body of a "while" loop will run?
2. In python the ' STRING data type' can be defined as ..... ?
3. [1, 2, 8, 9] < [9, 1]What will be the result if we compare these two lists?
4. Each item in a list has an index. What is the first index in a Python list?
5. Look at the following code:Length = 50Width = 30Area = Length * Widthprint (Area)What is the result of this code?
6. Which of the operator means less than equal to?
7. Which is the powerful function used for formatting strings?
8. If i want to continuously check for a correct answer, what loop would i use?
9. Which of the following symbols is used in Python to mean "Equal to" ?
10. Python functions=lower("INDIA)print(s)
11. Why do we learn Python?
12. Say True or False:Bitwise shift operators (<<, >>) has higher precedence than Bitwise And(&) operator
13. True or False:You need to convert an integer to a string before you can use it in the print() function.
14. What is the output of the following piece of code?class A:def ..... init ..... (self, x=3):self ..... x = x class B(A):def ..... init ..... (self):super() ..... init ..... (5) def display(self):print(self ..... x)def main():obj = B() obj.display()main()
15. Is the following statement true or false?More than one condition cannot be used with an IF statement.
16. True or False:Python can be used to make games and phone apps.
17. What is the output of the following piece of code when executed in Python shell?>>> a=("Check")*3>>> a
18. Which of the following pieces of code defines a list of all the numbers from 4 to 12?
19. Which of the following are valid string manipulation functions in Python?
20. What is the output of the following code:print 10//3
21. What is missing in the square braces?cheer = "Go Eagles!"print (cheer[ ] + cheer [ ] + cheer [ ])If the output is Goggles
22. Which type of Programming does Python support?
23. Str="world of python programming"str+=" store"str.replace('o', 'O')
24. The Boolean operator that means "not equal to" is
25. What will the output be from the following code?print(9/3)