page-banner
Python M3-R5.1 MCQs SET-7
Q16.
पायथन में कौन सा फंक्शन फाइल को खोलता है?<break-line><break-line>Which function opens file in python ?
A. open()
B. Open()
C. new()
D. None of the above
View Answer
Q17.
निम्नलिखित कोड का आउटपुट क्या है?<break-line><break-line>What is the output of following code ?<break-line><break-line><pre><code>a1={1:"A",2:"B",3:"C"} b1={4:"D",5:"E"} b1.update(a1) print(b1)</code></pre>
A. {4: 'D', 5: 'E', 1: 'A', 2: 'B', 3: 'C'}
B. {1: 'A', 2: 'B', 3: 'C', 4: 'D', 5: 'E'}
C. {4: 'D', 5: 'E'}
D. None of these
View Answer
Q18.
कौन सा कथन फ़ाइल से 5 वर्ण पढ़ेगा file(file object „f‟)?<break-line><break-line>Which statement will read 5 characters from a file(file object „f‟) ?
A. f.read()
B. f.read(5)
C. f.reads(5)
D. None of the above
View Answer
Q19.
प्रोग्राम में फंक्शन नाम के बाद __________ लिखकर फंक्शन को कॉल किया जा सकता है।<break-line><break-line>The function can be called in the program by writing function name followed by __________.
A. [ ]
B. { }
C. ( )
D. None of the above
View Answer
Q20.
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code ?<break-line><break-line><pre><code>from math import * ceil(3.4)</code></pre>
A. 4
B. 3
C. 3.5
D. None of these
View Answer