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

1. C++ uses only /* */ for comments.

2. A program’s comments should connect the program code to the problem being solved.


1. False
Explanation: C++ uses /* */ comments and // “here to the end of the line” comments.
2. True
Explanation: 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.

Computer Science & Information Technology

You might also like to view...

A storage device that contains some or all of the operating system is often called a(n) _____ because one can use it to start the computer if he or she has problems with the primary hard disk.

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

Computer Science & Information Technology

When offsetting a path, a(n) positive input value creates a smaller path inside the original.

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

Computer Science & Information Technology

The minus outline symbol indicates there are ________ subordinate headings or body text

A) many B) four C) no D) two

Computer Science & Information Technology

LinkedIn's ____ is an online forum for asking and answering questions posed by members.

A. Ask your Question section B. Answers section C. Questions section D. My Q&A section

Computer Science & Information Technology