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

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the output of the following?x = 36 / 4 * (3 + 2) * 4 + 2print(x)
2. What will be the output for following python programme:x = 100 y = float(x)print(y)
3. Hero.findNearestItem( )which of the following describes hero properly?
4. ..... data type contain a character (text) such as A, a, Z, z etc.
5. Suppose a tuple T is declared as T=(20, 36, 34, 49), which of the following is incorrect?
6. What is the output of the following codedict1 = {"key1":1, "key2":2}dict2 = {"key2":2, "key1":1}print(dict1 == dict2)
7. What is the increment operator
8. Say whether the following statement is true or false?"True and False are special values that belong to the class bool; they are not strings"
9. Which one of the following is not a keyword in Python language?
10. What will be the output for the following code:for x in range(6):print(x)
11. A store your program must use as an identifier to keep track of a value is called a
12. Slicing stringx="BOnvoyageprint(x[4:])
13. When writing an if/else statement, you
14. Lists are created using square brackets:
15. I want to allow the program to repeatedly ask the user to enter their guess if it does not equal the answer ..... Which option do I use?
16. What data type can hold more than one value?
17. Which commands would draw a triangle
18. Statements or instructions written by a programmer in a language that computers can understand defines .....
19. Predict the output:>>>str1="Rajathi Raja">>>print(str1.count('Raja'))
20. What will be the output of the following code:print (type(type(int)))
21. Which of the following modules need to be imported to handle date time computations in Python?
22. What data type would store the value:True
23. Tuples in Python are mutable
24. What is the result of the following code?print(10 == 9)
25. What is wrong with the following code? esports = ("Donkey Kong", "Galaga", "Pac Man")esports[1] = "Centipede"
26. Predict the output from the following code:print("3*4+5")
27. What purpose do wildlife drop centers serve?
28. Which of the following is the correct code to define a function?
29. If foo is equal to 3, what is the value of foo after this operation?foo /= 3
30. What is the official logo of Python?
31. What value is stored in the "total" variable after the following code runs? total = 0 for i in range(1, 4):total = total + i
32. What is the output of the following code?a = "b"if True or True:a = "a"print(a * 2)
33. What technology is used to track Burmese Pythons in the wild?
34. Operators with same precedence are evaluated in which manner?
35. Eval("20") will give us the number value of
36. How do you tell python you want to use the turtle library
37. What is the default data type in Python?
38. Which brackets are used for Lists?
39. Operators used in python:divide, multiply, add, subtract
40. Predict the output:>>>saint="Thiruvalluvar">>>print(saint[5:])
41. Which of the following statements will successfully send the value "EEK" back from a function to the calling code?
42. In Python, to make remarks that the computer will ignore, we use:
43. What does import turtle mean?
44. How many except statements can a try-except block have?
45. Which of the following is true for variable names in python?
46. In the pyton example x = 9, x is the
47. Any number is True, except 1.
48. What is the output from the following lines of code?a = [2, 4, 8]a[2] = 6print(a)
49. Choose the correct output of the following code.for i in range(10, 15):print(i)
50. Look at the following code:age = "23"age = age + 1print (age)What is the result of this code?
51. How many times does a for loop iterate if the range is (1, 5)?
52. What is the latest stable version of Python as of 2021?
53. Which character is used to denote long integer?
54. ..... is a string literal denoted by triple quotes for providing the specifications of certain program elements.
55. What is printed?cheer = "Go Eagles!"print cheer[7:]
56. Choose the correct data type:True
57. What happens if you call your python progam "turtle"
58. Is python is platform independent
59. What does case sensitive mean?
60. Which of the following will give error?Suppose dict1={"a":1, "b":2, "c":3}