Home › Previous year questions › GATE 2023 CS › Question 11GATE 2023 CS – Question 11 Compiler Design · Lexical Analysis · 1 mark · Multiple choice
Consider the following statements regarding the front-end and back-end of a compiler. S1: The front-end includes phases that are independent of the target hardware. S2: The back-end includes phases that are specific to the target hardware. S3: The back-end includes phases that are specific to the programming language used in the source code. Identify the CORRECT option.
Only S1 is TRUE. Only S1 and S2 are TRUE. S1, S2, and S3 are all TRUE. Only S1 and S3 are TRUE. Practise this question in The GATE Grind →
Show answer and explanation Correct answer: (B) Only S1 and S2 are TRUE.
Explanation The front-end is source-language specific and target independent, and the back-end is target specific. S3 is false, so only S1 and S2 are true.
More Lexical Analysis questions GATE 2023 CS Q19 – Consider the following definition of a lexical token id for an identifier in a programming… GATE 2018 CS Q47 – A lexical analyzer uses the following patterns to recognize three tokens T 1, T 2, and T 3… GATE 2016 CS (CS2) Q29 – Match P: lexical analysis; Q: top-down parsing; R: semantic analysis; S: runtime… GATE 2017 CS (CS2) Q15 – Match compiler inputs P: syntax tree, Q: character stream, R: intermediate representation,… GATE 2011 CS Q11 – A compiler recognizes language keywords during GATE 2011 CS Q29 – Which machine model is necessary and sufficient for lexical analysis of a modern language… All Lexical Analysis questions →