Lesson 41 - file handling & Various opening modes in file

Quiz
•
Professional Development, Education
•
5th Grade
•
Medium
NotchUp .co
Used 35+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Code.org Quiz

Quiz
•
KG - 12th Grade
19 questions
Year 6 Microsoft Word

Quiz
•
5th - 6th Grade
20 questions
Technology

Quiz
•
KG - 12th Grade
15 questions
Lesson 31 Test-4

Quiz
•
5th - 8th Grade
20 questions
COMPUTER AND MATH REVIEWER

Quiz
•
5th Grade
20 questions
After Winter Break Classroom Expectations Part 2

Quiz
•
1st - 5th Grade
15 questions
Django #1 (basic)

Quiz
•
1st Grade - Professio...
25 questions
Google Educator Part 1

Quiz
•
KG - University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade