which of the following is the correct identifier?
a= $var-name
b= VAR-123
c= varname@
d= none of these
Answers
Answered by
0
Answer:
D .None of these. It is the correct identifier
Answered by
0
Answer:
The correct option is d = none of these.
Explanation:
Rules for properly naming an identifier are as follows:
- It should start with a letter. It cannot start with any digit or a special character.
- The letter can be followed by a digit or an underscore.
The following are the given options:
a= $var-name
This is wrong because it starts with a $ sign which is not accepted.
b= VAR-123
This is wrong because it includes a ' - ' i.e. hyphen sign which is not accepted.
c= varname@
This is wrong because it includes a ' @ 'sign which is not allowed.
Therefore, the correct answer to this question is d. none of these.
Similar questions