In C++, some of the following are legal identifiers. Which? Why?

a. 9xyz
b. Xyz
c. X+yz
d. xy_z
e. xyz!


a. 9xyz no – An identifier cannot start with a digit
b. Xyz yes. An identifier may have upper and lower case letters
c. X+yz no – This has an illegal ‘+’.
d. xy_z yes.
e. xyz! no – This has an illegal ‘!’.

Computer Science & Information Technology

You might also like to view...

Which is the Excel operator for multiplication?

A) ~ B) $ C) * D) ^

Computer Science & Information Technology

Fields with Lookup properties are automatically created as combo boxes on new forms.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Link Control Protocol is responsible for the setup of a PPP connection, as well as the termination of a connection when it has ended.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The term _____ is defined as the ability to find, organize, understand, and analyze information you find on the Web. 

A. Web master B. Web standards C. search expert D. digital literacy

Computer Science & Information Technology