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