File Handling Quiz-8

Share with others

Welcome to your File Handling Quiz-8

Name
Email
School Name
Q71. Which of the following mode will opens the file in read, write and binary mode?

Q72. In the given statement, the file myfile.txt will open in __________ mode.

myObject=open(“myfile.txt”, “a+”)

Q73. Ravi opened the file myfile.txt in append mode. In this file the file object/file handle will be at the ____________

Q74. Ravi opened the file myfile.txt in write mode. In this file the file object/file handle will be at the ____________

Q75. Ravi opened the file myfile.txt in read mode. In this file the file object/file handle will be at the ____________

Q76. Ravi opened a file in a certain mode. After opening the file, he forgot the mode. One interesting fact about that mode is " If the file already exists, all the contents will be overwritten". Help him to identify the correct mode.

Q77. Ravi opened a file in a certain mode. After opening the file, he forgot the mode. The interesting facts about that mode are " If the file doesn’t exist, then a new file will be created" and "After opening file in that mode the file handle will be at the end of the file" Help him to identify the correct mode.

Q78. Which of the following function is used to close the file?

Q79. open( ) function returns a file object called ______________

Q80. Which of the following is the valid way to open the file?


Share with others

Leave a Reply

error: Content is protected !!