1. For each of the following sequence of symbols, signs, characters and letters,
ID: 3649655 • Letter: 1
Question
1. For each of the following sequence of symbols, signs, characters and letters, determine if it is a valid identifier (and so can be used as a variable name, function name, etc.). If invalid, explain why, and provide an attempt that fixes the problem.a. MyNameIsJake
b. HelloWorld;
c. 1234656
d. A12345
e. 12345W
f. This is a new variable
g. Students-Last-Name
h. FirstName&LastName
i. Jake@Frist.Com
j. =Federal_Tax_Rate
k. C++
l. Int
m. int
n. double
o. double2
p. BLU_RAY
q. Elizabeth_Taylor
r. alphaPrime
s. _DoYouUnderstandWhatIAMTellingYou
t. _MyGPA_
u. First1LocationSecond2LocationThird3Location
v. main
w. include
x. Name:Last
y. $100,000.00
z. GPA>3.5
Explanation / Answer
valid valid valid valid valid not valid..contains spaces not valid, cannot contain -, - is subtraction symbol not valid, cannot contain & is a symbol not valid, cannot contain @ is a symbol not valid, cannot contain = is a symbol not valid not valid not valid not valid not valid valid valid valid valid valid valid not valid not valid not valid not valid not valid
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.