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

Answers

Answer 1

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.

Answer 2

Answer: Consistency allows others to more easily understand your code.And cause Variables are to name something, so it can be easily remembered.

Explanation: :) (NOT copying)


Related Questions

Sample program for Do While loop

Qbasic

Answers

Answer:

A "Do While" loop statement runs while a logical expression is true.

Explanation:

This means that as long as your expression stays true, your program will keep on running. Once the expression is false, your program stops running. A "Do Until" loop statement runs until a logical statement is true.

Answer:

A "Do While" loop statement runs while a logical expression is true. Explanation:

Other Questions
Two similar solids have a scale factor or 6:7.What is ratio of their volumes, expressed in lowest terms? Use the graph to answer the question.A first quadrant coordinate plane is shown. Triangles P Q R and S T U are graphed with their hypotenuses on the line passing through the origin and the points P, R, S, and U. The angles at points Q and T are right angles. The vertices of the triangles are at: P, two comma one, Q, four comma one, and R, four comma two, and S, six comma three, T, twelve comma three, and U, twelve comma six.What is the ratio of the length of the vertical side to the length of the horizontal side of each triangle?Enter the correct answer in the box. write about wasting health class 8 ble 125 times what equals 625 PLEASE HELP PLEASE , I NEED IT RIGHT NOW PLEASE This diagram shows three small squares and two rectangles composed of `10` small squares.Lin says this diagram could represent `2.3`. What does a small square represent for Lin? Range of motion is the distance an object can travel when separated from another object.Please select the best answer from the choices provided.OF Glory and story are examples ofA. rhythmB. rhymeC. imageryI NEED THE ANSWER FAST PLS! 1. A number that is at least 90. the bookstore sold 8 books for $66 at that rate how much was one book 3 equivalent ratios 7.7: 4.1 what are the 2 peninsulas that extend into the North Sea. 1. Identify1.2.3.4. Image of chord diagram with zero above vertical line on the right identified.What does the identified part represent in the image above? Chord symbol Open string String not to be played Strum mark WILL GIVE BRAINLIEST FOR RIGHT ANSWER!!!Mia would like to become an all-powerful influencer on social media, but first, she has to figure out her own approach and think about the change she wants to make using social media.Mia decided to start with the issue on Homelessness and Poverty and has already figured out some possible solutions for her approach:-Raise awareness about childhood hunger using social media.-Teach others about the lack of clean water availability using social media.-Create a campaign to help support the homeless on social media. Your assignment will be to come up with one emotional reason and one logical reason that others should support your change.Not sure where to start? Here are some questions to consider as youre thinking about your reasons:(Logical)What cold, hard facts support your position?Are there any research studies that support your position?(Emotional)How would others feel by supporting your position?Who would benefit if others supported your position? A balloon filled with air has a volume of 4.24 liters at 23.00C. If the balloon is cooled at constant pressure to 5.00C, what is its new volume? Name:AlphabetAlphabetical OrderRewrite each word list in alphabetical order.1. skunk, skyline, skiing, ski, skyscraperI2. rainbow, reindeer, raindrop, railroad, raincoat3. craftsman, crank, cranky, craft crawlHelppp plisss Why did the United States invade Afghanistan in 2001? The US wanted to restore order to Afghanistan after the president was killed in a coup. The US wanted to prevent the Soviet Union from taking over Afghanistan. The terrorist group responsible for the 9/11 attacks was allowed to operate out of Afghanistan. The Taliban had stripped away womens rights and were committing human-rights offenses. The fraction equivalent to 16/18 with denominator 45 is :(a) 16/45(b) 42/45(c) 43/45(d) 40/45 how should the Christians in Ephesus live according to St. Paul? Which opinion has strong support?A. They are pretty cute to have around.B. Neither opinion is well supported.C. Both opinions are well supported.D. It is an effective method of lawn care.