Search Header Logo

Computer Science Quiz

Authored by Amudhavalli K

Other

12th Grade

Used 1+ times

Computer Science Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What type of data is stored in a binary file?

Plain text

Encoded strings

Binary format (0s and 1s)

Unicode format

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is not a difference between text and binary files?

Binary files are not human-readable

Text files store data as ASCII/Unicode

Binary files are always smaller

Binary files store data in raw format

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the main purpose of using the pickle module in Python?

Encrypt data

Convert binary to text

Serialize and deserialize Python objects

Compress files

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which module is required to perform pickling in Python?

binary

pickle

os

marshal

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is used to save an object to a binary file?

pickle.read()

pickle.load()

pickle.save()

pickle.dump()

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which function is used to read an object from a binary file using pickle?

pickle.dump()

pickle.read()

pickle.load()

pickle.open()

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct way to open a binary file for writing?

open('file.dat', 'w')

open('file.dat', 'rb')

open('file.dat', 'wb')

open('file.dat', 'ab')

Access all questions and much more by creating a free account

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

Already have an account?