nerdexam
Microsoft

98-372 · Question #73

Which class is used to provide a reader that can read a sequential chain of characters?

The correct answer is B. TextReader class. The TextReader class is used to provide a reader that can read a sequential chain of characters. It is the abstract base class of the StreamReader and StringReader classes. These derived classes can be used to open a text file for reading a specified range of characters, or to cr

Understanding .NET Framework Concepts

Question

Which class is used to provide a reader that can read a sequential chain of characters?

Options

  • AStringReader class
  • BTextReader class
  • CChainReader class
  • DSequentialReader class

How the community answered

(44 responses)
  • A
    7% (3)
  • B
    75% (33)
  • C
    5% (2)
  • D
    14% (6)

Explanation

The TextReader class is used to provide a reader that can read a sequential chain of characters. It is the abstract base class of the StreamReader and StringReader classes. These derived classes can be used to open a text file for reading a specified range of characters, or to create a reader based on an existing stream. A derived class must at least implement the Peek and Read methods to make a functional instance of the TextReader class. Answer: D and C are incorrect. There is no such class as SequentialReader or ChainReader in the System.IO namespace. Answer: A is incorrect. The StringReader class is used to implement a TextReader that reads from a string. It constructs and initializes a new instance of the StringReader class that reads from the specified string. It consists of the following methods: Read(char[], int, int)

Topics

#TextReader#character stream#sequential reading#System.IO

Community Discussion

No community discussion yet for this question.

Full 98-372 Practice