Zed-King Study app · Free
O Level students across India practise here, free
Google login · no Play Store needed
About this PDF
Original NIELIT M3-R5 question paper from January 2023 — the complete bilingual paper exactly as it was given in the exam.
This is part of the free O Level M3-R5.1 study material in the Zed-King Study Zone. You can read every page above in your browser, or download the file and study offline. Zed-King Group of Institute is a NIELIT Study Centre in Kaithal, Haryana, and all of this material follows the current NIELIT syllabus.
- Course
- O Level — NIELIT Foundation Diploma
- Module
- M3 — M3-R5.1: Programming and Problem Solving through Python
- Section
- Previous Year Questions
- Format
- PDF — read online or download
- Price
- Free, no sign-up required
Text from this PDF
The opening pages as plain text — open the reader above for tables, diagrams and the full file.
1. readlines()
What does readlines() method return ?
(A) Dictionary (B) String
(C) Tuple (D) List
2. f.read(5) (file object is ‘f’)
f.read(5) will read __________ from a file (file object ‘f’).
(A) 5 characters
(B) 5 words
(C) 5 lines
(A) (B) C
(C) PHP (D)
Python is written in __________.
(A) Java (B) C
(C) PHP (D) All of the above example = “helle” example.rfind(“e”)
example = “helle” example.rfind(“e”)
>>>print(36 / 4)
What is the value of the following Python code ?
(A) import
(B) include To use a module in another module, you must import it using an ________ statement.
(B) include
(C) both (A) and (B)
(D) none of the above For performing the addition of two numbers, which of the following symbol in a flow chart are used ?
(A) Control flow (B) Terminal
(C) Processing (D) Decision The brain of computer system is __________.
(A) RAM (B) CPU
(C) ROM (D) Control Unit
9. (file object ‘f’) · (A) f.reads( ) (B) f.read( ) · (C) f.read(all) (D) f.read( * )
Which of the following will read entire content of file (file object ‘f’) ?
(A) f.reads( ) (B) f.read( )
(C) f.read(all) (D) f.read( * )
def func(a, b=5, c=10):
print(‘a is’, a, ‘and b is’, b, ‘and c is’, c)
func(13, 17)
func(a=2, c=4)
func(5,7,9)
(A) a is 13 and b is 15 and c is 10
(B) a is 13 and b is 17 and c is 10 a is 2 and b is 4 and c is 4 a is 5 and b is 9 and c is 7
(C) a is 13 and b is 17 and c is 10 def func(a, b=5, c=10):
print(‘a is’, a, ‘and b is’, b, ‘and c is’, c)
func(13, 17)
func(a=2, c=4)
func(5,7,9)
(A) a is 13 and b is 15 and c is 10
(B) a is 13 and b is 17 and c is 10 a is 2 and b is 4 and c is 4 a is 5 and b is 9 and c is 7
(C) a is 13 and b is 17 and c is 10
(A) k ^ l (B) k**l In python language, which of the following operators is the correct option for raising k to the power l ?
(A) k ^ l (B) k**l
(A) break (B) pass
(C) continue (D)
A _______ statement is used when a statement is required syntactically but you do not want any code to execute.
(C) continue (D) none of these In which software development phase quality of software is documented ?
(A) Testing (B) Delivery
(C) Idea (D) Development
14. Numpy zeros()
What is the use of the zeros() function in Numpy array in python ?
(A) To make a Matrix with all element 0
(B) To make a Matrix with all diagonal element 0
(C) To make a Matrix with first row 0 def s(n1):
print(n1)
s(n2)
print(n2)
def s(n1):
print(n1)
s(n2)
print(n2)
Step 1 : Start Step 2 : Declare variables a, b and c.
Step 3 : Read variables a, b and c.
Step 4 : If a < b If a < c Display a is the smallest number.
If b < c Display b is the smallest number.
Step 5 : Stop
(A) a
(B) b
(C) c
(D) stop algorithm for a=5, b=8, c=6 ?
Step 1 : Start Step 2 : Declare variables a, b and c.
Step 3 : Read variables a, b and c.
Step 4 : If a < b If a < c Display a is the smallest number.
If b < c Display b is the smallest number.
Step 5 : Stop
(A) a is the smallest number
(B) b is the smallest number
(C) c is the smallest number
(D) stop print(sum(1,2,3))
What will be the output of the following ?
print(sum(1,2,3))
In which of the following, data is stored permanently ?
(A) Variable
(B) File
(C) Both of the above The connector symbol for flow chart is
(A) Circle (B) Parallelogram
More previous year questions for M3-R5.1
Run these Python programs yourself — free
Reading code is not the same as writing it. Type any program from these notes into our free online Python compiler (real Python 3 with NumPy, input() works), or study one of the explained programs with its output.
Prepare for O Level with expert guidance
Classroom training, practical labs and exam registration at Zed-King Institute, Kaithal.
