Binary files in Python

Quiz
•
Computers
•
12th Grade
•
Medium
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
Similar Resources on Wayground
15 questions
CSP Unit 1 Review

Quiz
•
9th - 12th Grade
10 questions
ASJ 12 TKJ - PERINTAH DASAR LINUX

Quiz
•
12th Grade
10 questions
LUA Test

Quiz
•
9th Grade - University
10 questions
Python: práce se soubory (opakování)

Quiz
•
12th Grade
15 questions
File Types and Formats Quiz

Quiz
•
8th Grade - University
15 questions
File Handling in Python

Quiz
•
12th Grade
15 questions
Linux-2 Quiz 2 -- LAMP

Quiz
•
1st - 12th Grade
13 questions
Writing files in python

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade