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

Compiler Design Week 10 Nptel Assignment Answers (Jan-Apr 2025)
Course Link: Click Here
1) Which of the following is NOT possible to realize if activation record is static?
a. Passing parameters
b. Creating local variables
c. Supporting recursion
d. None of the other options
2) Control link points to the
a. Current activation record
b. Parent activation record
c. Child activation record
d. None of the other options
3) Intermediate code generation for a compiler is
a. Must
b. Optional
c. Depends on language
d. None of the other options
4) P-code is used for
a. Stack-based machine
b. Accumulator based machine
c. Two operand addresses
d. None of the other options
5) In the activation record, local variables can be accessed from frame pointer with offset value
a. Positive
b. Negative
c. May be positive or negative
d. Cannot be accessed
Compiler Design Week 10 Nptel Assignment Answers
6) Access link points to the
a. Current activation record
b. Parent activation record
c. Child activation record
d. None of the other options
7) If pointer is supported in the high-level language,
a. Must also be supported in the intermediate language
b. May not be supported in the intermediate language
c. Depends on language
d. None of the other options
8) Frame pointer points to the
a. Current activation record
b. Parent activation record
c. Child activation record
d. None of the other options
9) “Display” helps to locate easily
a. Local variables
b. Global variables
c. Non-local variables
d. All of the other options
10) An intermediate language should be
a. Close to target machine
b. Machine independent
c. All operators of high-level language supported
d. All of the other options
11) Which of the following is a key purpose of the stack pointer in an activation record?
a. To store the base address of the current function
b. To manage dynamic memory allocation
c. To track the top of the runtime stack
d. To store global variables
12) What happens if recursion is attempted in a system with a static activation record?
a. It executes successfully but inefficiently
b. It results in incorrect execution since previous function calls get overwritten
c. It executes normally without issues
d. It leads to infinite recursion by default
13) What is the primary advantage of using intermediate code in a compiler?
a. It simplifies code generation for multiple target machines
b. It improves the execution speed of the compiled program
c. It eliminates the need for optimization
d. It ensures that all high-level language features are directly mapped to assembly
Compiler Design Week 10 Nptel Assignment Answers (Jan-Apr 2025)
For answers to others Nptel courses, please refer to this link: NPTEL Assignment