Binary files in Python

Binary files in Python

12th Grade

13 Qs

quiz-placeholder

Similar activities

File Types

File Types

12th Grade

18 Qs

File Type Extensions

File Type Extensions

8th Grade - University

10 Qs

Text File - Quiz

Text File - Quiz

12th Grade - University

10 Qs

Python Text & Binary Files

Python Text & Binary Files

12th Grade

15 Qs

File handling

File handling

12th Grade

10 Qs

Python

Python

12th Grade

10 Qs

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

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

12th Grade

15 Qs

Python Binary File

Python Binary File

12th Grade

15 Qs

Binary files in Python

Binary files in Python

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Sarika Kaushal

Used 49+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mode refer to binary data

w

b

+

a

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mode used for reading and writing in binary file

wb

w

wb+

w+

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Function used to write data in binary format

write()

output()

load()

dump()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Module used to read and write into binary files

dump

load

pickle

open

5.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Method used to read data from a binary file

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to open the file file_in.txt for reading?

open('file_in.txt', 'r')

open('file_in.txt','r+')

open('file_in.txt','w')

open('file_in.txt','a')

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the best way to read an entire file into a list of strings?

.read()

.readline()

.readlines()

.read(all)

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?