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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which line of code is written correctly?
2. A step-by-step set of instructions for completing a task
3. You are in the car with traffic jammed at a junction. To cross that junction according to the traffic rules, which one is NOT applicable
4. ..... statement is used to delete a dictionary.
5. NameList = ["John", "Harry", "Jesse", "John", "Marry", "Larry"]nameList[6] ="Susie"print(nameList)What would be the output
6. A way of repeating code
7. Which of the following is a Python command word used to indicate we want to work with WHOLE numbers
8. Choose the correct data type:"Sarah"
9. A named, reusable set of programming statements to perform a specific task defines
10. Improper tab placement will prevent a block of code from running properly.
11. Everything that we want to display in a print() function must:
12. The collection of modules and packages that together cater to a specific type of applications or requirements, is called .....
13. Look at the following code:Length = input ("Length: ")Width = input ("Width: ")Area = Length * WidthPerimeter = 2 * (Length + Width)print (Perimeter)What is the result of this code if the user inputed 2 then 4?
14. Suppose list1 is [1, 3, 2], What is list1 * 2?
15. S1="Hello"s2="10"print(s1+n1)What is the error in this code?
16. In the Python example x = 9, 9 is the .....
17. What is Property?
18. Which operator can be used to compare two values?
19. In Python, the command "while" will create a:
20. What is the output of this python code?def foo(x):x[0] = ['def'] x[1] = ['abc'] return id(x)q = ['abc', 'def']print(id(q) == foo(q))
21. A named sequence of statements that returns a result is known as which of the following?
22. What is the output of the following code?valueOne = 5 ** 2valueTwo = 5 ** 3print(valueOne)print(valueTwo)
23. 45 ! = 2
24. What is the goal of managing the Burmese Python population?
25. O.73 is an example of a