
PP_Week11_Batch1_Files
Authored by Narasimha Reddy Soora
Professional Development, Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
myfile=open("MYDATA.dat","rb")
myfile=open("MYDATA.dat","r+")
myfile=open("MYDATA.dat","r")
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
r
w
a
r+
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
myfile.terminate()
myfile.end()
myfile.close()
myfile.remove()
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the given block of code
Error(not readable)
Error(not writable)
It will read all the data of the file.
none
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Analyze the give code and choose appropriate options given.
Writing into the file without erasing old content
Writing into the file by erasing old content
reading from the file without erasing old content
reading from the file by erasing old content
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
file =open("Record.dat","wb")
file =open("Record.dat","rb")
file =open("Record.dat","ab")
file =open("Record.dat","rb+")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a. str
b. a list of lines
c. a list of single characters
d. a list of integers
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?