File Handling Quiz-12

Share with others

Welcome to your File Handling Quiz-12

Name
Email
School Name
Q111. Write the output of the following:

f=open("test.txt","r")
print(f.tell())

Q112. Write the output of the following:

f=open("test.txt","r")
print(f.tell(),end="6")
f.seek(5)
print(f.tell())

Q113. How many functions are used in the given code?

fileobject=open("practice.txt","r")
str = fileobject.readline()
while str:
     print(str)
     str=fileobject.readline()
fileobject.close()

Q114. __________ method is used to write the objects in a binary file.

Q115. __________ method is used to read data from a binary file.

Q116. Which module is to be imported for working in binary file?

Q117. Which of the following statement open the file "marker.txt" so that we can read existing content from file?

Q118. Which of the following statement open the file "marker.txt" as a blank file?

Q119. Amit has written the following statement. He is working with ______________

f = open("data", "rb")

Q120. Which of the following option is correct?


Share with others

Leave a Reply