Search Header Logo

File Manipulation

Authored by Krishna Sekhar

others

Used 1+ times

File Manipulation
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which mode can be used to open a file in order to add new lines without overwriting existing data?

Read mode
Write mode
Append mode
Close mode

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the Read File instruction do?

Opens a file in read mode
Reads a line of text from a file
Writes a line of text into a file
Closes an already open file

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which instruction is used to write a line of text into a file?

Open File
Read File
Write File
Close File

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the Close File instruction do?

Opens a file in read mode
Reads a line of text from a file
Writes a line of text into a file
Closes an already open file

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the End of File function?

To open a file
To read a line of text from a file
To write a line of text into a file
To test whether we've reached the end of the file

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct sequence of steps to process a text file?

Open file, write file, close file
Open file, read file, close file
Write file, open file, close file
Read file, write file, close file

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which mode is the existing data in a file overwritten when writing new lines?

Read mode
Write mode
Append mode
Close mode

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?