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 August 2022 — booklet series S1, 100 marks in 3 hours, questions in both Hindi and English.
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.
Test Booklet Series :
__________ is part of user documentation.
(A) Class Diagram (B) Code Comment (C) Use Case (D) Installation Guide for i in range(20,30,10) :
j=i/2 print(j)
Determine the output :
for i in range(20,30,10) :
j=i/2 print(j)
(A) 10 15 (B) 10.0 15.0 (C) 10.0 (D) None of these What will be the output of the following ?
print(np.minimum([2, 3, 4], [1, 5, 2]))
Python is a case sensitive language when dealing with identifiers.
(A) True (B) False (C) Sometimes (D) Never print(bool(0), bool(3.14159), bool(1.0+1j))
(A) True True False True (B) False True False True
(C) False False False True (D) False True True True print(bool(0), bool(3.14159), bool(1.0+1j))
(C) False False False True (D) False True True True def C2F(c) :
return c*9/5+32 print (C2F(100))
print (C2F(0))
def C2F(c) :
return c*9/5+32 print (C2F(100))
(D) None of the above To repeat a particular task, we use __________.
(A) Input (B) Loop (C) Output (D) Condition def s(n1): #Statement 1 print(n1) #Statement 2 n2=4 #Statement 3 s(n2) #Statement 4
(A) Statement 1 (B) Statement 2 (C) Statement 3 (D) Statement 4 Which of the following statement will execute in last ?
def s(n1): #Statement 1 print(n1) #Statement 2 n2=4 #Statement 3 s(n2) #Statement 4
(A) Statement 1 (B) Statement 2 (C) Statement 3 (D) Statement 4 Actual instructions in flowcharting are represented in __________.
(A) Circles (B) Boxes (C) Arrows (D) Lines for i in range(len(x)):
i.upper()
print (x)
(C) error (D) none of the mentioned for i in range(len(x)) :
(C) error (D) none of the mentioned
11. numpy array ? · (A) type(array) (B) dtype · (C) objects.type(array) (D) numpy(type)
Which attribute is used to find the data type of numpy array ?
(A) type(array) (B) dtype
(C) objects.type(array) (D) numpy(type)
a = np.array([1,2,1,5,8])
b = np.array([0,1,5,4,2])
c = a + b c = c*a print (c[2])
What will be output for the following code ?
a = np.array([1,2,1,5,8])
b = np.array([0,1,5,4,2])
c = a + b c = c*a print (c[2])
(A) 6 (B) 10 (C) 0 (D) None of these def func(a, b=5, c=10) :
print('a is', a, 'and b is', b, 'and c is', c)
func(3, 7)
func(25, c = 24)
(A) a is 7 and b is 3 and c is 10 a is 5 and b is 100 and c is 50
(B) a is 3 and b is 7 and c is 10 a is 5 and b is 25 and c is 24 a is 50 and b is 100 and c is 5
(C) a is 3 and b is 7 and c is 10 a is 100 and b is 5 and c is 50 What is the output of the below program ?
def func(a, b=5, c=10) :
print('a is', a, 'and b is', b, 'and c is', c)
func(3, 7)
func(25, c = 24)
(A) a is 7 and b is 3 and c is 10 a is 5 and b is 100 and c is 50
(B) a is 3 and b is 7 and c is 10 a is 5 and b is 25 and c is 24 a is 50 and b is 100 and c is 5
(C) a is 3 and b is 7 and c is 10 a is 100 and b is 5 and c is 50
(D) None of the mentioned Any algorithm is a program written according to proper syntax.
What is full form of CSV ?
(A) Comma Separation Value (B) Comma Separated Variable
(C) Comma Separated Values (D) Common Syntax Value
(A) return (B) in (C) False (D) false Which of the following is not a keyword in python ?
(A) return (B) in (C) False (D) false def func(x):
print('x is', x)
print('Changed local x to', x)
func(x)
print('x is now', x)
(A) x is 50 x is now 50
(B) x is 50 x is now 2
(C) x is 50 x is now 100 def func(x):
print('x is', x)
print('Changed local x to', x)
func(x)
print('x is now', x)
(A) x is 50 x is now 50
(B) x is 50 x is now 2
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.
