Multiple choice asp

Variable are used to hold both numerical and text values. Which of these IS NOT a valid variable name?

  1. X

  2. X1

  3. 1X

  4. x1X

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

Variable names in VBScript (and most languages) cannot start with a digit. '1X' violates this rule, making it invalid. Options A (X), B (X1), and D (x1X) are all valid - they start with letters and can contain letters and numbers. This is a fundamental naming rule in programming.