Which of the following variable names are invalid? Justify.
(a) try
(b) 123Hello
(c) [email protected]
(d) sum
Answer:
- try - invalid variable name since it is a keyword.
- 123Hello - invalid variable name since it starts with a digit.
- [email protected] - invalid variable name since it has a special character.
- sum - valid variable name
Get live Maths 1-on-1 Classs - Class 6 to 12