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
Q

A folder is a ___ representation of a directory.

A

GUI (Graphical User Interface)

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

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.

A

filename

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

Locating a file on a storage device and associating a variable name within your program with the file.

A

Opening the file

28
Q

reading from a file is…

A

copying data from a file on a storage device into RAM

29
Q

Changes made to the fields in memory affect the original data stored on the input device. True or False?

30
Q

a character stores between data fields (such as a comma, semicolon, or tab)

31
Q

True or False: data item retrieval from storage is not program-language specific?

32
Q

What are the 2 ways that a program can read records from a file?

A
  1. Sequentially

2. Randomly

33
Q

Ascending order and descending order are the types of ______ you can do with records.

34
Q

storing data in a computer file on a persistent storage device; copying data from RAM to the file.

A

“write to the file”

35
Q

When writing data to a file, you do not include ________ that make data easier for humans to interpret.

A

explanations

36
Q

Making a file unavailable to your program/application

A

to “close the file”

37
Q

When you close a file as soon as you no longer need it, you prevent the computer’s…

A

performance from suffering and loss of computer resources (energy, RAM, etc).

38
Q

What is the main default input device?

A

a keyboard

39
Q

a copy of a file that is kept in case values need to be restored to their original state.

A

backup file

40
Q

a newly revised copy of the parent file

A

child file

41
Q

these are read from beginning to end, one at a time

A

sequential files

42
Q

a temporary detour in the logic of a program

A

control break

43
Q

What is another name for a backup file?

A

a “parent file”

44
Q

What is the main default output device?

45
Q

a break in the logic of the program that is based on the value of a single variable

A

single-level control break

46
Q

Do you initialize a single-level control break when it is declared?

A

No, you wait for it to be processed by the first input record. This allows for accurate storage.

47
Q

A form of output that includes special processing after each group of records

A

control break report

48
Q

In a ______ _____ _______, a change in the value of a variable initiates special actions or causes unique processing to occur.

A

control break program

49
Q

To generate a control break report input records must be organized in ________ order based on the field that will trigger the break.

A

sequential

50
Q

files in which records can be accessed immediately

A

instant access files

51
Q

These are used to take special action to better organize information it’s working on by some logical factor.

A

control break programs

52
Q

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…

A

control break field

53
Q

Comparing the old value to the new value will ultimately determine when to produce the…

A

control break

54
Q

combining two or more files while maintaining the sequential order of the records

A

Merging files

55
Q

The control break requires 3 things:

A
  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
Q

Master file holds complete and relatively permanent data, while the _________ file holds temporary data.

A

transaction

57
Q

processing which involves performing the same tasks with many records, one after the other, and often done without human intervention

A

batch processing

58
Q

Making appropriate changes to the values in its fields based on the recent transactions is called…

A

“Updating the master file”

59
Q

Direct access files come in handy when dealing with a program wherein the user makes direct requests, or ________ program.

A

interactive

60
Q

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.
A

merging files

61
Q

The _____ is the combination of the disk drive plus the complete hierarchy of directories in which a file resides.

62
Q

Applications that require a record be accessed immediately while a client or user waits are processed in ____ ____.

63
Q

Random access memory is….

A

persistent.

64
Q

A control break occurs when a program pauses to perform special processing based on the value of a _____.

65
Q

Whenever a control break occurs during record processing in any control break program, you must ______ the value in the _______ _____ _____.

A

update, control break field

66
Q

What are the two types of random access files?

A
  1. instant access files

2. direct access files

67
Q

What is the main difference between a direct access file and an instant access file?

A

The instant access files have records that can be accessed immediately.