True/False
Indicate whether the sentence or statement is true
or false.
|
|
|
1.
|
If a
potential magic number is used several places in a program, it is a good practice to declare a
constant.
|
|
|
2.
|
Sample output is required at the beginning of the program.
|
|
|
3.
|
Sample output should be included in all programs.
|
|
|
4.
|
If an
existing program has a required modification, the date of the modification should be in the
IDOC.
|
|
|
5.
|
Every
ending brace is required to be commented.
|
|
|
6.
|
Magic
numbers can appear in an expression if an appropriate comment indicates what and how the number is
being used.
|
|
|
7.
|
Every
starting brace is required to be commmented.
|
|
|
8.
|
IDOC
has four required lines and a fifth line if contributors are involved.
|
|
|
9.
|
Programs can NOT have magic numbers even if they are commented.
|
|
|
10.
|
Every brace is required to be commented.
|
|
|
11.
|
All
header files should be commented
|
|
|
12.
|
Sample output should be placed at the end of the program using line
comments.
|
Multiple Choice
Identify the
letter of the choice that best completes the statement or answers the question.
|
|
|
13.
|
End
braces should a. | None of
these | c. | have a
comment. | b. | appear on a line by itself. | d. | always be indented | | | | |
|
|
|
14.
|
What
is not required to be in the IDOC of every program? a. | First and Last
Name | b. | Contributors | c. | Student User ID | d. | Date the program
was started | e. | Program Name or Description | | |
|