1.

Select the correct methodS provided by Console.In?(a) Read(), ReadLine()(b) ReadKey(), ReadLine()(c) Read(), ReadLine(), ReadKey()(d) ReadKey(), ReadLine()The question was asked in a job interview.This question is from Introduction of Console I/O Operations in section Console I/O Operations and Stream Classes of C#

Answer»

Right option is (C) Read(), READLINE(), ReadKey()

For explanation: The TWO METHOD Read() and ReadLine() AVAILABLE in .NET Framework 1.0 and Third method ReadKey() was added by .NET Framework 2.0.



Discussion

No Comment Found

Related InterviewSolutions