NIMCET 2012 — Computer PYQ
NIMCET | Computer | 2012The errors that can be pointed out by compliers are
Choose the correct answer:
- A.
Syntax errors
(Correct Answer) - B.
Semantic errors
- C.
Logical errors
- D.
Internal errors
Syntax errors
Explanation
The correct answer is (a) Syntax errors.
Logic:
A compiler checks the code against the formal grammar rules of a programming language. If the code violates these rules, a syntax error is generated.
Let E be the set of all programming errors. We can categorize them based on the detection phase:
The detection of syntax errors S during the compilation process can be represented as:
Explanation
The correct answer is (a) Syntax errors.
Logic:
A compiler checks the code against the formal grammar rules of a programming language. If the code violates these rules, a syntax error is generated.
Let E be the set of all programming errors. We can categorize them based on the detection phase:
The detection of syntax errors S during the compilation process can be represented as: