NPTEL Compiler Design Assignment 1 Answers 2024

NPTEL Compiler Design Assignment 1 Answers 2024

Hello learners In this article we are going to discuss NPTEL Compiler Design Assignment 1 Answers. All the Answers provided below to help the students as a reference, You must submit your assignment with your own knowledge and use this article as reference only.

About the course:-

Compilers have become part and parcel of today’s computer systems. They are responsible for making the user’s computing requirements, specified as a piece of program, understandable to the underlying machine. There tools work as interface between the entities of two different domains – the human being and the machine. The actual process involved in this transformation is quite complex. Automata Theory provides the base of the course on which several automated tools can be designed to be used at various phases of a compiler.

NPTEL Compiler Design Assignment 1 Answers 2024:

1. Which of the following is a stage of the compilation process?

Answer :- d

2.  A programmer writes instructions to multiply two numbers instead of adding them by mistake within a program. Which of the following is true in this context?

Answer :- b

3. Name the system program that is used to combine a program’s several compiled modules into a executable form:

Answer :- d

4. The output of a lexical analyzer is:

Answer :- c

5. How many lexemes are there in the following code: int main( ) { printf(“%d + %d = %d”, 3, 1, 4); return 0; }

Answer :- b

6. Which of the following is/are true for RISC architecture?

Answer :- a,d

7. Which particular task of compilation process uses context free grammars (CFG)?

Answer :- c

8. Which of the following machine model is necessary and sufficient for designing lexical analyzer?

Answer :- a

9. Which of the following items are stored in the symbol table?

Answer :- d

10. Suppose that the access time of an implemented symbol table is logarithmic. Then the symbol table has been implemented using:

Answer :- a

11. Which of the following can be managed fully during compilation?

Answer :- a

12. Which of the following is NOT TRUE in the context of syntax analysis phase of compilation?

Answer :- d