Chapter 5: The Secret Code (Assignment Statements)
TRUE/FALSE
1. Coding the algorithm is the second step in the problem-solving process.
2. Many programmers use comments to document a procedure’s purpose, as well as to explain various
sections of the procedure’s code.
3. Comments make the code less readable but easier to understand by anyone viewing it.
4. When creating a comment in a program, a space is required to separate the apostrophe from the
comment itself.
5. The syntax of the Val function is Val(text), where text is the characters you want treated as a number.
6. For a text argument in the Val function to be converted to a number, it must contain only numbers and
an optional period.
7. When an invalid character is encountered in a text argument in a Val function, the Val function notes
an error and continues the process.
8. You instruct the computer to perform a calculation by writing an arithmetic expression that contains
one or more arithmetic operators.
9. You cannot override the order of precedence for arithmetic operators.
10. In the order of precedence, an exponentiation operator has a precedence number of 1.
11. In the order of precedence, the modulus operator has a lower priority than the addition and subtraction
operators.