Multiple choice technology testing

What is the statement that can be used to make VB Script, mandate variable declaration?

  1. Option Declare

  2. Option Explicit

  3. Option Mandate

  4. None

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Using Option Explicit at the start of a VBScript file forces the developer to declare all variables before using them, preventing typos and bugs. Statements like Option Declare and Option Mandate do not exist in VBScript syntax, making them incorrect distractors.