Exam 17: Files and Streams

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

BinaryFormatters can be used to serialize and deserialize objects coming in and going out via a stream.

Free
(True/False)
4.9/5
(36)
Correct Answer:
Verified

True

For variables of reference types,you must check the class declaration to ensure that the type is serializable.

Free
(True/False)
4.7/5
(36)
Correct Answer:
Verified

True

________ are used for long-term retention of large amounts of data.

Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
Verified

C

To create a new file and return a stream that can be used to process the file,use the:

(Multiple Choice)
4.8/5
(36)

Data stored in a file is considered:

(Multiple Choice)
4.9/5
(32)

When a file is opened,a stream object is created and associated with the file.

(True/False)
4.9/5
(35)

All simple-type variables and strings are serializable.

(True/False)
4.7/5
(39)

Which of the following attributes is needed to indicate to the CLR that objects of the class can be serialized

(Multiple Choice)
4.8/5
(40)

In a class that's marked with the [Serializable] attribute or that implements inter face ISerializable,not every instance variable of the class needs to be seri alizable.

(True/False)
4.8/5
(32)

A recursive search on a directory is one where:

(Multiple Choice)
4.7/5
(32)

Deserialize returns a reference of type:

(Multiple Choice)
4.9/5
(30)

When a FileStream object is opened,the file-position pointer is _________.

(Multiple Choice)
4.8/5
(34)

The Console.Error property returns:

(Multiple Choice)
4.8/5
(39)

Use the _______ method of class OpenFileDialog to show a dialog that allows the user to select a file to be opened.

(Multiple Choice)
4.8/5
(41)

What kind of exception is thrown if there's a problem opening or creating a StreamWriter

(Multiple Choice)
4.8/5
(40)

The standard output stream object enables a program to output data to the screen.

(True/False)
4.8/5
(36)

The enumeration FileAccess is used to:

(Multiple Choice)
4.9/5
(34)

Files can be stored in:

(Multiple Choice)
4.9/5
(30)

Class Directory is used to change directories.

(True/False)
5.0/5
(34)

A serialized object is an object that includes:

(Multiple Choice)
4.8/5
(28)
Showing 1 - 20 of 39
close modal

Filters

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