COMPILER DESIGN

LEXICAL ANALYSIS

ROLE OF THE LEXICAL ANALYZER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A programmer by mistake writes multiplication instead of division, such error can be detected by a/an:
A
Compiler
B
Interpreter
C
Compiler or interpreter test
D
None of the mentioned
Explanation: 

Detailed explanation-1: -A programmer, writes a program to multiply two numbers instead of dividing them by mistake, how can this error be detected? Explanation: This is a logical error that can’t be detected by any compiler or interpreter. 6.

Detailed explanation-2: -1 Answer. Explanation: No Logical errors can be detected.

Detailed explanation-3: -A syntax error occurs when the programmer writes an instruction using incorrect syntax.

There is 1 question to complete.