c# SEASON TWO FINAL CHAP 15 finale pt 6
The FileDialog class has a property called ____, which is used by both the OpenFileDialog and SaveFileDialog classes to set or get the name of the file using a dialog box.
FileName
The gray section below the Form object where dialog objects are placed in Visual Studio is called the ____.
Component Tray
Which method is used to cause the dialog boxes to open?
ShowDialog( )
Which exception is thrown when an attempt is made to access a file that does not exist?
FileNotFoundException
The StreamReader class extends the ____ class.
TextReader
If a StreamReader object named reader is instantiated and associated with a file stored in the project directory named "test.dta", which of the following statements would check to see if the "test.dta" exists?
if (File.Exists(reader))
In order to remove a StreamWriter object named writer, which is associated with a file in the project directory called "test.dta", you would write ____.
File.Delete(writer)
The most appropriate programmer-defined enumeration identifier for a card's color that has field values of Red, Blue, Yellow, Black, and Green would be ____.
CardColor
Which of the following is a static member of the Directory class?
Exists( )
Assume that an object of the DirectoryInfo is instantiated using the identifier dirListing. How could you retrieve the names of all files stored in dirListing that have a file extension of .cs?
foreach(FileInfo fil in dirListing.GetFiles("*.cs"))
Which of the following class has public constructors?
StreamReader
Parent and Root are two key properties of which class?
DirectoryInfo
Which method, used with the StreamWriter class, can be invoked to write characters to the stream, followed by a line terminator?
WriteLine( )
The keyword ____ can be used to define a scope for an object such that the CLR automatically disposes of, or releases, the resource when the object goes out of scope.
Using
BinaryReader and BinaryWriter classes ____.
offer streaming functionality oriented toward binary data types
Objects of streams can be wrapped with _________ objects to improve the speed and performance of file-handling operations.
BufferedStream
When writing text files, if you add true to the constructor for the Append argument, ____.
lines are added onto the end of the file
The StreamWriter method(s) that clears all buffers for the current writer and causes any buffered data to be written to the underlying stream is ____.
Flush( )
When you place an @ in front of a string, the string becomes a(n) ____.
Verbatim String
In relational databases, data is stored ____.
As a set of relations
Classes that can be used to retrieve, manipulate, and update data in databases are part of ____.
ADO.NET
All of the following are data providers included with .NET for accessing and manipulating data in databases, EXCEPT ____.
Access
To retrieve data from a database programmatically, one of the first things you must do is ____.
Connect to the Database
The connection string includes ____.
the data provider and the database name
The SQL statement that retrieves every field from a database table includes ____ following the SELECT keyword.
an asterisk(*)
Data is stored in tabular format for a relational database. Each row in the table represents a(n) ____.
Record
The ADO.NET architecture encapsulates the details of differing database structures such as
Oracle, as opposed to Access, in the form of ____.
Data Providers