Question: 1. Comments are used in a program to make sure the user knows what is going on. 2. Because C++ is a fixed format language,
1. Comments are used in a program to make sure the user knows what is going on.
2. Because C++ is a fixed format language, code blocks associated with if statements and while loops are required to be left justified.
3. The iostream library has C++ code for interacting with printers and networks.
4. The operating system expects the value 0 to be returned from the main function when all has gone well during its run.
5. A using directive to avoid overuse of the scope resolution operator (::) might not be popular, but it sure is handy!
6. Both styles of comment start with a / character, but one is followed by another / and the other is followed by a *.
7. Without the 'using namespace std;' directive at the top of main, we'd have to preface every use of coutamong other thingswith the syntax 'std;;'.
8. An escape character can relay a command to the screen when placed inside quotes and inserted to count.
9. When an expression contains operators of the same precedence, the operations are resolved from left to right.
10. The program design process is a lot like solving a word problem in math or physics except you have to look up all the formulas and there are no values given for the variables until the program is running.
11. It is customary to say 'goodbye' to the user after the calculation results are revealed.
12. It is customary to greet the user before beginning input. Perhaps even explaining the purpose of the program, input formats, etc.
Some true-false questions that I couldn't find the answer to. Thanks in advance for your help
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
