page-banner
Python M3-R5.1 MCQs SET-9
Q11.
निम्नलिखित कोड का आउटपुट क्या होगा?

What will be the output of the following code ?
f=open("demo.txt","r")
print(f.tell())
A. 1
B. 2
C. -1
View Answer
Q12.
फ़ाइल में निम्न में से कौन सा बुनियादी I/O कनेक्शन है?

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.
कौन सा फंक्शन स्ट्रिंग्स लौटाता है?

Which function returns the strings?
A. readline()
B. read()
C. Both of the above
D. None of the above
View Answer
Q14.
निम्नलिखित कोड का आउटपुट क्या होगा?

What will be the output of the following code ?
f=open("demo.txt","w+")
f.write("Welcome to Python")
f.seek(5)
a=f.read(5)
print(a)
A. Welco
B. me to
C. Welcome to Python
D. e to
View Answer
Q15.
seek() का सिंटैक्स है: file_object.seek(offset [, Reference_point])

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

Create Account