PP_Week11_Batch1_Files

PP_Week11_Batch1_Files

University

13 Qs

quiz-placeholder

Similar activities

Database Handling using Python

Database Handling using Python

University

10 Qs

CSE105

CSE105

University

15 Qs

Computer and Programming Fundamentals Test 1

Computer and Programming Fundamentals Test 1

University

10 Qs

Ch 2  - Accessing Data - Part 1

Ch 2 - Accessing Data - Part 1

University

12 Qs

PYTHON QUIZ2

PYTHON QUIZ2

University - Professional Development

10 Qs

CSE 102 Exam 3 Practice

CSE 102 Exam 3 Practice

University

18 Qs

Повторення пайтон3 панда

Повторення пайтон3 панда

University

9 Qs

File Handling Quiz

File Handling Quiz

University

10 Qs

PP_Week11_Batch1_Files

PP_Week11_Batch1_Files

Assessment

Quiz

Professional Development, Computers

University

Medium

Created by

Narasimha Reddy Soora

Used 1+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

myfile=open("MYDATA.dat","rb")

myfile=open("MYDATA.dat","r+")

myfile=open("MYDATA.dat","r")

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

r

w

a

r+

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

myfile.terminate()

myfile.end()

myfile.close()

myfile.remove()

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

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

Media Image

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

Media Image

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

Media Image

a. str

b. a list of lines

c. a list of single characters

d. a list of integers

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?