Chapter 7: What’s Wrong With It? (Syntax, Logic, and Run Time Errors)
TRUE/FALSE
1. You can only use variable memory locations to control the data type of numbers used in calculations.
2. Both constant and variable memory locations make your code more self-documenting and easier to
understand.
3. You can use variables to store the values of processing items, which do not appear in a user interface.
4. One advantage of variables and named constants is that their use requires fewer lines of code.
5. As the amount of code increases, so does the likelihood for errors.
6. Program bugs typically are caused by either syntax errors or logic errors.
7. Logic errors are the easiest to find.
8. The Code Editor detects most syntax errors as you enter the instructions.
9. The Error List window displays a red rectangle next to each error in the code.
10. Unlike logic errors, syntax errors are much more difficult to find because they do not trigger an error
message from the Code Editor.
11. Some logic errors occur as a result of calculation statements that are correct syntactically, but incorrect
mathematically.