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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Exception disrupts the
2. In Python the multiplication sign is .....
3. What is the output of the following loop:-for l in 'Jhon':if l == 'o':pass print(l, end=", ")
4. ..... is information the user sends to the computer
5. Which of the following concepts is not a part of Python?
6. Look at the following code:Length = 50Width = 30Area = L * Wprint (Area)What is the result of this code?
7. What is the mutable object given below?
8. What is the output of program below?bicycles = ['trek', 'cannondale', 'redline', 'specialized']print(bicycles[-1])
9. What is printed?cheer = "Go Eagles!"print cheer[:5]
10. What will be the output of this code?x = 14y = 13y = x + 3if x<=y:print("Hurray")else:print("Yay")
11. Which if the values below is a string data type?
12. Which of the following is true for a tuple?
13. What is the syntax to check if two values are equal in Python?
14. A while loop can be used in which of the following situations?
15. There can be an else statement without an if statement
16. Is a list in Python mutable or immutable?
17. "AB-CD-EF" .partition('-'), the function returns the output
18. Identify the initialization method for a Car class.
19. What is the result of the following code?x = "Hello"print(bool(x))
20. To display something on the screen, use this command:
21. Print(boolean(None, "String", False, "False", 0, "value")What is the output?
22. Which of the following statements will cause a "while" loop to immediately exit without running any more statements in the body or checking the logical expression again?
23. What will be the output of the following code?def fn1(c=10):print(c) fn1(4)fn1()
24. Data type that can only be true or false
25. ..... is a data type that contain a set of characters (letters, symbols, etc.) E.g. "Hello", "Ali", "Car Type"