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.



Compiler Design Week 9 Nptel Assignment Answers
Compiler Design Week 9 Nptel Assignment Answers

Compiler Design Week 9 Nptel Assignment Answers (Jan-Apr 2025)

Course Link: Click Here


  1. 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

View Answer


  1. Most frequent operation on a symbol table is:

a) Insert
b) Delete
c) Modify
d) Lookup

View Answer


  1. 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

View Answer


  1. To minimize access time, symbol table should be organized as:

a) Linear table
b) Tree
c) Hashtable
d) Circular list

View Answer


  1. Activation record stores:

a) Parameters
b) Local variables
c) Parameters and local variables
d) Parameters, local variables and code for procedures

View Answer


  1. 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

View Answer


  1. 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

View Answer


  1. 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

View Answer


  1. Symbol table data is filled by:

a) Lexical analyzer
b) Parser
c) Both lexical analyzer and parser
d) Neither lexical analyzer nor parser

View Answer


  1. 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

View Answer


  1. 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

View Answer


  1. 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

View Answer


  1. 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

View Answer


Compiler Design Week 9 Nptel Assignment Answers (Jan-Apr 2025)

For answers to others Nptel courses, please refer to this link: NPTEL Assignment