GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2023

GATE 2023 · CS · MCQ · 1 mark · Compiler Design › Code Generation

GATE 2023 Computer Science and Information Technology question: Consider the following statements regarding the front-end and back-end of a compiler. S1…

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.

Show answer

Official answer: B

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion