Westonci.ca offers quick and accurate answers to your questions. Join our community and get the insights you need today. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

Why is it important to follow a consistent naming convention for variables?
because it is confusing to read code that uses variable names inconsistently
because a computer will attempt to execute instructions exactly as they are written
because a variable name cannot start with a number
because variable names cannot include special characters

Sagot :

Answer:

Variables are to name something, so it can be easily remembered.

Explanation:

Variables can be used to rename something in a program by using a value, to make it shorter and easy for you and the computer to remember.

Variable = Value

Name = "Jason"

 Jason is a string value being assigned to Variable.

Variables should be short and easy to remember:

Jason

This works.

JasonMichealJohnson

This is too long.

Variables should begin with a letter in the alphabet:

Vbux

This works.

10000000Vbux

This doesn't work. Too long and doesn't start with an alphabet.

Variables can contain letters, numbers, and some characters like an underscore. Not reserved characters. Use _ for more than one word in a variable instead of using space OR use uppercase letters to start each word with no space between words.