Valid Variable Names v2(handout)

Valid Variable Names v2(handout) -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Valid Variable Names Given the following variable names, circle either valid or invalid, indicating if the variable name is valid or invalid. If a variable name is invalid, explain why. 1. x Valid Invalid Reason ___________________________________________ 2. year! Valid Invalid Reason _ because it has a special character__________________________________________ 3. address Valid Invalid Reason ___________________________________________ 4. $rate Valid Invalid Reason _ a special character is being used__________________________________________ 5. Tax rate Valid Invalid Reason There is a space between the x on tax and r on rate. Spaces are not
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: allowed.___________________________________________ 6. STATE Valid Invalid Reason ___________________________________________ 7. NaMe Valid Invalid Reason ___________________________________________ 8. dollar_amount Valid Invalid Reason ___________________________________________ 9. 3rdGraders Valid Invalid Reason Because 3 is a number and numbers cant be first in a variable name.___________________________________________ 10. score Valid Invalid Reason ___________________________________________...
View Full Document

Page1 / 2

Valid Variable Names v2(handout) -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online