
File Handling in Python
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
sabna sathar
Used 43+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
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
2.
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()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to read records from a binary file?
pickle.load(f)
pickle.read()
pickle.open()
pickle.dump(l,f)
4.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Write statement to use the required module for working with comma separated values (csv) files.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Write the appropriate statement in the blank.
writer=csv.writer(file)
writer=writer(f)
w=csv.write(f)
w=csv.writerow()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement(s) is/are true to open a binary file "Record.dat" for reading and writing.
file =open("Record.dat","wb")
file =open("Record.dat","rb")
file =open("Record.dat","ab")
file =open("Record.dat","rb+")
7.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
The default file - open mode is ________ mode.
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?
Similar Resources on Wayground
10 questions
Bitmap/Adobe Photoshop
Quiz
•
9th - 12th Grade
10 questions
Excel
Quiz
•
11th - 12th Grade
20 questions
Python Recap
Quiz
•
7th Grade - University
15 questions
Mengenal Internet dan Jaringan Local
Quiz
•
12th Grade
15 questions
Vocabulary of Computer
Quiz
•
12th Grade
12 questions
Kuiz Komputer dan ICT
Quiz
•
1st Grade - University
20 questions
Teknik Pengolahan Audio dan Video
Quiz
•
12th Grade
10 questions
Quizzone Gmail
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
