1.

Which of the given stream methods provide access to the input console in C#.NET?(a) Console.Out(b) Console.Error(c) Console.In(d) All of the mentionedI got this question in a national level competition.My question comes from Introduction of Console I/O Operations topic in portion Console I/O Operations and Stream Classes of C#

Answer»

Correct option is (c) Console.In

Explanation: Console.In is an INSTANCE of TEXTREADER, and we can use the methods and properties DEFINED by TextReader to access it to read the INPUT from the keyboard.



Discussion

No Comment Found

Related InterviewSolutions