Computer Science, asked by ateful2005, 5 hours ago

identify valid identifiers, justify why others are not identifiers.
a) Data_rec
b) 1 data
c) My.file
d) elif

Answers

Answered by madhumadhurya9
1
Data_rec is a valid identifier.

Rules:

Identifiers can be a combination of letters in lowercase (a to z) or uppercase (A to Z) or digits (0 to 9) or an underscore.

An identifier cannot start with a digit.

We cannot use special symbols like !, @, #, $, % etc. in our identifier.

Keywords cannot be used as identifiers.
Similar questions