Question Detail

COM 101 COM 101 Past Questions Objective Question

Question

20. What does the VB statement below do? TextBox1.text = 4
Options
A Displays Text inside the fourth textbox.
B Assigns 1 to the fourth textbox on the form
C Displays 4 in textbox1
Correct Answer
D Changes the name of the textbox control to 4
Correct Answer

Option C is the correct answer.

Detailed Explanation

The statement assigns the string "4" (implicitly converted) to the Text property of TextBox1, so it displays 4 in that textbox.

Hint

It sets the text of TextBox1 to 4.

Question Info