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

Quiz Instructions

Select an option to see the correct answer instantly.

1. Which of Python's collection types is ordered and changeable (elements can be modified)?
2. Which element type is considered falsy in Python when evaluating tuples?
3. When you want to print something to the screen you should use
4. Who conceived Python programming?
5. Which of the following will give "Simon" as output?If str1="John, Simon, Aryan"
6. What does the "turtle" represent in the Python Turtle Library?
7. Which of the following will convert the string '"3.5"' to a float?
8. Choose the operators to represent "not equal to" in PYTHON
9. What happens if you try to add a string and an integer?
10. What is the purpose of using quotes in a 'print()' statement?
11. What happens if you leave out some of the brackets in a Python command?
12. What will the output be from the following code?print(3*4+5)
13. What does 'if' statement do in Python?
14. What is the output of the following code?name = Steveprint(len(Steve))
15. What is the best way to read an entire file into a single string?
16. ..... spaces should be left for indentation.
17. Who created the Python programming language and when?
18. A, b=0, 30a=30/(2*b)print(a)
19. What will be the output of the following code?x = 10y = 4print (x // y)
20. What is the first program going to draw?
21. What is the output for the following:def func (a, b = 8, c = 10):return a + b + cprint (func (4, c = 13) )
22. What will be the output of the following code? "'pythonif 10 > 5:print("Ten is greater than five") "'
23. Which of the following is a method in Python?
24. What will be the output of the following code? print(5 // 2)
25. What is the purpose of the print() function in Python?
26. Which of these is a floating point?
27. Is Python case sensitive when dealing with identifiers?
28. Consider t = (3, 5, 7). Which unpacking is valid?
29. How can you print the string 'Hello! "Python" is fun.' with the quotes around Python?
30. According to BEDMAS/PEMDAS, what is the correct order of operations?
31. Conditional statement adalah pernyataan yang digunakan untuk .....
32. What is the function of a programming language?
33. How do you access the first character of a string in Python?
34. In computers science, variables:
35. Colors = ["red", "orange", "yellow", "green", "blue", "indigo", "violet"]Choose the answer that will output False.
36. How do you declare a comment in Python?
37. Which of the following is NOT a feature of Python?
38. Which of the following is invalid identifier?
39. What will print(type(name)) return if name = 'Abhishek'?
40. Which of these tools could a Python programmer build?
41. What is the output of the following code?x = int("10")y = float(x)print(y)
42. What will be the output of the following Python code?x = ['ab', 'cd'] for i in x:x.append(i.upper()) print(x)
43. What will be the output of the following code? "'pythonprint(type(7)) "'
44. What will the following code output?print(2 == 2.0)
45. What is an example of a task a robot controlled by Python can do?
46. Which of the following will store the value 3.5 as a float in Python?
47. What will print(len([1, 2, 3, 4])) output?
48. Which of these is NOT a data type?
49. What will be the output of this code:x = 10; if x < 5:print('Low'); else:print('High')?
50. Why does a 'NameError' occur in Python?
51. What will this code print? "'pythonprint("My favourite colour is blue") "'
52. What is the output of the following code? print('A' == 'a')
53. Named reference that holds data in memory. Assigned using the "=" sign with name on left
54. How many times will the loop run?for i in range(1, 6):print(i)
55. What will be the value of 'result' after executing the following code?result = 10 > 5 and 3 < 2
56. Which of the following is the equal to comparison operator in Python (used to check if two values are the same)?
57. What is the decimal of binary 111?
58. Python is ..... language
59. Which data type can store numbers, letters and symbols?
60. Module-2:True or False:Pretty Printing is a topic under Dictionaries and Structuring Data.