Question

1. Which of the following are invalid identifiers? a. one b. “Good Bye” c. 1234 d....

1. Which of the following are invalid identifiers?
a. one
b. “Good Bye”
c. 1234
d. DecafeLattePlease
e. $hello$ f. JAVA
g. hello, there h. acct122
i. 4you
j. _doWork
k. Wait_For_M
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Invalid Identifiers:

b. “Good Bye” (Identifiers cannot include any special characters or punctuation marks except underscore).

c. 1234 ( Identifiers name must be begin with an alphabet or an underscore).

e. $hello$ f. JAVA (Identifiers cannot include any special characters ).

g.hello, there h. acct122 (Identifiers cannot include any special characters or punctuation marks except underscore).

i. 4you ( Identifiers name must be begin with an alphabet or an underscore).

k. Wait_For_M (Two successive underscores cannot be used at the same time.)

Add a comment
Know the answer?
Add Answer to:
1. Which of the following are invalid identifiers? a. one b. “Good Bye” c. 1234 d....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT