Search Header Logo

File Handling - Grade XII

Authored by M jenira

Computers

12th Grade

Used 4+ times

File Handling - Grade XII
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mode in the following program to open file for writing in a mode where new data will be added at the end of old data


file =open("poem.txt","__")

r

a

w

x

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

myfile.terminate()

myfile.end()

myfile.close()

myfile.remove()

3.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image

See the following code snippet and fill in the blank with appropriate statement

4.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image

Fill in the blank with appropriate statement.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which function is used to read records from a binary file?

pickle.load(f)

pickle.read()

pickle.open()

pickle.dump(l,f)

6.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image

Write the appropriate statement in the blank.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement(s) is/are true to open a binary file "Record.dat" for reading and writing.

file =open("Record.dat","wb")

file =open("Record.dat","rb")

file =open("Record.dat","ab")

file =open("Record.dat","rb+")

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?