Are you preparing for the upcoming O Level M3 R5 mcq exam in July 2025? This guide brings you the most important and frequently asked MCQ questions with answers from the Python Programming module. These multiple-choice questions are carefully curated from the official NIELIT syllabus and previous year papers, making them perfect for your revision. Whether you’re targeting top scores or just want to strengthen your concepts, these O Level M3 R5 MCQs will help you practice effectively and boost your confidence.
-
What is the output of
print(2 ** 3)
?
A. 6
B. 8
C. 9
D. 5
Answer: B -
Which of the following is a valid Python variable name?
A. 2variable
B. variable-name
C. variable_2
D. variable name
Answer: C -
What is the data type of
5.0
in Python?
A. int
B. double
C. float
D. long
Answer: C -
Which of these is used to define a function in Python?
A. define
B. function
C. def
D. fun
Answer: C -
What is the correct way to write a comment in Python?
A. /* comment */
B. // comment
C. <!– comment –>
D. # comment
Answer: D -
What does the
len()
function do in Python?
A. Returns the number of variables
B. Returns the length of a string/list
C. Converts to integer
D. Joins strings
Answer: B -
Which keyword is used to start a loop in Python?
A. repeat
B. loop
C. for
D. iterate
Answer: C -
What will be the output of
print(3 == 3.0)
?
A. False
B. Error
C. True
D. None
Answer: C -
How to insert an element at the end of a list?
A. list.add()
B. list.append()
C. list.insert()
D. list.push()
Answer: B -
What is the result of
int('10') + float('5.5')
?
A. 105.5
B. 15.5
C. Error
D. 10.5
Answer: B -
Which operator is used for floor division in Python?
A. /
B. //
C. %
D. **
Answer: B -
What is the output of
'Python'[1]
?
A. P
B. y
C. t
D. h
Answer: B -
Which function converts a string to an integer?
A. str()
B. int()
C. float()
D. eval()
Answer: B -
What does
range(1, 5)
return?
A. [1, 2, 3, 4]
B. [1, 2, 3, 4, 5]
C. [1, 5]
D. [2, 3, 4, 5]
Answer: A -
What is the output of
type([])
?
A. list
B. tuple
C. dictionary
D. array
Answer: A -
What is the result of
bool(0)
?
Answer: False -
Which of the following is immutable?
A. list
B. set
C. tuple
D. dictionary
Answer: C -
What does
break
do in a loop?
Answer: Exits the loop -
is
operator is used to compare…?
Answer: Object identity -
Which function is used to read input from the user in Python 3?
Answer: input()
O level m3 r5 mcq questions with answers
-
Which keyword is used for an infinite loop?
Answer: while(True) -
Which of the following is a logical operator?
A. and
B. not
C. or
D. All of the above
Answer: D -
What is the correct way to write an
if
statement in Python?
Answer: if x > 5: -
What is the output of
print(10 % 3)
?
Answer: 1 -
How many times will this loop run?
for i in range(0, 3):
Answer: 3 times -
What does
str.upper()
do?
Answer: Converts all characters to uppercase -
How to get the last item in a list
a
?
Answer: a[-1] -
list.pop()
removes…?
Answer: Last element -
What is the default return type of a function without return?
Answer: None -
Which function returns number of elements in list?
Answer: len()
-
Which mode opens a file for reading?
Answer: ‘r’ -
What is the output of
open('file.txt', 'w')
?
Answer: Opens file for writing (creates if not exists) -
What is used to catch exceptions in Python?
Answer: try-except -
What does
finally
block do?
Answer: Executes no matter what -
Which keyword is used to raise an exception?
Answer: raise -
Dictionary in Python stores data in…?
Answer: key-value pairs -
What is the output of
{'a':1, 'b':2}['b']
?
Answer: 2
O Level Python (M3-R5.1)1000+MCQs+PYQs PDF
-
Which method removes all items from a list?
Answer: list.clear() -
How to add a key-value pair in a dictionary?
Answer: dict[‘key’] = value -
What does
set()
do?
Answer: Removes duplicates and stores unordered unique items -
What is indentation used for in Python?
Answer: To define code blocks -
Python is a…?
A. Compiled language
B. Interpreted language
C. Assembly language
D. High-level + compiled
Answer: B -
Python files have extension…?
Answer: .py
https://www.youtube.com/@olevelguruji
-
What does
continue
do in a loop?
Answer: Skips to next iteration -
Which keyword is used to define a class?
Answer: class -
What is the use of
pass
in Python?
Answer: It does nothing; a placeholder -
What is the output of
bool('False')
?
Answer: True -
What will
list(range(0,10,2))
return?
Answer: [0, 2, 4, 6, 8] -
How to remove a specific item by value from a list?
Answer: list.remove(item) -
What is the correct syntax for importing a module?
Answer: import module_name -
Which data type is used for True/False?
Answer: bool -
What is a lambda function?
Answer: An anonymous function -
Which built-in function returns the largest item?
Answer: max() -
How to comment multiple lines in Python?
Answer: Use multiple#
or triple quotes ('''
) -
What is the output of
3 != 5
?
Answer: True
Check Our Latest Uploads
O level m1 r5 mcq questions pdf