
ONE 6th FORM File Handling
Authored by Lorna Jarrett
Computers
11th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which file execute faster?
Text file
Binary file
CSV file
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mode in the following program to open file for writing in a mode where new data will be added at the end of old data
file =open("poem.txt","__")
r
a
w
x
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code myfile=open(“taxes.txt”) perform
opens the taxes.txt in default read mode.
opens the taxes.txt in default write mode.
opens the taxes.txt in default append mode.
opens the taxes.txt in default read and write mode.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct statement to close a file stream named myfile:
myfile.terminate()
myfile.end()
myfile.close()
myfile.remove()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to write multiple lines in text file?
write()
writelines()
lines()
print()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. Select the statement to open a file named MYDATA.dat in read binary mode. Let the file object name be myfile.
myfile=open("MYDATA.dat","rb")
myfile=open("MYDATA.dat","r+")
myfile=open("MYDATA.dat","r")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a basic file handling operation?
Read
Write
Open
Execute
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?