Multiple choice technology testing

How do you declare a constant?

  1. A. Dim statement

  2. B. Con statement

  3. C. Const statement

  4. D. Option Explicit statement

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

In VBScript, constants are declared using the Const statement (e.g., Const PI = 3.14). Dim is for variables, Con is not a valid statement, and Option Explicit forces variable declaration but doesn't define constants. Once assigned, constants cannot be modified during script execution.