0% found this document useful (1 vote)
1K views

Assignment - 10 - Compiler Design

This document contains a 10 question multiple choice quiz about compiler design concepts. The questions cover topics like activation records, intermediate code generation, p-code, frame pointers, and properties of intermediate languages. The correct answers are provided for each multiple choice question.

Uploaded by

dheena thayalan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
1K views

Assignment - 10 - Compiler Design

This document contains a 10 question multiple choice quiz about compiler design concepts. The questions cover topics like activation records, intermediate code generation, p-code, frame pointers, and properties of intermediate languages. The correct answers are provided for each multiple choice question.

Uploaded by

dheena thayalan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

NPTEL Online Certification Courses Indian

Institute of Technology Kharagpur

Compiler Design
Assignment- Week 10
TYPE OF QUESTION:MCQ
Number ofquestions:10 Total mark: 10 X 1 = 10

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
Ans: c)

2. Control link points to the

(A) Current activation record


(B) Parent activation record
(C) Child activation record
(D) None of the other options
Ans: b)

3. Intermediate code generation for a compiler is

(A) Must
(B) Optional
(C) Depends on language
(D) None of the other options
Ans: b)

4. P-code is used for

(A) Stack-based machine


(B) Accumulator based machine
(C) Two operand addresses
(D) None of the other options
Ans: a)

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
Ans: b)
6. Access link points to the

(A) Current activation record


(B) Parent activation record
(C) Child activation record
(D) None of the other options
Ans: d)

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
Ans: a)

8. Frame pointer points to the

(A) Current activation record


(B) Parent activation record
(C) Child activation record
(D) None of the other options
Ans: a)

9. “Display” helps to locate easily

(A) Local variables


(B) Global variables
(C) Non-local variables
(D) All of the other options
Ans: c)

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
Ans: d)

END of Assignment

You might also like