1. Identify the correct variable name
a. 1number
c. num.2.
b. Num1
d. Num1&2
and explain
Share
1. Identify the correct variable name
a. 1number
c. num.2.
b. Num1
d. Num1&2
and explain
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
it's (b)
Because it neither has a special character nor a digit in the beginning.
Verified answer
Answer:
a. 1number ---> Wrong
The first letter of a variable should be either a letter or an underscore.
b. Num1 ---> Correct
After the first letter variable names may also contain letters and the digits 0 to 9.
c. num.2 ---> Wrong
Special characters are not allowed
d. Num1&2 ---> Wrong
No spaces or special characters are allowed