Exam 17: Files and Streams

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

What exception is thrown when an error occurs during serialization or deserialization

(Multiple Choice)
4.8/5
(32)

Console.In,Console.Out and Console.Error are used to take data in,to display data and to show error messages,respectively.

(True/False)
4.9/5
(46)

BinaryFormatter allows only for reading objects.

(True/False)
4.7/5
(34)

Another way that a class could indicate to the CLR that objects of the class can be serialized is through implementing the ________ interface.

(Multiple Choice)
4.8/5
(28)

The FileAccess.Read enumeration member is used if the file should not be modified.

(True/False)
4.9/5
(34)

If the array contains references to other objects,those objects may or may not be serializable.

(True/False)
4.8/5
(45)

The classes dealing with files and directories are located in the System.IO namespace.

(True/False)
4.7/5
(37)

A _____________ contains the byte number of the next byte in a file to be read or written to a file.

(Multiple Choice)
4.7/5
(45)

Method GetFiles of class Directory can be used to display all the files in a given directory.

(True/False)
4.8/5
(29)

Directory's method GetDirectories returns:

(Multiple Choice)
4.8/5
(35)

Class File can only create new files.

(True/False)
4.8/5
(33)

An OpenFileDialog allows a user to select a file to open.

(True/False)
4.9/5
(44)

Which of the following methods of FileStream will reset the file-position pointer back to the beginning of the file

(Multiple Choice)
4.8/5
(40)

By default,array objects are not serializable.

(True/False)
4.9/5
(45)

BinaryFormatter's Serialize and Deserialize methods are both parameterless.

(True/False)
4.9/5
(32)

.NET provides class _______ for manipulating files.

(Multiple Choice)
4.8/5
(36)

Each resource should be released as soon as it's no longer needed.

(True/False)
4.8/5
(36)

The name of the file to open is specified as the first argument to the FileStream constructor.

(True/False)
5.0/5
(36)

Method ________ of class BinaryFormatter reads a serialized object from a stream and recreates the object in memory.

(Multiple Choice)
4.8/5
(36)
Showing 21 - 39 of 39
close modal

Filters

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