Explore topic-wise MCQs in Compilers.

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

1.

__________ was developed from the beginning as a cross compiler.

A. Free Pascal
B. GCC
C. Pascal
D. None of the mentioned
Answer» B. GCC
2.

The __________ is a technique for building cross compilers for other machines.

A. Brazilian Cross
B. Canadian Cross
C. Mexican Cross
D. X-cross
Answer» C. Mexican Cross
3.

Is GCC a cross Complier.

A. Yes
B. No
Answer» B. No
4.

Cross compiler is used in Bootstrapping.

A. True
B. False
Answer» B. False
5.

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.
6.

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
7.

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