Which of the following is a valid identifier?
-
DATA-REC
-
_DS
-
29CLCT
-
My.File
B
Correct answer
Explanation
This option is correct as we know that an identifier is an arbitrarily long sequence of letters and digits, the first character must be a letter, the underscore (_) counts as a letter, Upper case and lower case letters are different and all characters are significant. Since the given option contains all these properties, hence it is a valid identifier.