Which of the following is a valid variable name?
(a)2A (b)A1 (c)LET
Answers
Answered by
1
(c) LET is a valid variable name
Explanation for the answer:
- Valid variables refers to those which can be used in a program in accordance with the variable naming rules.
- A valid variable name cannot start with a number or numeric values.
- No special characters can be used other than underscore(_), like ×*%#@ ., are prohibited in variable names.
- A valid variable name can only start with underscore or an alphabet.
- Some examples are: _marks, marks, MARKS, simple_interest etc.
- Hence, the correct answer among all the options is option (c) LET.
(#SPJ3)
Similar questions