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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is wrong with the following attempt to initialize a list? data = ["hockey", 4, False]
2. What is the output of the following list operationaList = [10, 20, 30, 40, 50, 60, 70, 80]print(aList[2:5])print(aList[:4])print(aList[3:])
3. Choose the correct data type:yes / no
4. In python, a function is defined using the following keyword
5. Select the right syntax for the if condition
6. Gjdk is not a good name for a variable, why?
7. What is the output of the program below?mariana ..... islands = ['Guam', 'Saipan', 'Tinian', 'Rota']cmni = mariana ..... islands[1:]len(cmni)
8. What is the Python built-in function used to display numbers and text on the screen?
9. Numbers = [5, 14, 9, 17] for number in numbers:if number >= 9:print (number)The output will be?
10. If the number of arguments is unknown, which symbol is used before the parameter name
11. What is printed?cheer = "Go Eagles!"print cheer[5:8]
12. What is the result of following Program in python3for i in range(3, 1):print(i)
13. What is the correct data type for the value of cat?cat = input("How many cats do you have?")
14. Inventor of Python Code Language
15. Which symbol means "not equal to" ?
16. Identify the code that properly accesses an engine ..... sound() method in a Car class.
17. An action performed by an object
18. The character used in comments in python is .....
19. I am 71 years old! What will the output be?:IF you are 70 or older, say "You are aged to perfection!" ELIF you are exactly 50, say "Wow, you are half a century old!" ELSE say "You are a spring chicken!"
20. What is the output of the following code?x = 5y = 3print(x + y)
21. An algorithm is a set of precise instructions designed to solve a problem.
22. Which keyword is used to take input from the user in Python?
23. Which method is used to convert a given string in Capital letters?
24. In python the ' INTEGER data type' can be defined as ..... ?
25. What is the result of len([1, [2, 3], 4]) in Python?