Class 11 Computer Science Chapter 2 Introduction To Python Quiz 9 (60 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the result of the 'not' operator in programming?
2. In python do you have to declare the variable first?
3. Output of print(2 * 3 ** 2) is
4. Which of the following is a sequence data type?
5. Which data type is used to store:"D"
6. What are binary digits called?
7. What is the significance of the 'index' parameter in the read ..... csv() function?
8. What is the result of the following code? "'pythoncount = 0while count < 3:print(count) count += 1 "'
9. How are elements accessed in a list?
10. Given the code score = 7 and print("Your score is '' + score), which option fixes the code without using concatenation, but still prints neatly?
11. What does a variable do?
12. Sophia is learning Python and wants to know which of the following is a loop structure in Python?
13. A ..... is a collection of Python modules.
14. Which of the following is used to get input from the user in Python?
15. Generally speaking Python (TM) would run ..... than C++ and take ..... time to create
16. What is the primary focus of Python's design philosophy?
17. Your program asks users to enter their age in years. What data type will Python return for that input if someone enters a value of 13.50?
18. Which of the following is NOT a valid data type in Python?
19. How do you join two strings 'first' and 'last' with a space between them?
20. What is the result of the following code? "'pythonweight = 8print(type(weight)) "'
21. What is the purpose of the Matplotlib library?
22. Strings in Python are written inside:
23. What is the purpose of introducing extra spaces within a line of Python code?
24. Which random function returns a random 'float' number between 0 and 1?
25. What type of value does the input() function return?
26. Which of the following is a string?
27. What is the output of the following code? "'pythonprint("Hello, World!") "'
28. Each statement in Python is terminated by .....
29. A software update often helps with the removal of .....
30. What is the correct syntax to print 'Hello, World!' in Python?
31. Read the Python program below:1 print("Where do you live?")2 location = input()3 print("I've never been to", location)When this program is executed, what will be displayed on the screen, as a result of executing line 3?
32. Which keyword is used to stop a loop?
33. WHO INVENTED PYTHON?
34. Which operator is used for logical AND in Python?
35. Which one of the following is the most appropriate python language feature?
36. What is IDLE in the context of Python?
37. What is the result type of comparisons like y==z in Python?
38. What is the result of this expression:3 + 2 * 4?
39. What does the ' = open(, "a")' command do in Python?
40. Python identifies blocks of code by
41. How does the Python community contribute to its popularity?
42. The list needs one more name added to the end- "Felipe" . Which piece of code below would do this?nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
43. Which symbol means "equal to" in an 'if' condition?
44. What is the result of the following expression in Python:'3 + 4.5'?
45. What is the output of the following code? "'pythona = 10b = 5print(a // b) "'
46. How do you delete data in SQL?
47. Which is the correct syntax for a while loop that increments x until it reaches 5?
48. Which of the following is used to create a tuple in Python?
49. What is the purpose of algorithms?
50. X = 50def func(x):print('x is', x)x = 2print('Changed local x to', x)func(x)print('x is now', x)
51. What happens if you leave out one of the double quotes in a string?
52. How do you create a negative of a picture in Python?
53. What is the output of print(type("5"))?
54. What does BIDMAS stand for?
55. Give an example of python output?
56. What will happen if you do not indent code properly in Python?
57. In a for loop using enumerate on a tuple, which unpacking is correct to access index and value?
58. A ..... is a single Python file which contains Python objects such as variables, functions and classes and may also contain executable code, not just definitions.
59. Which of the following is the correct format for a for-loop in Python?
60. What does 'int' mean in Python?