Question Detail

COM 101 COM 101 Past Questions Objective Question

Question

In Visual Basic, which of the following is a valid name for a variable?
Options
A Two_One
Correct Answer
B 2One
C Two.One
D Two One
Correct Answer

Option A is the correct answer.

Detailed Explanation

Variable names in Visual Basic must start with a letter or underscore, cannot contain spaces or special characters like periods, and cannot begin with a number. 'Two_One' follows all these rules.

Hint

Variable names can contain letters, numbers, and underscores, but must start with a letter.

Question Info