Binary files in Python

Binary files in Python

12th Grade

13 Qs

quiz-placeholder

Similar activities

Google Aptitude Test

Google Aptitude Test

KG - University

10 Qs

Linux: Users and Groups

Linux: Users and Groups

9th Grade - University

14 Qs

CALL: TOEFL Exercise skill 1-3

CALL: TOEFL Exercise skill 1-3

12th Grade

10 Qs

Archivos Digitales

Archivos Digitales

9th Grade - University

14 Qs

tik kelas 7

tik kelas 7

1st Grade - University

15 Qs

Digital Icons

Digital Icons

12th Grade - University

16 Qs

Dasar Desain Grafis

Dasar Desain Grafis

12th Grade - University

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

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers