Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python File Handling

Total questions: 8

Worksheet time: 4mins

Name
Class
Date
1.

What is the full form of CSV?

a)

Common separated value

b)

Comma separated value

c)

Comma secured value

d)

None

2.

What is the extension for binary files?

a)

.csv

b)

.CSV

c)

.dat

d)

.txt

3.

Which function of text file will read the content of the complete file?

a)

read(4)

b)

readline()

c)

redlines()

d)

read()

4.

Which mode in file handling will create a file , if the file does not exist?

a)

r

b)

w

c)

a

d)

NONE

5.

Storing the data in binary files is called .

a)

Pickling

b)

Unpickling

c)

Both a and b

d)

None

6.

Which function is used to read the content of Binary files ?

a)

dump()

b)

load()

c)

both a and b

d)

None

7.

Which mode in binary files is used to keep the previous data of an existing file along with add the new data at the end of it .

a)

rb

b)

wb

c)

ab

d)

a

8.

Which keyword is used to use(add) a module in Python Programming?

a)

insert

b)

input

c)

import

d)

None