Question 1
Which phase of a compiler commonly identifies declared identifiers during scanning and may create their initial Symbol Table entries?
The lexical analyzer recognizes identifier tokens and, in compiler implementations that populate the table during scanning, can create initial symbol-table entries. Later phases may enrich those entries with additional semantic information.