binary file quiz

binary file quiz

12th Grade

11 Qs

quiz-placeholder

Similar activities

File Handling in Python

File Handling in Python

11th - 12th Grade

10 Qs

File Handling

File Handling

12th Grade

10 Qs

file handling

file handling

12th Grade

12 Qs

CUET Level - II Computer Science(7/11/2023)

CUET Level - II Computer Science(7/11/2023)

12th Grade

15 Qs

FILE HANDLING IN PYTHON

FILE HANDLING IN PYTHON

12th Grade

10 Qs

Binary files in Python

Binary files in Python

12th Grade

13 Qs

Python File Handling

Python File Handling

12th Grade

15 Qs

XII Practical Exam

XII Practical Exam

12th Grade

12 Qs

binary file quiz

binary file quiz

Assessment

Quiz

Computers

12th Grade

Medium

Created by

anshu sharma

Used 3+ times

FREE Resource

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+

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?