Answer the following statements true (T) or false (F)

1. A program’s comments should connect the program code to the problem being
solved.
2. A program should have a comment on every line.
3. Comments have no value whatsoever and do not belong in a program. Test Bank for Savitch Absolute C++ 6e
4. The most difficult programming language construct to learn to use properly is the
comment.
5. A computer program is a set of instructions intended for only the computer to follow.


1. True.
The purpose of comments in a program is to help the human reader of the
code to connect the program to the problem being solved. Comments are so important
there is an aphorism, often quoted by expert programmers: “If the comments and the code
disagree, then both are probably wrong.
2. False.
This would be satisfactory only on a very complicated assembly language
program for an inexperienced programmer.
3. False.
The purpose of comments in a program is to help the human reader of the
code to connect the program to the problem being solved. Comments are valuable.
4. True.
How many comments and what should be in the comment is very hard to
decide because these depend on who is the intended reader of the code (and comments).
5. False.
A computer program is also intended for human beings to read, and the
comments are intended to make this job easier.

Computer Science & Information Technology

You might also like to view...

If your computer has a touchscreen, you can scroll the Start screen by swiping ____.

A. right or left B. up or down C. only right D. only left

Computer Science & Information Technology

Information about individual visits to a Web site is called  ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Operations, such as finding the height, determining the number of nodes, checking whether the tree is empty, tree traversal, and so on, on AVL trees cannot be implemented the same way they are implemented on binary trees.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Answer the following questions true (T) or false (F)

1. True or false: A GUI Skin is a collection of functions, variables, and methods that make up the GUI elements. 2. True or false: The main body of a particle system is sometimes referred to as a particle emitter. 3. True or false: The Time Manager is used to retime the playback speed of the game.

Computer Science & Information Technology