Programming and Problem Solving through Python (M3-R5)
O-Level Full Test-13
(M3-R5)
1 / 100
1. How do you iterate over the keys of a dictionary d in Python?
2 / 100
2. How do you concatenate two lists list1 and list2 in Python?
3 / 100
3. What is the output of print('Python Programming'.endswith('g'))?
4 / 100
4. What is the output of print('Python Programming'.find('m'))?
5 / 100
5. What is the output of print('Python Programming'.find('t'))?
6 / 100
6. What is the output of print('Python Programming'.find('P'))?
7 / 100
7. How do you add an element to the end of a list my_list in Python?
8 / 100
8. What is the output of print('Python Programming'.startswith('P'))?
9 / 100
9. How do you reverse a string s in Python?
10 / 100
10. What is the output of print('Python Programming'.index('P'))?
11 / 100
11. How do you remove an element from a list by value in Python?
12 / 100
12. How do you create a list of numbers from 1 to 10 in Python?
13 / 100
13. What is the output of print('Python Programming'.startswith('Pro'))?
14 / 100
14. How do you convert a string s to lowercase in Python?
15 / 100
15. How do you create a list of numbers from 1 to 10 in Python?
16 / 100
16. What is the output of print('Python Programming'.find('m'))?
17 / 100
17. What is the output of print('Python Programming'.index('P'))?
18 / 100
18. How do you convert a string s to an integer in Python?
19 / 100
19. What is the output of print('Python Programming'.replace('P', 'J'))?
20 / 100
20. What is the output of print('Python Programming'.replace(' ', '_'))?
21 / 100
21. How do you get the first two characters of a string s in Python?
22 / 100
22. How do you convert a string s to an integer in Python?
23 / 100
23. How do you reverse a string s in Python?
24 / 100
24. What is the output of print('Python Programming'.endswith('g'))?
25 / 100
25. How do you join a list of strings my_list into a single string in Python?
26 / 100
26. How do you get the first character of a string s in Python?
27 / 100
27. What is the output of print('Python Programming'.count('o'))?
28 / 100
28. What is the output of print('Python Programming'.endswith('P'))?
29 / 100
29. How do you create a tuple with a single element in Python?
30 / 100
30. How do you remove an element from a list by value in Python?
31 / 100
31. What is the output of print('Python Programming'.isalpha())?
32 / 100
32. What is the output of print('Python Programming'.replace('P', 'J'))?
33 / 100
33. What is the output of print('Python Programming'.find('g'))?
34 / 100
34. How do you join a list of strings my_list into a single string separated by spaces in Python?
35 / 100
35. How do you create a list of numbers from 1 to 5 in Python?
36 / 100
36. How do you create a dictionary with default values in Python?
37 / 100
37. What is the output of print('Python Programming'.replace('P', 'J'))?
38 / 100
38. What is the output of print('Python Programming'.startswith('P'))?
39 / 100
39. What is the output of print('Python Programming'.startswith('Pro'))?
40 / 100
40. How do you remove all elements from a list my_list in Python?
41 / 100
41. What is the output of print('Python Programming'.islower())?
42 / 100
42. How do you create a list of odd numbers from 1 to 10 in Python?
43 / 100
43. How do you check if a string s is in uppercase in Python?
44 / 100
44. What is the output of print('Python Programming'.endswith('g'))?
45 / 100
45. How do you get the last two characters of a string s in Python?
46 / 100
46. What is the output of print('Python Programming'.startswith('Pro'))?
47 / 100
47. How do you join a list of strings words into a single string separated by commas in Python?
48 / 100
48. How do you join a list of strings words into a single string separated by spaces in Python?
49 / 100
49. What is the output of print('Python Programming'.find('h'))?
50 / 100
50. What is the output of print('Python Programming'.replace('P', 'X'))?
51 / 100
51. How do you convert a string s to a list of words in Python?
52 / 100
52. How do you remove duplicates from a list my_list in Python?
53 / 100
53. What is the output of print('Python Programming'.replace('P', 'J'))?
54 / 100
54. How do you create a list of odd numbers from 1 to 10 in Python?
55 / 100
55. What is the output of print('Python'.find('t'))?
56 / 100
56. How do you remove all elements from a list my_list in Python?
57 / 100
57. What is the output of print('Python Programming'.endswith('g'))?
58 / 100
58. How do you iterate over the values of a dictionary d in Python?
59 / 100
59. How do you create an empty set in Python?
60 / 100
60. What is the output of print('Python Programming'.find('z'))?
61 / 100
61. What is the output of print('Python'.upper().lower())?
62 / 100
62. How do you create a list of squares of numbers from 1 to 5 in Python?
63 / 100
63. How do you append a tuple (4, 5) to a list my_list in Python?
64 / 100
64. Which of the following is used to create an empty set in Python?
65 / 100
65. Which of the following is the correct syntax to create a list comprehension in Python?
66 / 100
66. What is the output of print(3 * 'ab')?
67 / 100
67. Which of the following is the correct way to write a comment in Python?
68 / 100
68. What is the correct way to create an empty dictionary in Python?
69 / 100
69. Which of the following is the correct way to check if a list is empty in Python?
70 / 100
70. Which of the following is the correct syntax to create a generator in Python?
71 / 100
71. What is the output of print(5 / 2)?
72 / 100
72. What is the output of print('Python'.split('t'))?
73 / 100
73. How do you convert a string s to an integer in Python?
74 / 100
74. What is the output of print('Python'.index('P'))?
75 / 100
75. How do you create a new list with the elements of my_list squared in Python?
76 / 100
76. How do you check if a string s starts with a specific prefix in Python?
77 / 100
77. How do you copy a list my_list in Python?
78 / 100
78. How do you get the first two characters of a string s in Python?
79 / 100
79. What is the output of print('Python Programming'.endswith('g'))?
80 / 100
80. How do you convert a string s to a float in Python?
81 / 100
81. How do you create a dictionary in Python?
82 / 100
82. How do you remove duplicates from a list my_list in Python?
83 / 100
83. What is the output of print('Python Programming'.count('n'))?
84 / 100
84. What is the output of print('Python Programming'.find('P'))?
85 / 100
85. How do you convert a string s to a list of words in Python?
86 / 100
86. What is the output of print('Python Programming'.lower())?
87 / 100
87. What is the output of print('Python Programming'.endswith('g'))?
88 / 100
88. What is the output of print('Python Programming'.islower())?
89 / 100
89. How do you check if a list my_list contains a specific value in Python?
90 / 100
90. What is the output of print('Python'.capitalize())?
91 / 100
91. How do you add an element to the front of a list my_list in Python?
92 / 100
92. What is the output of print('Python'.replace('y', 'i'))?
93 / 100
93. How do you get the first two characters of a string s in Python?
94 / 100
94. How do you convert a string s to a list of characters in Python?
95 / 100
95. What is the output of print('Python Programming'.replace(' ', '_'))?
96 / 100
96. How do you get the number of elements in a set s in Python?
97 / 100
97. How do you iterate over the keys of a dictionary d in Python?
98 / 100
98. What is the output of print('Python Programming'.isalpha())?
99 / 100
99. How do you add an element to a set s in Python?
100 / 100
100. How do you create a list in Python?
Your score is
The average score is 0%
Restart quiz