Welcome to Westonci.ca, where your questions are met with accurate answers from a community of experts and enthusiasts. Explore in-depth answers to your questions from a knowledgeable community of experts across different fields. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.

Variable Labels:
Examine the following variable names for formatting errors.
If it is not usable, correct it. If there are no errors, write good.
10. studentName
11. Student Address
12.110 Room
13. parentContact
14. Teachers_name


Sagot :

Answer:

10. 13. and 14. Correct

11. Incorrect

12. Incorrect.

Explanation:

The programming language is not stated. However, in most programming languages; the rule for naming variables include:

  • Spacing not allowed
  • Underscore is allowed
  • Variable names cannot start with numbers

Using the above rules, we can state which is correct and which is not.

10. 13. and 14. Correct

11. Incorrect

Reason: Spacing not allowed

Correct form: StudentAddress

12. Incorrect.

Reason: Numbers can't start variable names

Correct form: Room110

We hope our answers were useful. Return anytime for more information and answers to any other questions you have. We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. Get the answers you need at Westonci.ca. Stay informed with our latest expert advice.