Search Header Logo

binary file quiz

Authored by anshu sharma

Computers

12th Grade

Used 3+ times

binary file quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To write dictionaries, tuples and any other python objects in binary file ___________ function is used

dump()

load()

write()

writelines()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_____________ is a processing of converting Python object hierarchy into a byte stream so that the contents can be written onto a file.

Serialization/Pickling

deserialization/ Unpickling

Conversion

Linking

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

pickle. dump() takes two arguments namely ___________ and __________

fileobject, file handle of the open file

file handle of the open file

file handle of the open file, fileobject

All of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct syntax of with statement is ___________

with open(<filename>,<mode>) as <file_handle>

With Open(<filename>,<mode>) <file_handle>

with open(<filename>,<mode>) as <file_handle>:

All of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

to unpickle the data coming from the file _________________ function of the pickle module is used.

pickle, load()

pickle.load()

pickle.load

pickle:load()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

While appending the data to the binary file, the mode should be _________________.

'a+'

'ab'

'a'

'w'

'w+'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mode used for reading and writing in binary file

wb

w

wb+

w+

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?