Exam 18: Files and Streams

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

Deserialize returns a reference of type:

Free
(Multiple Choice)
4.7/5
(28)
Correct Answer:
Verified

A

In a class that's marked with the <Serializable()> attribute or that implements interface ISerializable,not every instance variable of the class needs to be serializable.

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

False

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

Free
(Multiple Choice)
4.9/5
(41)
Correct Answer:
Verified

C

You can use the FileAccess enumeration to control access to file when the file is opened.

(True/False)
4.8/5
(33)

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

(Multiple Choice)
4.8/5
(33)

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

(Multiple Choice)
4.8/5
(41)

Classes StreamIn and StreamOut are used to read from text files and output to text files.

(True/False)
4.8/5
(32)

Saving data to a file retains that data after the program terminates.

(True/False)
4.8/5
(29)

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
(43)

Which method creates a new file and returns a stream to process that file?

(Multiple Choice)
4.8/5
(34)

Every file automatically closes itself when it's no longer needed.

(True/False)
4.8/5
(34)

By default,array objects are not serializable.

(True/False)
4.7/5
(33)

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

(Multiple Choice)
4.9/5
(33)

No matter how complicated a program is or looks it can all be broken down into a series of 0's and 1's.

(True/False)
4.9/5
(38)

BinaryFormatter allows for only reading objects.

(True/False)
4.8/5
(34)

Records in a sequential access file are always sorted by a record key

(True/False)
4.8/5
(37)

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
(32)

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

(True/False)
4.9/5
(35)

Data stored in a file is considered:

(Multiple Choice)
5.0/5
(35)

In a data hierarchy,data items become larger and more complex in structure as we progress from bits,to characters,to fields and up to large data structures.

(True/False)
5.0/5
(35)
Showing 1 - 20 of 53
close modal

Filters

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