Which of the following are valid identifiers (Le. variable names, function names
ID: 3582466 • Letter: W
Question
Which of the following are valid identifiers (Le. variable names, function names etc.)? A303 pay-scale 92_boston telephone# double A) 1, 3, 5 B) 1, 2, 3, 5 C) 1, 3 D) 2, 3 E) 1, 5 F) 1 G) AD are valid The constant 0.15e+6 represents the same value as: A) 150000.0 B) 6.15 C) 0.75 D) 0.00000015 E) None of the above Which one of the following expressions does not evaluate to 3? A) 2 + 16% 5 B) 7 - 15/4 C) 6 * 5/10 D) 2 + (-4 * 3) + 26/2 E) -8 - (-11) What of the following declares an array of 41 string; where each suing can have a maximum length of 90? A) char list[41] = 91; B) char list[91] [41]; C) char list[41] [91]; D) string list[41][90]; E) None of the aboveExplanation / Answer
1.Answer is 3 (1,3)
a . Special symbols are not allowed in identifier name except underscore _
b. keywords are invalid identifiers
c.should begin with alphabet or underscore and then followed by alpha numeric chars without spaces and Special symbols are valid
2. A
3.B (it gives value 4)
4.C
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.