Multiple choice

Which of the following is a necessary condition for a single pass compiler?

  1. It generates symbol table and generates code afterwards.

  2. It allows labels, which can be defined after it is used.

  3. It does not allow defining a function after it has been called in the program.

  4. It allows a forward definition of a symbol or identifier.

  5. None of the above

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

All the functions has to be defined before they are used or called.