page-banner
Python M3-R5.1 MCQs SET-6
Q1.
कौन सा कथन फ़ाइल से एक पंक्ति लौटाएगा (फ़ाइल ऑब्जेक्ट "f" है)?

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.
निम्नलिखित लाइन को फंक्शनल बनाने के लिए किस मॉड्यूल को इम्पोर्ट किया जायेगा?

Which module to be imported to make the following line functional?

sys.stdout.write("ABC")
A. system
B. stdin
C. stdout
D. sys
View Answer
Q3.
निम्नलिखित कोड का आउटपुट क्या होगा?

What will be the output of the following code?

import math
abs(math.sqrt(36))
A. Error
B. 6
C. -6
D. 6.0
View Answer
Q4.
निम्नलिखित कोड का आउटपुट क्या है?

What is the output of the following code?

a=set('abc')
b=set('cd')
print(a^b)
A. {a,b,c,d}
B. {'c', 'b', 'a', 'd'}
C. {'b', 'a', 'd'}
D. None of these
View Answer
Q5.
__________ एक कंटेनर है जो निरूपित आकृतियों के बीच सम्बन्ध को दर्शाता है

__________ is a connector showing the relationship between the representative shapes.
A. Line
B. Arrow
C. Process
D. Box
View Answer

Create Account