Answer the following statements true (T) or false (F)
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.
1. True
2. True
3. False. Class StreamReader inherits from class TextReader.
4. False. Only classes that implement interface ISerializable or are declared with the Serializable attribute can be serialized.
5. False. It seeks relative to the SeekOrigin enumeration member that’s passed as one of
the arguments.
6. True.
You might also like to view...
The expression, 4N 2 –2N+1 is
a) Linear (degree 1) b) Quadratic (degree 2) c) Cubic (degree 3) d) Logarithmic ( O(log N) )
When using the IaaS model, as applications require greater computing power, what happens?
A. additional CPUs are added to the host B. additional virtual machines are deployed C. faster virtual CPUs are installed D. faster virtual disks are configured
What is a popular label producing company?
A) Okidata B) Easy Labels C) MakeIt Labels D) Avery
A paragraph format for headings can include extra space above and below it which is called ____ formatting.
A. paragraph B. space C. heading D. extra room