Showing posts with label mcq question. Show all posts
Showing posts with label mcq question. Show all posts

Wednesday 12 July 2023

Solved paper Programming and Problem Solving Through Python M3-R5 Set 1

 Solved paper Programming and Problem-Solving Through Python M3-R5 Set 1 | NIELIT O Level

1.  ____is part of user documentation.
(A) Class Diagram (B) Code Comment (C) Use Case (D) Installation Guide

2. 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

3. print(np.minimum([2, 3, 4], [1, 5, 2]))
(A) [1 2 5] (B) [1 5 2] (C) [2 3 4] (D) [1 3 2]

4. Python is a case sensitive language when dealing with identifiers.
(A) True (B) False (C) Sometimes (D) Never

5. What is the output of the following code ?
print(bool(0), bool(3.14159), bool(3), bool(1.0+1j))

(A) True True False True (B) False True False True
(C) False False False True (D) False True True True

6. What will be the output of the following Python code ? def C2F(c) :
return c*9/5+32 print (C2F(100))
print (C2F(0))
(A) 212.0
32.0
(B) 314 24
(C) 567 98
(D) None of the above

7. To repeat a particular task, we use .
(A) Input (B) Loop (C) Output (D) Condition

8. 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

9. Actual instructions in flowcharting are represented in .
(A) Circles (B) Boxes (C) Arrows (D) Lines