Readable Code Answers

3 verified answers1 views
1
Free Preview

Which of the following statements are true of logic errors? Choose all that apply.

A
Logic errors occur when the written instructions do not instruct the program to take the intended step.
B
Logic errors can be ignored because they are difficult to locate.
C
Logic errors often do not generate error messages.
D
Logic errors result in unintended results.
2
Free Preview

Which of the following are recommended ways to find logic errors in code? Choose all that apply.

A
Check the code line by line.
B
Use the stepping function of your compiler to help you spot the error.
C
Wait for an error message to show you what error is occurring.
D
Run a test scenario with a sample data set to confirm if there is a logic error.
3

Which of the following are likely to be considered when addressing logic errors in code? Choose all that apply.

A
Your original program may need changes.
B
You must check the accuracy of your arithmetic.
C
The code may need to be tested and retested.
D
You may find the code is illogical.

Did you find these answers helpful?

Readable Code Answers — VA-Information…