Question Detail
Question
17. Given the statement below, which of the options would not result in a run-time error.
Dim response as Boolean
Correct Answer
Option B is the correct answer.
Detailed Explanation
A Boolean variable can only hold True or False. Assigning a string, integer, or 'No' (unless it's a defined constant) would cause a type mismatch error.
Hint
Boolean variables only accept True or False.