page-banner
Python M3-R5.1 MCQs SET-7
Q1.
एक __________ संरचना द्वारा की गई कार्रवाई अंततः लूप को समाप्त करने का कारण बनती है।<break-line><break-line>The action performed by a __________ structure must eventually cause the loop to terminate.
A. sequence
B. process
C. repetition
D. case
View Answer
Q2.
निम्नलिखित कोड के लिए आउटपुट क्या होगा?<break-line><break-line>What will be output for the following code ?<break-line><break-line><pre><code>import numpy as np a = np.array([11,2,3]) print(a.min())</code></pre>
A. 2
B. 1
C. 11
D. 3
View Answer
Q3.
कथन 4 के लिए उत्तर चुनें।<break-line><break-line>Choose the answer for statement 4.<break-line><break-line><pre><code>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</code></pre>
A. f
B. rec
C. file
D. stud
View Answer
Q4.
निम्नलिखित सूडो कोड का आउटपुट क्या होगा, जहां ʌ XOR ऑपरेशन का प्रतिनिधित्व करता है?<break-line><break-line>What will be the output of the following pseudo code, where ʌ represent XOR operation ?<break-line><break-line><pre><code>Integer a, b, c Set b = 5, a = 1 c = a ^ b print c</code></pre>
A. 4
B. 3
C. 5
D. 7
View Answer
Q5.
सुन्न सरणी के गुण क्या हैं?<break-line><break-line>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