Search Header Logo

Textboob MCQs Chapter 6 - Files

Authored by vihutuo paira

Computers

12th Grade

Used 3+ times

Textboob MCQs Chapter 6 - Files
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?