Services
Discover
Homeschooling
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
Quiz 13: Working with Files
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 41
Multiple Choice
StreamReader inFile = new StreamReader("name.txt") ; while ((inValue = inFile.ReadLine() ) != null) -Which of the following is an abstract class that cannot be instantiated?
Question 42
Multiple Choice
Which exception is thrown when an attempt is made to access a file that does not exist?
Question 43
Multiple Choice
When writing text files,if you add true to the constructor for the Append argument,____.
Question 44
Multiple Choice
Which of the following class has public constructors?
Question 45
Multiple Choice
The StreamReader class extends the ____ class.
Question 46
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 47
Multiple Choice
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.
Question 48
Multiple Choice
Which of the following is a static member of the Directory class?
Question 49
Multiple Choice
Which method is used to cause the dialog boxes to open?
Question 50
Multiple Choice
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 ____.
Question 51
Multiple Choice
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.
Question 52
Multiple Choice
Parent and Root are two key properties of which class?
Question 53
Multiple Choice
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 ____.
Question 54
Multiple Choice
Which method,used with the StreamWriter class,can be invoked to write characters to the stream,followed by a line terminator?
Question 55
Multiple Choice
BinaryReader and BinaryWriter classes ____.
Question 56
Multiple Choice
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?
Question 57
Multiple Choice
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?
Question 58
Multiple Choice
Objects of streams can be wrapped with _________ objects to improve the speed and performance of file-handling operations.
Question 59
Multiple Choice
StreamReader inFile = new StreamReader("name.txt") ; while ((inValue = inFile.ReadLine() ) != null) -With the above code segment,how could you programmatically avoid having a FileNotFoundException or DirectoryNotFoundException exception thrown?