Binary files in Python

Binary files in Python

12th Grade

13 Qs

quiz-placeholder

Similar activities

File Handling-1

File Handling-1

12th Grade

10 Qs

Slip Test

Slip Test

12th Grade

10 Qs

File Type Extensions

File Type Extensions

8th Grade - University

10 Qs

Python

Python

12th Grade

10 Qs

Binary File Handling Python

Binary File Handling Python

12th Grade

10 Qs

File Handling - Introduction

File Handling - Introduction

12th Grade

15 Qs

FILE HANDLING

FILE HANDLING

12th Grade

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

Discover more resources for Computers