Python - Chapter 6: Review Questions

Python - Chapter 6: Review Questions

8th Grade - University

15 Qs

quiz-placeholder

Similar activities

DATA STRUCTURES

DATA STRUCTURES

University

20 Qs

Computers and computer networks

Computers and computer networks

7th - 8th Grade

15 Qs

Big Idea 2 Review

Big Idea 2 Review

9th - 12th Grade

20 Qs

20.2 File Processing and Exception Handling Cambridge iA 9618

20.2 File Processing and Exception Handling Cambridge iA 9618

12th Grade

20 Qs

13.2 File Organisation and Access Cambridge iA 9618

13.2 File Organisation and Access Cambridge iA 9618

12th Grade

20 Qs

IGCSE ICT Full Forms

IGCSE ICT Full Forms

9th - 10th Grade

16 Qs

Information Processing

Information Processing

11th Grade

14 Qs

Index Sequential search - Data Stuctures

Index Sequential search - Data Stuctures

University

15 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

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.

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?