Compiler Design Week 9 Nptel Assignment Answers
Are you looking for NPTEL Compiler Design Week 9 Nptel Assignment Answers ? You’ve come to the right place! Access the most accurate answers at Progiez.
Table of Contents

Compiler Design Week 9 Nptel Assignment Answers (Jan-Apr 2025)
Course Link: Click Here
- Self-organizing list-based symbol tables improve performance primarily due to:
a) Locality of reference in the input program
b) Locality of reference in the compiler’s symbol access patterns
c) Both (a) and (b)
d) None of the above
- Most frequent operation on a symbol table is:
a) Insert
b) Delete
c) Modify
d) Lookup
- Motivation behind using self-organizing list for symbol table is:
a) Ease of implementation
b) Program locality
c) Insertion of symbols
d) None of the other options
- To minimize access time, symbol table should be organized as:
a) Linear table
b) Tree
c) Hashtable
d) Circular list
- Activation record stores:
a) Parameters
b) Local variables
c) Parameters and local variables
d) Parameters, local variables and code for procedures
- Which of the following phases of compiler does NOT use symbol table?
a) Semantic analysis
b) Code generation
c) Code optimization
d) None of the given options
- If two types have the same name, they can be:
a) Name equivalent
b) Structurally equivalent
c) Both name and structurally equivalent
d) May not be name equivalent
- Which type of compiler typically benefits from using a separate symbol table for each scope?
a) Single-pass compilers
b) Multi-pass compilers
c) Both single and multi-pass compilers
d) None of the given options
- Symbol table data is filled by:
a) Lexical analyzer
b) Parser
c) Both lexical analyzer and parser
d) Neither lexical analyzer nor parser
- Which of the following is NOT likely to be kept in a symbol table?
a) Name
b) Location
c) Scope
d) None of the other options
- What is the primary purpose of a symbol table in a compiler?
a) To store machine code instructions
b) To optimize runtime performance
c) To store and retrieve identifier-related information efficiently
d) To generate intermediate code
- Which of the following data structures is best suited for managing scope information in a symbol table?
a) Stack
b) Queue
c) Linked List
d) Heap
- Which optimization technique benefits the most from information stored in a symbol table?
a) Constant propagation
b) Loop unrolling
c) Dead code elimination
d) Instruction pipelining
Compiler Design Week 9 Nptel Assignment Answers (Jan-Apr 2025)
For answers to others Nptel courses, please refer to this link: NPTEL Assignment