Programming and Problem Solving through Python (M3-R5)
O-Level Full Test-3
(M3-R5)
1 / 100
1. How do you check if a list my_list contains a specific value in Python?
2 / 100
2. What is the output of print('Python Programming'.isupper())?
3 / 100
3. How do you reverse a string s in Python?
4 / 100
4. What is the output of print('Python Programming'.isalpha())?
5 / 100
5. How do you get the last two characters of a string s in Python?
6 / 100
6. How do you convert a string s to a float in Python?
7 / 100
7. How do you copy a list my_list in Python?
8 / 100
8. What is the output of print('Python Programming'.find('P'))?
9 / 100
9. What is the output of print('Python Programming'.isnumeric())?
10 / 100
10. What is the output of print('Python Programming'.replace('P', 'J'))?
11 / 100
11. What is the output of print('Python Programming'.find('m'))?
12 / 100
12. What is the output of print('Python Programming'.endswith('g'))?
13 / 100
13. How do you get the first two characters of a string s in Python?
14 / 100
14. What is the output of print('Python Programming'.find('n'))?
15 / 100
15. What is the output of print('Python Programming'.startswith('Pro'))?
16 / 100
16. What is the output of print('Python Programming'.isalpha())?
17 / 100
17. What is the output of print('Python Programming'.isupper())?
18 / 100
18. How do you convert a string s to an integer in Python?
19 / 100
19. How do you get the number of elements in a list my_list in Python?
20 / 100
20. How do you join a list of strings words into a single string separated by commas in Python?
21 / 100
21. What is the output of print('Python Programming'.isalpha())?
22 / 100
22. How do you convert a string s to a list of characters in Python?
23 / 100
23. What is the output of print('Python Programming'.find('z'))?
24 / 100
24. What is the output of print('Python Programming'.isnumeric())?
25 / 100
25. How do you create a list of squares of numbers from 1 to 5 in Python?
26 / 100
26. What is the output of print('Python Programming'.isalpha())?
27 / 100
27. How do you concatenate two lists list1 and list2 in Python?
28 / 100
28. What is the output of print('Python Programming'.isupper())?
29 / 100
29. How do you create a list of numbers from 0 to 9 in Python?
30 / 100
30. What is the output of print('Python Programming'.find('o'))?
31 / 100
31. How do you convert a string s to a list of characters in Python?
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'.replace('P', 'J'))?
34 / 100
34. What is the output of print('Python Programming'.index('n'))?
35 / 100
35. How do you create a tuple with multiple elements in Python?
36 / 100
36. How do you create a list of cubes of numbers from 1 to 5 in Python?
37 / 100
37. How do you convert a string s to lowercase in Python?
38 / 100
38. What is the output of print('Python Programming'.isupper())?
39 / 100
39. How do you check if a string s is in uppercase in Python?
40 / 100
40. What is the output of print('Python Programming'.find('m'))?
41 / 100
41. What is the output of print('Python Programming'.isalpha())?
42 / 100
42. How do you create an empty set in Python?
43 / 100
43. How do you convert a string s to lowercase in Python?
44 / 100
44. What is the output of print('Python Programming'.islower())?
45 / 100
45. How do you create a tuple with a single element in Python?
46 / 100
46. How do you create a new list from an existing list my_list with only the even numbers?
47 / 100
47. How do you remove an element from a list by value in Python?
48 / 100
48. How do you get the first two characters of a string s in Python?
49 / 100
49. How do you iterate over the values of a dictionary d in Python?
50 / 100
50. What is the output of print('Python Programming'.find('h', 3))?
51 / 100
51. How do you create a new list from an existing list my_list with only the even numbers?
52 / 100
52. What is the output of print('Python'.capitalize())?
53 / 100
53. What is the output of print('Python Programming'.find('Pro'))?
54 / 100
54. How do you create a list of odd numbers from 1 to 10 in Python?
55 / 100
55. How do you convert a string s to an integer in Python?
56 / 100
56. How do you reverse a string s in Python?
57 / 100
57. How do you check if a string s contains only alphabetic characters in Python?
58 / 100
58. How do you concatenate two lists list1 and list2 in Python?
59 / 100
59. How do you create a new list with the elements of my_list squared in Python?
60 / 100
60. How do you append a list [4, 5] to another list my_list in Python?
61 / 100
61. What is the output of print('Python Programming'.swapcase())?
62 / 100
62. How do you join a list of strings words into a single string separated by commas in Python?
63 / 100
63. How do you convert a string s to a list of characters in Python?
64 / 100
64. What is the output of print(list(range(5)))?
65 / 100
65. What is the output of print('Python'.startswith('Py'))?
66 / 100
66. What is the output of print('Python'[::-1])?
67 / 100
67. How do you merge two dictionaries in Python?
68 / 100
68. What is the output of print('Python'.lower())?
69 / 100
69. How do you get the last character of a string s in Python?
70 / 100
70. How do you create a tuple with a single element in Python?
71 / 100
71. How do you convert a string s to a float in Python?
72 / 100
72. What is the output of print('Python'.index('y'))?
73 / 100
73. What is the output of print('Python'.find('h'))?
74 / 100
74. How do you remove all elements from a list my_list in Python?
75 / 100
75. How do you check the data type of a variable x in Python?
76 / 100
76. What is the output of print('Python Programming'.isupper())?
77 / 100
77. What is the output of print('Python Programming'.lower())?
78 / 100
78. What is the output of print('Python Programming'.replace('P', 'J'))?
79 / 100
79. How do you convert a string s to uppercase in Python?
80 / 100
80. How do you create an empty set in Python?
81 / 100
81. What is the output of print('Python Programming'.isalpha())?
82 / 100
82. How do you concatenate two lists list1 and list2 in Python?
83 / 100
83. What is the output of print('Python Programming'.find('n'))?
84 / 100
84. What is the output of print('Python Programming'.replace('P', 'J'))?
85 / 100
85. How do you join a list of strings words into a single string separated by spaces 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'.isupper())?
88 / 100
88. How do you join a list of strings words into a single string separated by spaces in Python?
89 / 100
89. What is the output of print('Python Programming'.startswith('J'))?
90 / 100
90. How do you get the last character of a string s in Python?
91 / 100
91. What is the output of print('Python Programming'.replace(' ', '_'))?
92 / 100
92. What is the output of print('Python'.capitalize())?
93 / 100
93. What is the output of print('Python'.upper())?
94 / 100
94. How do you join a list of strings words into a single string separated by spaces in Python?
95 / 100
95. What is the output of print('Python'.index('P'))?
96 / 100
96. What is the output of print('Python Programming'.isnumeric())?
97 / 100
97. What is the output of print('Python Programming'.isalpha())?
98 / 100
98. What is the output of print('Python Programming'.lower())?
99 / 100
99. What is the output of print('Python Programming'.count('n'))?
100 / 100
100. How do you create a tuple in Python?
Your score is
The average score is 0%
Restart quiz