page-banner
Python M3-R5.1 MCQs SET-9
Q11.
निम्नलिखित कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following code ?<pre><code>f=open("demo.txt","r") print(f.tell())</code></pre>
A. 1
B. 2
C. -1
View Answer
Q12.
फ़ाइल में निम्न में से कौन सा बुनियादी I/O कनेक्शन है?<break-line><break-line>Which of the following is the basic I/O connections in file ?
A. Standard Input
B. Standard Output
C. Standard Errors
D. All of the mentioned
View Answer
Q13.
कौन सा फंक्शन स्ट्रिंग्स लौटाता है?<break-line><break-line>Which function returns the strings?
A. readline()
B. read()
C. Both of the above
D. None of the above
View Answer
Q14.
निम्नलिखित कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following code ?<pre><code>f=open("demo.txt","w+") f.write("Welcome to Python") f.seek(5) a=f.read(5) print(a)</code></pre>
A. Welco
B. me to
C. Welcome to Python
D. e to
View Answer
Q15.
seek() का सिंटैक्स है: file_object.seek(offset [, Reference_point])<break-line><break-line>What does the reference_point indicate?
A. reference_point indicates the current position of the file object
B. reference_point indicates the starting position of the file object
C. reference_point indicates the ending position of the file object
D. None of the above
View Answer