nerdexam
Microsoft

98-372 · Question #218

You need to ensure that your console application can process each key as it is pressed. Which method should you use?

The correct answer is B. Console.ReadLine. See the full explanation below for the reasoning.

Question

You need to ensure that your console application can process each key as it is pressed. Which method should you use?

Options

  • AConsole.OpenStandardlnput
  • BConsole.ReadLine
  • CConsole.Read
  • DConsole.ReadKey

How the community answered

(47 responses)
  • A
    9% (4)
  • B
    70% (33)
  • C
    17% (8)
  • D
    4% (2)

Community Discussion

No community discussion yet for this question.

Full 98-372 Practice