133k views
2 votes
Which set of variables will make code easier to understand?

a, b, c
sum, price, count
xii, xix, xxi
x, y, z

2 Answers

5 votes

Answer:

B. Sum price count

User Rosswil
by
5.6k points
4 votes

Answer:

sum, price, count

Step-by-step explanation:

Programmers should use significant names for the variables.

Not only it makes it easier for them to remember what kind of information is stored in each variable, but it also makes life simpler for anyone who would read the code later.

Names like sum, price and count are significant names ( assuming they actually hold this kind of data), and will make the re-reading of the program code much easier.

User Bhanuday Birla
by
5.1k points