Which one of the following is legal variable names, type YES or NO in front of each variable name? If not, state the reason.

A) computebudget
B) five+six
C) illegalname
D) Legal Name
E) 4U

Answer :

Manetho

Explanation:

A) computebudget - YES  is legal variable name.

B) five+six- NO.

A legal variable name cannot contain mathematical operator or in fact any operator + is used so not a legal variable

C)illegalname - YES

is legal variable name.

D) Legal Name: NO

A legal variable does not contain any space between it's name although it can have underscore sign

E) 4U - NO

A legal variable name cannot start with a digit.

Other Questions