Ch. 5.11: Using Files for Data Storage Flashcards

1
Q

What does writing data mean?

A

When a piece of data is written to a file, it is copied from a variable in RAM to the file.

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

What is an output file?

A

A file to which data is written.

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

What does reading data mean?

A

When a piece of data is read from a file, it is copied from the file into a variable in RAM.

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

What is an input file?

A

A file from which data is read. It is called an input file because the program gets input from the file.

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

What is a text file?

A

A text file contains data that has been encoded as text, using a scheme such as ASCII or Unicode.

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

What is a binary file?

A

A binary file contains data that has not been converted to text. Thus you cannot view the contents of a binary file.

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

What is a sequential-access file?

A

When you work with a sequential-access file, you access data from the beginning of the file to the end of the file.

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

What is a random/direct access file?

A

You can jump directly to any piece of data in the file without reading the data that comes before it.

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

What is a filename?

A

Files on a disk are identified by a filename.

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

What is a filename extension?

A

Short sequences of characters that appear at the end of a filename preceded by a period known as a dot.

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

What is a file stream object?

A

A file stream object is an object that is associated with a specific file and provides a way for the program to work with that file. It is called a “stream” object because a file can be thought of as a stream of data.

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

What is a file buffer:

A

A small “holding section” of memory to which file-bound data is first written.

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

What is a read position?

A

A file’s read position marks the location of the next byte that will be read from the file.

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