GATE CS 2023 · Question 11 · Compiler Design · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

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.

  1. (A) Only S1 is TRUE.
  2. (B) Only S1 and S2 are TRUE.
  3. (C) S1 , S2 , and S3 are all TRUE.
  4. (D) Only S1 and S3 are TRUE.
Answer

Answer (B)

Answer from the official GATE CS 2023 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes