Question Detail

COS 102 concept of problem solving; lecture 1 week 2 Objective Question

Question

What is a characteristic of Logical Errors in programming?
Options
A They are identified by the compiler at compile time.
B They are not identified by the compiler at compile time but at execution time.
Correct Answer
C They are related to hardware failures.
D They prevent the program from compiling at all.
Correct Answer

Option B is the correct answer.

Detailed Explanation

Page 15 clarifies: 'Logical Errors: Not identified by the compiler at compile time and identified at the execution time. e.g. misuse of operators.'

Hint

Distinguish between Syntax and Logical Errors based on when they are detected, as explained on page 15.

Question Info