Python - Chapter 6: Review Questions

Python - Chapter 6: Review Questions

8th Grade - University

15 Qs

quiz-placeholder

Similar activities

Excel - basic

Excel - basic

9th Grade

15 Qs

DreamWeaver CS6

DreamWeaver CS6

University

20 Qs

Cyber Security Homework 1

Cyber Security Homework 1

7th - 9th Grade

15 Qs

G8_Ch2_Windows Movie Maker

G8_Ch2_Windows Movie Maker

8th Grade

15 Qs

Sistem Mikrowave TJKT

Sistem Mikrowave TJKT

10th Grade

10 Qs

Quiz Informatika Bab 3 & 4

Quiz Informatika Bab 3 & 4

10th Grade

20 Qs

k12 bai4

k12 bai4

12th Grade

10 Qs

Banco de Dados

Banco de Dados

University - Professional Development

20 Qs

Python - Chapter 6: Review Questions

Python - Chapter 6: Review Questions

Assessment

Quiz

Computers

8th Grade - University

Easy

Created by

Ezzard Beane

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A file that data is written to is known as a(n) ______.

input file

output file

sequential access file

binary file

Answer explanation

It is called an output file because the program stores output in it.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A file that data is read from is known as a(n) ______.

input file

output file

sequential access file

binary file

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Before a file can be used by a program, it must be ______.

formatted

encrypted

closed

open

Answer explanation

Opening a file creates a connection between the file and the program. Opening an output file usually creates the file on the disk and allows the program to write data to it.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a program is finished using a file, it should do this.

erase the file

open the file

close the file

encrypt the file

Answer explanation

When the program is finished using the file, the file must be closed. Closing a file disconnects the file from the program. Also, Process the file, data is written to the file (if it is an output file) or read from the file (if it is an input file).

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The contents of this type of file can be viewed in an editor such as Notepad.

text file

binary file

English file

human-readable file

Answer explanation

A text file contains data that has been encoded as text, using a scheme such as ASCII or Unicode. Even if the file contains numbers, those numbers are stored in the file as a series of characters.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This type of file contains data that has not been converted to text.

text file

binary file

Unicode file

symbolic file

Answer explanation

You cannot view the contents of a binary file with a text editor. Python allows you to work with text or binary.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When working with this type of file, you can jump directly to any piece of data in the file without reading the data that comes before it.

ordered access

binary access

direct access

sequential access

Answer explanation

Direct access file (also known as random access file), you can jump "directly" to any piece of data in the file without reading the data that comes before it.

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?