题目内容

Which of the following statements about good programming practice is correct?

A. Good variable names are good for both debugging and maintenance.
B. If there is already prologue comments, inline comments won't be needed.
Code layout is for nice interface.
D. Nested "if" statements should be recommended.

查看答案
更多问题

Which of the following statements about good programming practice is wrong?

A. In a software program, variable names should be meaningful.
B. In a software program, variable names should be consistent.
C. If the programmers are careful and experienced enough, they can write self-documenting code.
D. Comments are helpful for code readers.

In the following statement, which cannot be a coding standard?

A. Construct an appropriate layout of the code.
B. Make a meaningful name of the variable meaningful.
C. Make a short name of the variable.
D. Add comments.

If a decision by a programmer results in a violation of coding standards, the programmer should ________.

A. check with the manager to determine whether the code can stand as it is
B. keep the code in violation and hide the fact
C. rewrite the code to meet standards
D. argue that the standards do not apply to every kind of code

The primary purpose of careful code layout is to _______.

A. please ourselves
B. improve readability
C. conform to standards
D. help the SQA team

答案查题题库