Compiler Design Assignment 02 Answers | January 2022 | NPTEL | Week 02 | The Today Blog

5/5 - (1 vote)

Want to Know the Answers to NPTEL Compiler Design Assignment 02? This article will tell you the answer to the National Programme on Technology Enhanced Learning (NPTEL) Course Compiler Design. So read the complete article carefully.

About the Course: Compiler Design

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. These tools work as interfaces 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. Advances in computer architecture, memory management, and operating systems provide the compiler designer large number of options to try out for efficient code generation.

CRITERIA TO GET A CERTIFICATE

Average assignment score = 25% of the average of best 8 assignments out of the total 12 assignments given in the course.
Exam score = 75% of the proctored certification exam score out of 100

Final score = Average assignment score + Exam score

YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF THE AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.

The certificate will have your name, photograph, and score in the final exam with the breakup. It will have the logos of NPTEL and IIT Roorkee. It will be e-verifiable at nptel.ac.in/noc.

Compiler Design Assignment 02 Answers

Question 01 of 11

When the lexical analyzer reads the source code, it scans the code

A. Line-by-line

B. Word-by-word

C. Letter-by-letter

D. Whole at a time

C. Letter-by-letter

Question 02 of 11

The regular expression for strings (over alphabet set {0,1}) in which a ‘0’ is always followed by at least two 1’s (that is “11”) is

A. (1*(011*)*

B. 1*(011)*

C. Not possible to create such a regular expression

D. None of the other options

A. (1*(011*)*

Question 03 of 11

According to the following diagram which one of the following strings is not accepted by the diagram?

A. 110

B. 1111

C. 110000

D. 1100

B. 1111

Compiler Design Assignment 02 Answers

Question 04 of 11

The number of possible epsilon transitions from a state in an NFA is

A. Many

B. At most one

C. One

D. Zero

A. Many

Question 05 of 11

Between NFA and DFA which one is more powerful

A. NFA

B. DFA

C. both are powerful

D. Cannot be said definitely

C. both are powerful

Question 06 of 11

A regular expression represents

A. Cannot represent any language

B. Part of a language

C. Constituent strings of a language

D. None of the other options

C. Constituent strings of a language

Compiler Design Assignment 02 Answers

Question 07 of 11

Finite automata is an implementation of

A. Part of a Regular expression

B. Any grammar

C. Regular expression

D. None of the other options

C. Regular expression

Question 08 of 10

Which is easier to implement, the NFA or the DFA?

A. DFA

B. NFA

C. Equal effort needed

D. Cannot be said definitely

A. DFA

Question 09 of 11

The regular expression (0|1) *00 will accept all strings

A. Divisible by 2

B. Divisible by 4 with minimum length 2

C. Divisible by 2 with minimum length 2

D. Divisible by 4

B. Divisible by 4 with minimum length 2

Question 10 of 11

What exactly is a lexeme?

A. Any sequence of characters

B. Sequence of characters defining a token

C. Same as a token

D. Not related to any token.

B. Sequence of characters defining a token

Question 11 of 11

Output of a tool lex is

A. A C program

B. An executable code

C. A parser

D. None of the other options

A. A C program

That’s All Guys! Hope you Like the Article.

That It Guys, in this article I have told you about the Answers to Compiler Design Assignment 02.

Disclaimer: We do not claim 100% surety of answers, these answers are based on our sole knowledge, and by posting these answers we are just trying to help students, so we urge do your assignment on your own.

if you have any suggestions then comment below or contact us at admin@thetodayblog.com

If you found this article Interesting and helpful, don’t forget to share it with your friends to get this information.

READ ALSO:

Air Pollution and Control ASSIGNMENT 01 ANSWERS

WILDLIFE ECOLOGY ASSIGNMENT 12 ANSWERS

Compiler Design Assignment 01 Answers

PROGRAMMING IN JAVA ASSIGNMENT 01 ANSWERS

Don’t forget to share it with your friends.

Follow us on Instagram, Twitter, and Facebook also.

Follow me personally on Instagram and Twitter.

Leave a Comment