page-banner
Python M3-R5.1 MCQs SET-7
Q1.
एक __________ संरचना द्वारा की गई कार्रवाई अंततः लूप को समाप्त करने का कारण बनती है।

The action performed by a __________ structure must eventually cause the loop to terminate.
A. sequence
B. process
C. repetition
D. case
View Answer
Q2.
निम्नलिखित कोड के लिए आउटपुट क्या होगा?

What will be output for the following code ?

import numpy as np
a = np.array([11,2,3])
print(a.min())
A. 2
B. 1
C. 11
D. 3
View Answer
Q3.
कथन 4 के लिए उत्तर चुनें।

Choose the answer for statement 4.

import ___________ # statement 1
rec = [ ]
while True:
    rn = int(input("Enter"))
    nm = input("Enter")
    temp = [rn, nm]
    rec.append(temp)
    ch = input("Enter choice (Y/N)")
    if ch.upper == "N":
        break
f = open("stud.dat", "____________") #statement 2
__________ .dump(rec, f) #statement 3
_______.close( ) # statement 4
A. f
B. rec
C. file
D. stud
View Answer
Q4.
निम्नलिखित सूडो कोड का आउटपुट क्या होगा, जहां ʌ XOR ऑपरेशन का प्रतिनिधित्व करता है?

What will be the output of the following pseudo code, where ʌ represent XOR operation ?

Integer a, b, c
Set b = 5, a = 1
c = a ^ b
print c
A. 4
B. 3
C. 5
D. 7
View Answer
Q5.
सुन्न सरणी के गुण क्या हैं?

What are the attributes of numpy array ?
A. shape, dtype, ndim
B. objects, type, list
C. objects, non vectorization
D. Unicode and shape
View Answer

Create Account