Compiler Design MCQ Questions And Answers

This section focuses on "Basics" in Compiler Design. These Multiple Choice Questions (MCQs) should be practiced to improve the Compiler Design skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.

1. How many alphabets are there in Binary language?

A. 2
B. 3
C. 4
D. 5

View Answer


2. we write programs in?

A. Low-Level Language
B. Middle-Level Language
C. High-Level Language
D. Decimal-Format

View Answer


3. _______ is a program that converts high-level language to assembly language.

A. assembler
B. compiler
C. interpreter
D. linker

View Answer


4. A compiler that runs on platform (A) and is capable of generating executable code for platform (B) is called ?

A. cross-compiler
B. complex-compiler
C. object-compiler
D. post-compiler

View Answer


5. Which of the following is used to link all the parts of the program together for execution?

A. loader
B. linker
C. memory
D. preprocessor

View Answer


6. Which of the following tool produces input for compilers?

A. Interpreter
B. Assembler
C. Loader
D. Preprocessor

View Answer


7. Does compiler reads the whole source code at once?

A. Yes
B. No
C. Depends on compiler
D. Don't know

View Answer


8. If an error occurs, what interpreter do?

A. terminate program
B. stops execution
C. reads the whole program even if it encounters errors
D. give warning

View Answer


9. If an error occurs, what compiler do?

A. terminate program
B. stops execution
C. reads the whole program even if it encounters errors
D. give warning

View Answer


10. The output of an assembler is called?

A. data file
B. task file
C. object file
D. program file

View Answer





Discussion


* You must be logged in to add comment.