Self Review Exercises 8 Flashcards

1
Q

SRE 8

The smallest data item a computer can process is called a ______.

a) database
b) byte
c) file
d) bit

A

d) bit

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

SRE 8

A group of related records is stored in a _____.

a) file
b) field
c) bit
d) byte

A

a) file

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

SRE 8

Data maintained in a file is called _____.

a) persistent data
b) bits
c) secondary data
d) databases

A

a) persistent data

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

SRE 8

Methods from the ______ class can be used to write data to a file.

a) StreamReader
b) WriteFile
c) StreamWriter
d) None of the above

A

c) StreamWriter

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

SRE 8

Namespace ______ provides the classes and methods you need to perform file processing.

a) System.IO
b) System.Files
c) System.Stream
d) System.Windows.Forms

A

a) System.IO

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

SRE 8

Sometimes a group of related files is called a _____.

a) field
b) database
c) collection
d) byte

A

b) database

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

SRE 8

A(n) ____ allows the user to select a file to open.

a) CreateFileDialog
b) OpenFileDialog
c) MessageBox
d) None of the Above

A

b) OpenFileDialog

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

SRE 8

Digits, letters and special symbols are referred to as ________.

a) constants
b) Integers
c) characters
d) None of the above

A

c) characters

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

SRE 8

StreamReader method ______ reads a line from a file.

a) ReadLine
b) Read
c) ReadAll
d) ReadToNewline

A

a) ReadLine

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

SRE 8

A _____ contains information that’s read in the order it was written.

a) sequential-access file
b) StreamWriter
c) StreamReader
d) None of the above

A

a) sequential-access file

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

SRE 8

Methods from class _____ can be used to read data from a file.

a) StreamWriter
b) FileReader
c) StreamReader
d) None of the above

A

c) StreamReader

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