Chapter 7 (File Handling) Flashcards

1
Q

a collection of data stored on a nonvolatile device in a computer system

A

a computer file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What describes a permanent storage device wherein data items saved onto them are available for future use?

A

Durable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 2 categories of computer files?

A
  1. text files

2. binary files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

oftentimes, this designates the software that will be used to open a given file.

A

filename extension

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is the base unit that file sizes are measured in?

A

bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

thousands of bytes

A

kilobyte

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

billions of bytes

A

gigabyte

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the 2 organizational units on a storage device?

A

Directories and folders

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Each computer files has a ________, by default. You cannot save a file without it.

A

filename

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

data that has not been encoded by text / cannot be read in a text editor.

A

binary files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Terms such as “temporary” and “permanent” do NOT refer to length of time, they refer to _______.

A

volatility

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

disk drive + the complete hierarchy of directories in which a file resides

A

a file’s “path”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

When writing a program that stores a value in a variable, you are using ___________ storage.

A

temporary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

the relationship among data components

A

data hierarchy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

letters, numbers, and special symbols; they include seemingly “empty” symbols such as spaces and tabs

A

characters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The value of a variable is temporarily stored, so it is lost when the program ends or if the computer…

A

loses power

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is another term for permanent storage?

A

persistent storage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Files are…

A

a group of related records.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Characters -> ______ -> _______ -> Files

A

Fields, Records

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

these hold related file data in tables

A

database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

These can contain multiple files as well as additional of itself.

A

Directories

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

True or False: functionally, directories and folders are the same.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Records are a group of ______ that go together for some logical reason.

A

fields

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

a million bytes

A

megabytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
A folder is a ___ representation of a directory.
GUI (Graphical User Interface)
26
To make a program read a file’s data from a storage device, you also need to associate the program’s internal _______ with the operating system's name for the file.
filename
27
Locating a file on a storage device and associating a variable name within your program with the file.
Opening the file
28
reading from a file is...
copying data from a file on a storage device into RAM
29
Changes made to the fields in memory affect the original data stored on the input device. True or False?
False
30
a character stores between data fields (such as a comma, semicolon, or tab)
delimiter
31
True or False: data item retrieval from storage is not program-language specific?
False
32
What are the 2 ways that a program can read records from a file?
1. Sequentially | 2. Randomly
33
Ascending order and descending order are the types of ______ you can do with records.
Sorting
34
storing data in a computer file on a persistent storage device; copying data from RAM to the file.
"write to the file"
35
When writing data to a file, you do not include ________ that make data easier for humans to interpret.
explanations
36
Making a file unavailable to your program/application
to "close the file"
37
When you close a file as soon as you no longer need it, you prevent the computer's...
performance from suffering and loss of computer resources (energy, RAM, etc).
38
What is the main default input device?
a keyboard
39
a copy of a file that is kept in case values need to be restored to their original state.
backup file
40
a newly revised copy of the parent file
child file
41
these are read from beginning to end, one at a time
sequential files
42
a temporary detour in the logic of a program
control break
43
What is another name for a backup file?
a "parent file"
44
What is the main default output device?
a monitor
45
a break in the logic of the program that is based on the value of a single variable
single-level control break
46
Do you initialize a single-level control break when it is declared?
No, you wait for it to be processed by the first input record. This allows for accurate storage.
47
A form of output that includes special processing after each group of records
control break report
48
In a ______ _____ _______, a change in the value of a variable initiates special actions or causes unique processing to occur.
control break program
49
To generate a control break report input records must be organized in ________ order based on the field that will trigger the break.
sequential
50
files in which records can be accessed immediately
instant access files
51
These are used to take special action to better organize information it’s working on by some logical factor.
control break programs
52
The technique used for the computer to “remember” the old value, so as to compare it to the new value to see if they are identical, is by giving that old value a special variable. This special variable is called a...
control break field
53
Comparing the old value to the new value will ultimately determine when to produce the...
control break
54
combining two or more files while maintaining the sequential order of the records
Merging files
55
The control break requires 3 things:
1. The field must be output 2. The new element must be re-initialized. 3. The field must be updated to hold the new (comparing) value
56
Master file holds complete and relatively permanent data, while the _________ file holds temporary data.
transaction
57
processing which involves performing the same tasks with many records, one after the other, and often done without human intervention
batch processing
58
Making appropriate changes to the values in its fields based on the recent transactions is called...
"Updating the master file"
59
Direct access files come in handy when dealing with a program wherein the user makes direct requests, or ________ program.
interactive
60
Before doing this to files, each file must: 1. contain the same record layout 2. be sorted in the same order based on the same field.
merging files
61
The _____ is the combination of the disk drive plus the complete hierarchy of directories in which a file resides.
path
62
Applications that require a record be accessed immediately while a client or user waits are processed in ____ ____.
real-time
63
Random access memory is....
persistent.
64
A control break occurs when a program pauses to perform special processing based on the value of a _____.
field
65
Whenever a control break occurs during record processing in any control break program, you must ______ the value in the _______ _____ _____.
update, control break field
66
What are the two types of random access files?
1. instant access files | 2. direct access files
67
What is the main difference between a direct access file and an instant access file?
The instant access files have records that can be accessed immediately.