Which statement is correct? A logical error
-
A
Is a violation of the grammatical rules of the language
-
B
Makes a program run but produce incorrect output
Correct answer
-
C
Means bundling data and methods together and restricting direct access to the data
-
D
Translates and executes the program line by line
Correct answer
B. Makes a program run but produce incorrect output
Explanation
A logical error makes a program run but produce incorrect output.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ