Multiple choice asp

Which of these is OKAY to use for a variable name?

  1. employee salary

  2. 2nd_employee

  3. employee_hire_date

  4. date-of-birth

  5. date_of.birth

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

'employee_hire_date' is the only valid variable name - it uses only lowercase letters and underscores, starting with a letter. Options A (spaces), B (starts with digit), D (hyphens), and E (periods) all violate VBScript naming rules. Variable names must start with a letter and contain only letters, numbers, and underscores.