Compilers MCQ Quiz – Objective Question with Answer for Compilers

1. Which of the following helps in reducing the energy consumption of the embedded system?

A. compilers
B. simulator
C. debugger
D. emulator

Answer: A

The compilers can reduce the energy consumption of the embedded system and the compilers performing the energy optimizations are available.

 

2. Which of the following help to meet and prove real-time constraints?

A. simulator
B. debugger
C. emulator
D. compiler

Answer: D

There are several reasons for designing the optimization and compilers and one such is that it could help to meet and prove the real-time constraints.

 

3. Which of the following is an important ingredient of all power optimization?

A. energy model
B. power model
C. watt model
D. power compiler

Answer: B

Saving energy can be done at any stage of the embedded system development. The high-level optimization techniques can reduce power consumption and similarly compiler optimization also can reduce the power consumption the most important thing in power optimization is the power model.

 

4. Who proposed the first power model?

A. Jacome
B. Russell
C. Tiwari
D. Russell and Jacome

Answer: C

Tiwari proposed the first power model in the year 1974. The model includes the so-called bases and the inter-instruction instructions. Base costs of the instruction correspond to the energy consumed per instruction execution when an infinite sequence of that instruction is executed. Inter instruction costs model the additional energy consumed by the processor if instructions change.

 

5. Who proposed the third power model?

A. Tiwari
B. Russell
C. Jacome
D. Russell and Jacome

Answer: D

The third model was proposed by Russell and Jacome in the year 1998.

 

6. Which compiler is based on the precise measurements of two fixed configurations?

A. first power model
B. second power model
C. third power model
D. fourth power model

Answer: C

The third model was proposed by Russell and Jacome in the year 1998 and is based on the precise measurements of the two fixed configurations.

 

7. What does SPM stand for?

A. scratch pad memories
B. sensor parity machine
C. scratch pad machine
D. sensor parity memories

Answer: A

The smaller memories provide faster access and consume less energy per access and SPM or scratch pad memories are a kind of small memory that access fastly and consumes less energy per access and it can be exploited by the compiler.

 

8. Which model is based on precise measurements using real hardware?

A. encc energy-aware compiler
B. first power model
C. third power model
D. second power model

Answer: A

The encc-energy-aware compiler uses the energy model by Steinke et al. it is based on the precise measurements of the real hardware. The power consumption of the memory, as well as the processor, is included in this model.

 

9. What is the solution to the knapsack problem?

A. many-to-many mapping
B. one-to-many mapping
C. many-to-one mapping
D. one-to-one mapping

Answer: D

The knapsack problem is associated with the size constraints, that is the size of the scratch pad memories. This problem can be solved by one-to-one mapping which was presented in an integer programming model by Steinke et al.

 

10. How can one compute the power consumption of the cache?

A. Lee power model
B. First power model
C. Third power model
D. CACTI

Answer: D

The CACTI can compute the power consumption of the cache which is proposed by Wilton and Jouppi in the year 1996.

Scroll to Top