Python - Chapter 6: Review Questions
Quiz
•
Computers
•
8th Grade - University
•
Easy
Ezzard Beane
Used 2+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
CHAPTER 1: COMPUTER SECURITY REVIEW
Quiz
•
University
10 questions
Sistem Mikrowave TJKT
Quiz
•
10th Grade
20 questions
Quiz Informatika Bab 3 & 4
Quiz
•
10th Grade
10 questions
ICT as Social Change
Quiz
•
12th Grade
20 questions
Banco de Dados
Quiz
•
University - Professi...
15 questions
Excel - basic
Quiz
•
9th Grade
20 questions
DreamWeaver CS6
Quiz
•
University
15 questions
Cyber Security Homework 1
Quiz
•
7th - 9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
