Chapter 2: File Handling in Python

1 / 50

Proper sequence of file handling:

2 / 50

open() returns:

3 / 50

append mode does NOT:

4 / 50

read() without argument reads:

5 / 50

Text files are faster than binary files:

6 / 50

File pointer initially at:

7 / 50

EOF means:

8 / 50

Which is invalid mode?

9 / 50

Which mode allows both read & write?

10 / 50

File must be closed to:

11 / 50

CSV files store data in:

12 / 50

csv.reader() returns:

13 / 50

csv.writer() is used for:

14 / 50

Module used for CSV:

15 / 50

CSV stands for:

16 / 50

Binary files store:

17 / 50

load() is used to:

18 / 50

dump() is used to:

19 / 50

Pickle module is used for:

20 / 50

Binary files use mode:

21 / 50

seek(offset,2) refers to:

22 / 50

seek(offset,1) refers to:

23 / 50

seek(0) moves pointer to:

24 / 50

tell() returns:

25 / 50

seek() is used to:

26 / 50

Append mode adds data at:

27 / 50

Writing in ‘w’ mode removes:

28 / 50

writelines() writes:

29 / 50

write() returns:

30 / 50

Method to write into file:

31 / 50

File pointer moves after reading:

32 / 50

readlines() returns:

33 / 50

Method to read one line:

34 / 50

read(n) reads:

35 / 50

Method to read entire file:

36 / 50

Mode ‘a’ positions pointer at:

37 / 50

Mode ‘w’ creates file if not exists:

38 / 50

Mode ‘a’ means:

39 / 50

Mode ‘w’ does:

40 / 50

Mode ‘r’ means:

41 / 50

File object represents:

42 / 50

Which function closes a file?

43 / 50

Default mode of open():

44 / 50

Syntax of opening a file:

45 / 50

Function used to open a file:

46 / 50

Binary files store data in:

47 / 50

Text files store data as:

48 / 50

Which of the following is NOT a file type?

49 / 50

Files store data in:

50 / 50

A file is:

Your score is

The average score is 0%