Explore topic-wise MCQs in Compilers.

This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.

1.

Is GCC a cross Complier.

A. Yes
B. No
Answer» B. No
2.

Cross-compiler is a compiler __________

A. Which is written in a different language from the source language?
B. That generates object code for the machine it s running on.
C. Which is written in the same language as the source language?
D. That runs on one machine but produces object code for another machine
Answer» B. That generates object code for the machine it s running on.
3.

A compiler for a high-level language that runs on one machine and produces code for a different machine is called ___________

A. Optimizing compiler
B. One pass compiler
C. Cross compiler
D. Multipass compiler
Answer» D. Multipass compiler
4.

A system program that combines separately compiled modules of a program into a form suitable for execution is called ___________

A. Assembler
B. Linking loader
C. Cross compiler
D. None of the mentioned
Answer» C. Cross compiler