File Handling MCQs

File Handling MCQs

11th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

20.2 File Processing and Exception Handling Cambridge iA 9618

20.2 File Processing and Exception Handling Cambridge iA 9618

12th Grade

20 Qs

File Handling - Introduction

File Handling - Introduction

12th Grade

15 Qs

Python File handling - 2

Python File handling - 2

12th Grade

20 Qs

Programming Fundamentals Part 2

Programming Fundamentals Part 2

9th - 11th Grade

20 Qs

Records and Files

Records and Files

8th - 11th Grade

15 Qs

Basic File Handling Operations Quiz

Basic File Handling Operations Quiz

11th Grade

22 Qs

Microsoft Word

Microsoft Word

9th - 12th Grade

21 Qs

A2 Unit 19 Revision Quiz

A2 Unit 19 Revision Quiz

12th Grade

20 Qs

File Handling MCQs

File Handling MCQs

Assessment

Quiz

Computers

11th - 12th Grade

Easy

Created by

Anuja Jambhale

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the `WRITE` mode do when a file is opened in this mode?

Reads data from the file

Writes data to the file, overwriting any existing content

Adds data to the end of the file

Reads and writes data to the file

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the `APPEND` mode do when a file is opened in this mode?

Reads data from the file

Writes data to the file, overwriting any existing content

Adds data to the end of the file

Deletes the content of the file

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to check if the end of a file has been reached?

EOF()

endOfFile()

end()

isEOF()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the `READ` mode do when a file is opened in this mode?

Adds data to the file

Reads data from the file

Overwrites data in the file

Deletes the file

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type must be used when reading or writing lines in a text file?

INTEGER

FLOAT

STRING

BOOLEAN

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of closing a file after it is no longer being used?

To prevent data corruption

To write data automatically

To delete the file

To change file permissions

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is TRUE about the `EOF` function?

It writes data to the file

It returns TRUE if the end of the file is reached

It returns FALSE when the file is first opened

It reads the last line of the file

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?