Search Header Logo

File Handling

Authored by CHANDAN LOHANI

Computers

12th Grade

Used 1+ times

File Handling
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Choose the correct statement to close a file stream named myfile:

myfile.terminate()

myfile.end()

myfile.close()

myfile.remove()

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

The readlines() method returns

a. str

b. a list of lines

c. a list of single characters

d. a list of integers

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

An absolute path name begins at the

leaf

stem

root

current directory

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which function read single line at a time?

read()

read(n)

readline()

readlines()

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which memory is volatile memory?

RAM

Hard Disk

CD

Pen drive

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Where files are store permanently?

RAM

Hard Disk

Cache memory

None of these

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which function is used to close a file in python?

Close()

Stop()

End()

Closefile()

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?