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

Quiz Instructions

Select an option to see the correct answer instantly.

1. How would we round the variable hourspermonth to 2 decimal places
2. Lists are used to store single item in a single variable.
3. A command that lets us repeat an action multiple times in your code
4. What is the syntax for creating a list in Python?
5. Which if the values below return FALSE if executed?
6. Logical Operators:True if either of the operands is true
7. The expression int(x) implies that the variable x is converted to integer. State whether true or false.
8. Bundling two values together into one can be considered as
9. Which method is used to merge two lists?
10. What data type would store the value:Oranges
11. Numbers = [1, 3, 2, 4, 5]Which of the following code can output a sorted list without actually sorting the original list
12. What will be the output of the following Python function? any([2>8, 4>2, 1>2])
13. What will be the output of the following code snippet? name1 = "jazz"name 2 = "madonna"if name1 != name2:print("No")else:print("Yes")
14. What is the output from the following code?print ("hello world")
15. Select the correct Operator for addition
16. Predict output for the following code snippet.print('No pain, no gain'.split('a'))
17. What is the average value of the code that is executed below?>>>grade1 = 80>>>grade2 = 90>>>average = (grade1 + grade2) / 2
18. Look at the following code:age = 23age = age * 2print (age)What is printed?
19. Anil is writing a "rock, scissors, paper" program. He wants the game to repeat until the user doesn't want to play anymore. What loop should he use?
20. What is the output of the following?x = 36 / 4 * (3 + 2) * 4 + 2print(x)
21. What will be the output for following python programme:x = 100 y = float(x)print(y)
22. Hero.findNearestItem( )which of the following describes hero properly?
23. ..... data type contain a character (text) such as A, a, Z, z etc.
24. Suppose a tuple T is declared as T=(20, 36, 34, 49), which of the following is incorrect?
25. What is the output of the following codedict1 = \{"key1":1, "key2":2\}dict2 = \{"key2":2, "key1":1\}print(dict1 == dict2)