Binary files in Python

Binary files in Python

12th Grade

13 Qs

quiz-placeholder

Similar activities

Excel 2013

Excel 2013

11th - 12th Grade

15 Qs

Quiz

Quiz

12th Grade

15 Qs

File handling

File handling

12th Grade

10 Qs

File Handling in Python

File Handling in Python

12th Grade

15 Qs

cs1300-F17-Week8

cs1300-F17-Week8

12th Grade - University

15 Qs

Comprog-October 11, 2022

Comprog-October 11, 2022

11th - 12th Grade

10 Qs

Quiz Pemrograman Java dengan netbeans

Quiz Pemrograman Java dengan netbeans

10th Grade - University

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