This set of Compilers Multiple Choice Questions & Answers (MCQs) focuses on “PeepHole Optimization – 1”.
1. Relocating bits used by relocating loader are specified by
a) Relocating loader itself
d) Macro Processor
Explanation: Takes an object files and combines them into a single executable file, library file, or another object file.
2. What is the binary equivalent of the decimal number 368
Explanation: 368 binary equivalents is
3. AB+(A+B)’ is equivalent to
Explanation: It is equivalent to A? B.
4. A top down parser generates
a) Rightmost Derivation
b) Right most derivation in reverse
c) Left most derivation
d) Left most derivation in reverse
Explanation: Top-down parsing is a parsing strategy where one first looks at the highest level of the parse tree and works down the parse tree by using the rewriting rules of a formal grammar.
5. Running time of a program depends on
a) Addressing mode
b) Order of computations
c) The usage of machine idioms
d) All of the mentioned
Explanation: Run time, runtime or execution time is the time during which a program is running (executing).
6. Which of the following is the fastest logic
Explanation: In electronics, emitter-coupled logic (ECL) is a high-speed integrated circuit.
7. A bottom up parser generates
a) Right most derivation
b) Rightmost derivation in reverse
c) Leftmost derivation
d) Leftmost derivation in reverse
Explanation: This corresponds to starting at the leaves of the parse tree also known as shift-reduce parsing.
Sanfoundry Global Education & Learning Series – Compilers.
To practice all areas of Compilers, here is complete set of 1000+ Multiple Choice Questions and Answers.