Chapter 6 Flashcards

1
Q

“Writing data to”

A

Saving data on file

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

Output File

A

A file that data is written to

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

“Reading data from”

A

The process of retrieving data from a file.

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

Input File

A

A file from which data is read

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

Three steps for using a file

A

Open, process, close

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

Sequential Access

A

A file is read sequentially from beginning to end.

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

Direct Access

A

Can jump to any piece of data in the file.

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

open Function

A

Opens a file

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

‘r’

A

Opens a file for reading only

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

‘w’

A

Opens a file for writing and erases its current content

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

‘a’

A

Opens a file for writing and adds it to the end, does not erase

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

Method

A

A function that belongs to an object

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

read Method

A

Reads the files entire content into memory

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

readline Method

A

Reads a single line

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

Read Position

A

Marks the location of the next item to be read

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

str Function

A

Converts a value to a string

17
Q

Variable

A

The name of the variable

18
Q

File_Object

A

A variable that references a file object

19
Q

Record

A

Set of data that describes one item

20
Q

Field

A

Single piece of data within a record