59.8k views
1 vote
Which of the following are characteristics of readable code? Choose all that apply.

A. meaningful and consistent naming of variables and procedures

B. variable names that are chosen at random

C. helpful comments

D. good use of indentation and line breaks

2 Answers

5 votes

Answer:

A c and D are right

Step-by-step explanation:

User Yjshen
by
7.3k points
5 votes

A C D

A. Makes your code easier to read and know what variables do.

C. Explains what a line of code does and makes it easier to understand what certain functions and variables are for.

D. Some languages require correct line breaks others do not, no matter what it makes it easier for a human to read your code.

This is hard to read.

EX. (function(){console.log(1);})();

This is easier

function(){

console.log(1);

}

();

User Robert Bue
by
7.2k points