Explore topic-wise MCQs in Visual Basic.

This section includes 9 Mcqs, each offering curated multiple-choice questions to sharpen your Visual Basic knowledge and support exam preparation. Choose a topic below to get started.

1.

e parameter s __________ property is used to cancel the key if not accepted in the text area.

A. Remove
B. RemoveChar
C. Handled
D. handled
Answer» D. handled
2.

e parameter s __________ property is used to determine the pressed key.

A. Keypress
B. KeyChar
C. Keychar
D. Key.Char
Answer» C. Keychar
3.

The procedure associated with the KeyPress event has __________ parameters.

A. 2
B. 3
C. 4
D. 1
Answer» B. 3
4.

A control s KeyPress event occurs every time __________

A. The user selects the text area
B. The user submits the information in the text area
C. The user types a character in the text area
D. The user taps the enter key
Answer» D. The user taps the enter key
5.

The text box s __________ event procedure prevents user from entering a specified character.

A. KeyPress
B. check
C. checkchar
D. checkinput
Answer» B. check
6.

You use the __________ constant to include the Exclamation icon in a message box.

A. MessageBox.exclamation
B. MessageBox.Iconexclamation
C. MessageBoxIcon.Exclamation
D. MessageBoxWarning.Icon
Answer» D. MessageBoxWarning.Icon
7.

When referring to the method s return value in code, one should use the __________ value rather than the integer.

A. DoubleReturn
B. BooleanResults
C. charResult
D. DialogResult
Answer» E.
8.

One can display a message box using the __________ method.

A. MessageBox
B. AlertBox.View
C. MessageBox.show
D. MessageBox.Show
Answer» E.
9.

An application communicates with the user through __________

A. DialogBox
B. AlertBox
C. MessageBox
D. AlertDialog
Answer» D. AlertDialog