Self Review Exercises 8 Flashcards
SRE 8
The smallest data item a computer can process is called a ______.
a) database
b) byte
c) file
d) bit
d) bit
SRE 8
A group of related records is stored in a _____.
a) file
b) field
c) bit
d) byte
a) file
SRE 8
Data maintained in a file is called _____.
a) persistent data
b) bits
c) secondary data
d) databases
a) persistent data
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
c) StreamWriter
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) System.IO
SRE 8
Sometimes a group of related files is called a _____.
a) field
b) database
c) collection
d) byte
b) database
SRE 8
A(n) ____ allows the user to select a file to open.
a) CreateFileDialog
b) OpenFileDialog
c) MessageBox
d) None of the Above
b) OpenFileDialog
SRE 8
Digits, letters and special symbols are referred to as ________.
a) constants
b) Integers
c) characters
d) None of the above
c) characters
SRE 8
StreamReader method ______ reads a line from a file.
a) ReadLine
b) Read
c) ReadAll
d) ReadToNewline
a) ReadLine
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) sequential-access file
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
c) StreamReader