
Lesson 41 - file handling & Various opening modes in file
Authored by NotchUp .co
Professional Development, Education
5th Grade
Used 35+ 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
The main goal of file handling in python is -
to save program codes
to store state of the program
to save program related data
none
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which of the following function is used to open the file in python file handling ?
open()
unlock()
unfold()
extend()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many parameters used to pass while opening a file ?
2
3
1
0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following mode is applied while writing into the file ?
'w'
'r'
'write'
'read'
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When we open file in reading mode the initial position of the cursor is-
0
After the last written word
middle of the file
none
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When we open file in writing mode what will happen ?
all the previous data will be deleted
all the previous data will not be deleted
Both can be happen depending on the situation
none
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to check the file opening mode of the file ?
readable()
writable()
Both readable() & writable()
none
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?