Multiple choice

Which of the following is the correct syntax of displaying a 'Message Box' in C#?

  1. msgbox.show()

  2. MessageBox.Show()

  3. Msgbox()

  4. msgBox.show()

  5. MessageBoxShow()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A message box is used to displays the specified text in a small window containing one or more buttons.