Multiple choice technology programming languages

According to the global symbol table shown here, what value will a reference to &&teach&crs resolve to? TEACH1 Hallis, Dr. George TEACH2 Wickam,Dr. Alice TEACH3 Forest,Mr. Peter CRS 3

  1. &TEACH3

  2. TEACH3

  3. Forest, Mr. Peter

  4. none of the above

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

This tests double macro reference resolution (&&). The reference &&teach&crs first resolves &crs to 3, giving &&teach3. The double ampersand causes delayed resolution: &&teach3 resolves to &TEACH3 (single &), which then resolves to 'Forest, Mr. Peter' from the symbol table. The double && prevents immediate resolution, allowing two-stage lookup.