page-banner
Python M3-R5.1 MCQs SET-6
Q1.
कौन सा कथन फ़ाइल से एक पंक्ति लौटाएगा (फ़ाइल ऑब्जेक्ट "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
Q2.
निम्नलिखित लाइन को फंक्शनल बनाने के लिए किस मॉड्यूल को इम्पोर्ट किया जायेगा?<break-line><break-line>Which module to be imported to make the following line functional?<break-line><break-line><pre><code>sys.stdout.write("ABC")</code></pre>
A. system
B. stdin
C. stdout
D. sys
View Answer
Q3.
निम्नलिखित कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following code?<break-line><break-line><pre><code>import math abs(math.sqrt(36))</code></pre>
A. Error
B. 6
C. -6
D. 6.0
View Answer
Q4.
निम्नलिखित कोड का आउटपुट क्या है?<break-line><break-line>What is the output of the following code?<break-line><break-line><pre><code>a=set('abc') b=set('cd') print(a^b)</code></pre>
A. {a,b,c,d}
B. {'c', 'b', 'a', 'd'}
C. {'b', 'a', 'd'}
D. None of these
View Answer
Q5.
__________ एक कंटेनर है जो निरूपित आकृतियों के बीच सम्बन्ध को दर्शाता है<break-line><break-line>__________ is a connector showing the relationship between the representative shapes.
A. Line
B. Arrow
C. Process
D. Box
View Answer