A logical error:
-
A
Stops the program
-
B
Produces wrong output
Correct answer
-
C
Is a grammar mistake
-
D
Is a hardware fault
Correct answer
B. Produces wrong output
11 views
Explanation
A logical error produces wrong results even though the code runs. For example, using + instead of *. These are harder to find than syntax errors.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ