Multiple choice

A simple two-pass assembler does which of the following the first pass?

  1. <font size="2">I</font>t allocates space for the literals.

  2. <font size="2">I</font>t compute<font size="2">s</font> the total length of the program.

  3. <font size="2">I</font>t builds the symbol table for the symbols and their value.

  4. <font size="2">A</font>ll of these

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

The first pass of a two-pass assembler performs three key tasks: allocating space for literals/pool table, computing the total program length (for address calculation), and building the symbol table with symbol addresses. All options are correct.