Binary files in Python

Binary files in Python

12th Grade

13 Qs

quiz-placeholder

Similar activities

File Handling

File Handling

12th Grade

10 Qs

Python Basic files

Python Basic files

10th - 12th Grade

10 Qs

File Methods in Python

File Methods in Python

12th Grade

17 Qs

File Handling in Python - Grade 12 CBSE

File Handling in Python - Grade 12 CBSE

12th Grade

15 Qs

File Type Extensions

File Type Extensions

8th Grade - University

10 Qs

FILE HANDLING IN PYTHON

FILE HANDLING IN PYTHON

12th Grade

10 Qs

Python

Python

12th Grade

10 Qs

File Handling

File Handling

12th Grade

10 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?