JAMIA 2024 — Computer PYQ
JAMIA | Computer | 2024Which of the following error can a compiler check?
Choose the correct answer:
- A.
Syntax Error
(Correct Answer) - B.
Logical Error
- C.
Both Logical and Syntax Error
- D.
Compiler cannot check errors
Syntax Error
Explanation
Mathematical Representation
We can represent the compiler's error-checking domain using set notation:
Let E be the set of all possible programming errors:
Let C be the set of errors detectable by a compiler:
The relationship for non-detectable errors (like Logical errors) is:
Answer: A compiler can check for Syntax Errors and Semantic Errors.
Explanation
Mathematical Representation
We can represent the compiler's error-checking domain using set notation:
Let E be the set of all possible programming errors:
Let C be the set of errors detectable by a compiler:
The relationship for non-detectable errors (like Logical errors) is:
Answer: A compiler can check for Syntax Errors and Semantic Errors.

