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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of the following is an example of an 'object.property(attribute)'
2. What is an expression in Python
3. Numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]print ( numbers[-3] == numbers[7])The output of the program above is
4. ..... method will returns number of key-value pairs in the given dictionary.
5. In a list called "players" if you wanted to delete the item with an index of 3 which of the following examples of code would be correct?
6. Who is the creator of Python Language
7. Which option best describes how user input can impact our programs?
8. Please select all correct ways to empty the following dictionarystudent = \{ "name": "Emma", "class":9, "marks":75 \}Find the output:print(student.get('class'))
9. What does != represent?
10. ..... method removes all items from the particular dictionary.
11. How many elements can be inserted using append() method?
12. What was the original purpose of creating Python?
13. Any string is False, except empty strings.
14. In the following code, n is a/an ..... ?n = '5'
15. Choose the correct data type:"You follow the monster into the cave!"
16. What is the value of num when this loop completes?num = 0for i in range(2, 8, 2):num += i
17. What will be the output of the following program:fruits = ["apple", "banana", "cherry"] for x in fruits:if x == "banana":print(x)
18. What do For Loops do?
19. Suppose list=[12, 3, 22, "mago", "hello"], what is list[-6]
20. What is displayed to the screen when the following code runs? esports = ["Donkey Kong", "Galaga", "Pac Man"] esports.insert(2, "apple") print(esports)
21. The title( ) function
22. Items are accessed by their position in a dictionary
23. Ch=99print(chr(ch))
24. What function is used to output a message in python?
25. Which of the following is a Python command