Multiple choice

Which of the following is true about an ideal compiler?

  1. It should be written in a high level language.

  2. It should produce the code that is smaller in size and executes faster.

  3. It should be smaller in size and it takes lesser time for compiling.

  4. None of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

An ideal compiler aims to generate optimized target code that is both smaller in size and executes faster, maximizing runtime efficiency.