1.

Which of the classes provide the operation of reading from and writing to the console in C#.NET?(a) System.Array(b) System.Output(c) System.ReadLine(d) System.ConsoleThis question was addressed to me by my school teacher while I was bunking the class.The doubt is from Introduction of Console I/O Operations topic in portion Console I/O Operations and Stream Classes of C#

Answer»

The correct option is (d) System.Console

To explain I would say: The method for READING and writing to the console in C#.NET is provided by System.Console class. This class GIVES us ACCESS to the standard INPUT, output and standard error streams.



Discussion

No Comment Found

Related InterviewSolutions