Textboob MCQs Chapter 6 - Files

Textboob MCQs Chapter 6 - Files

12th Grade

25 Qs

quiz-placeholder

Similar activities

Computer Literacy

Computer Literacy

9th - 12th Grade

20 Qs

ITF504 - Backup and Recovery

ITF504 - Backup and Recovery

9th - 12th Grade

27 Qs

python-series

python-series

12th Grade

20 Qs

CSV File handling in Python

CSV File handling in Python

12th Grade

25 Qs

File Methods in Python

File Methods in Python

12th Grade

20 Qs

HTML BASIC 0 - 1

HTML BASIC 0 - 1

12th Grade

20 Qs

MS Word

MS Word

2nd Grade - University

20 Qs

Files & File Systems

Files & File Systems

9th - 12th Grade

24 Qs

Textboob MCQs Chapter 6 - Files

Textboob MCQs Chapter 6 - Files

Assessment

Quiz

Computers

12th Grade

Medium

Created by

vihutuo paira

Used 3+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a solid argument for using file handling?

It is not possible to store all data produced by the program in the main memory

It is used for persistent storage

Both

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which of the format the end of the line is denoted by \n and \r

Text

Binary

Both

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To be able to use a file it must be opened. The reason for doing so is

To allocate memory to the object so formed

To specify the access mode

To specify the offset (optional)

All of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In f = open("abc.txt", "r"), the offset is

0 from the beginning

0 from the end

Random

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many arguments does the open function take?

1

2

3

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The file must be closed, if it is opened in which of the following mode?

r

w

both

None of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the file is not opened successfully, which of the following exception is raised?

File not found

IOERROR

IO

None of these

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?

Discover more resources for Computers