Question Detail

COM 101 COM 101 Past Questions Objective Question

Question

1. Given the statement “Dim Factor As Boolean” which of the options will not result in a run-time error
Options
A Factor = 3
B Factor = “Boolean”
C Factor = True
Correct Answer
D Factor = Not
Correct Answer

Option C is the correct answer.

Detailed Explanation

Boolean variables only accept True or False. Assigning a number, string, or incomplete expression will cause a type mismatch error.

Hint

Booleans only hold True or False.

Question Info