Self-Review Exercises

  1. 17.1 State whether each of the following is true or false. If false, explain why.

    1. You cannot instantiate objects of type Stream.

    2. Typically, a sequential file stores records in order by the record-key field.

    3. Class StreamReader inherits from class Stream.

    4. Any class can be serialized to a file.

    5. Method Seek of class FileStream always seeks relative to the beginning of a file.

    6. Classes StreamReader and StreamWriter are used with sequential-access files.

  2. 17.2 Fill in the blanks in each of the following statements:

    1. The            namespace contains the BinaryFormatter class.

    2. StreamReader method            reads a line of text from a file.

    3. StreamWriter method            writes a line of text to a file.

    4. Method Serialize of class BinaryFormatter takes a(n)            and a(n)            as arguments.

    5. The            namespace contains most of C#’s file-processing classes.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset