Services
Discover
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
C# Programming From Problem Analysis to Program Design Study Set 1
Exam 13: Working With Files
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
True/False
If an invalid path is listed in the constructor for the StreamWriter object, you will be prompted to reenter the file name.
Question 22
True/False
The StreamReader's Peek( ) method returns the next available character but does not consume it.
Question 23
True/False
The StreamReader class is most often used to retrieve single characters, one character at a time, from a file.
Question 24
Multiple Choice
BinaryReader and BinaryWriter classes ____.
Question 25
Short Answer
If you do not specify the full path for the filename, Visual Studio uses the ____________ subdirectory of the current project.
Question 26
True/False
In order to invoke the Copy( ) method of the File class, instantiate an object of the File class and send as an argument a filename.
Question 27
Short Answer
To ensure that the data is usable for the next application the ____________ method should be invoked before you exit the application.
Question 28
Multiple Choice
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 ____.
Question 29
True/False
File and Directory classes add functionality to their method members beyond that of FileInfo and DirectoryInfo classes.
Question 30
Multiple Choice
Which of the following is a static member of the Directory class?
Question 31
True/False
With Visual Studio when you create a file (or attempt to access one), if a path is not specified with the filename, the Apps\Debug subdirectory of the current project is used.
Question 32
Multiple Choice
StreamWriter outputFile = new StreamWriter("someOutputFileName") ; StreamReader inputFile = new StreamReader("someInputFileName") ; The identifier that can be referenced in a WriteLine( ) method with the declaration above is ____.