Exam 13: Working with Files

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

File and Directory classes add functionality to their method members beyond that of FileInfo and DirectoryInfo classes.

(True/False)
4.9/5
(80)

When you close a file,no arguments are sent to the method;however,the Close( )method must be called with a file object such as fileObjectInFile.Close( ).

(True/False)
4.8/5
(80)

All attempts to access text files should be enclosed inside if...else blocks to check for exceptions.

(True/False)
4.7/5
(67)

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?

(Multiple Choice)
4.8/5
(89)

A data stream is the flow of data from a source to a receiver.

(True/False)
4.8/5
(82)

The File,FileInfo,Directory,and DirectoryInfo classes are considered utility classes.They normally work with stream objects,allowing you to manipulate files and directory structures.

(True/False)
4.9/5
(76)

To ensure that the data is usable for the next application the ____________ method should be invoked before you exit the application.

(Short Answer)
4.9/5
(79)

When a method uses a(n)____________ modifier,the method belongs to the class itself,not to a specific object of the class and is thus called using the class name.

(Short Answer)
4.8/5
(78)

Streams are also used in C# to read and write data to binary files.

(True/False)
4.8/5
(86)

Which of the following class has public constructors?

(Multiple Choice)
4.9/5
(86)

StreamReader inFile = new StreamReader("name.txt"); while ((inValue = inFile.ReadLine()) != null) -What does the above statement do?

(Multiple Choice)
4.9/5
(71)

Values can be processed in any order.The fifth data record can be retrieved and processed before the first record is processed when ____________ access is used.

(Short Answer)
4.9/5
(89)

After an application is debugged and you are ready to deploy or distribute it,you can build the most optimized solution,a Release version.To switch to the Release version,select Release from the Solution Configurations list box on the Standard Visual Studio toolbar.

(True/False)
4.8/5
(74)

TextReader is an abstract class used to write primary data types as binary values.

(True/False)
5.0/5
(76)

None of the of the method named in the File and Directory classes are available as instance methods (with the same name)in the FileInfo and DirectoryInfo classes since they are available in File and Directory.

(True/False)
4.9/5
(79)
Showing 61 - 75 of 75
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)