1.

Which method in Console enables to read individual inputs directly from the keyboard in a non line buffered manner?(a) Read()(b) ReadKey()(c) ReadLine()(d) All of the mentioned

Answer» The correct option is (b) ReadKey()

To explain I would say: The .NET Framework includes a method in Console that enables you to read individual keystrokes directly from the keyboard, in a non-line-buffered manner. This method is called ReadKey(). When it is called, it waits until a key is pressed. When the key is pressed, ReadKey( ) returns the keystroke immediately.


Discussion

No Comment Found

Related InterviewSolutions