page-banner
Python M3-R5.1 MCQs SET-3
Q1.
a=5, b=8, c=6 के लिए निम्नलिखित एल्गोरिथम का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following algorithm for a=5, b=8, c=6 ?<break-line><break-line>Step 1 : Start<break-line>Step 2 : Declare variables a, b and c.<break-line>Step 3 : Read variables a, b and c.<break-line>Step 4 : If a < b<break-line>If a < c<break-line>Display a is the smallest number.<break-line>Else<break-line>Display c is the smallest number.<break-line>Else<break-line>If b < c<break-line>Display b is the smallest number.<break-line>Else<break-line>Display c is the smallest number.<break-line>Step 5 : Stop
A. a is the smallest number
B. b is the smallest number
C. c is the smallest number
D. stop
View Answer
Q2.
दो संख्याओं का योग करने के लिए, फ्लो चार्ट में निम्नलिखित में से किस चिन्ह का उपयोग किया जाता है?<break-line><break-line>For performing the addition of two numbers, which of the following symbol in a flow chart is used?
A. Control flow
B. Terminal
C. Decision
D. Processing
View Answer
Q3.
निम्नलिखित कोड का आउटपुट क्या है?<break-line><break-line>What is the output of the following code?<break-line><break-line><pre><code>import numpy as np a = np.array([[1,2,3], [4,5,6]]) print(a.shape)</code></pre>
A. (2,3)
B. (3,2)
C. (1,1)
D. None of these
View Answer
Q4.
कौन सा स्टेटमेंट फाइल (file object is 'f') से एक पंक्ति प्रस्तुत करेगा?<break-line><break-line>Which statement will return one line from a file (file object is 'f')?
A. f.readlines()
B. f.readline()
C. f.read()
D. f.line()
View Answer
Q5.
निम्न में से कौन सा एक नियंत्रण संरचना नहीं है?<break-line><break-line>Which of the following is not a control structure?
A. Loop
B. Process
C. Decision
D. None of these
View Answer