adplus-dvertising

Welcome to the Error Handling MCQs Page

Dive deep into the fascinating world of Error Handling with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Error Handling, a crucial aspect of Compiler Design. In this section, you will encounter a diverse range of MCQs that cover various aspects of Error Handling, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within Compiler Design.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Error Handling. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of Compiler Design.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Error Handling. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Error Handling MCQs | Page 2 of 3

Explore more Topics under Compiler Design

Q11.
Match the following:
List-I List-II

A. Lexical analysis 1. Graph colouring

B. Parsing 2. DFA minimization

C. Register allocation 3. Post-order traversal

D. Expression evaluation 4. Production tree

A B C D
Discuss
Answer: (c).2 4 1 3
Q12.
Consider the following grammar G.
S β†’ F βŽͺ H

F β†’ p βŽͺ c

H β†’ d βŽͺ c

Which one is true?

S1: All strings generated by G can be parsed with help of LL (1).

S2: All strings generated by G can be parsed with help of LR (1).
Discuss
Answer: (d).None of the mentioned
Q13.
Consider the following two sets of LR (1) items of an LR (1) grammar.
X -> c.X, c/d

X -> .cX, c/d

X -> .d, c/d

X -> c.X, $

X -> .cX, $

X -> .d, $

Which one is false?

1. Cannot be merged since look ahead’s are different.

2. Can be merged but will result in S-R conflict.

3. Can be merged but will result in R-R conflict.

4. Cannot be merged since goto on c will lead to two different sets.
Discuss
Answer: (d).1, 2, 3 and 4
Discuss
Answer: (c).Both of the mentioned
Q15.
Which is the most powerful parser?
Discuss
Answer: (c).Canonical LR
Discuss
Answer: (b).All of the mentioned
Q17.
When will the relationship between β€˜+’ and β€˜-’ be <
Discuss
Answer: (c).All of the mentioned
Q18.
When will the relationship between β€˜<’ and β€˜>’ be <
Discuss
Answer: (d).Undefined
Q19.
In an absolute loading scheme which loader function is accomplished by assembler
Discuss
Answer: (a).Re-allocation
Discuss
Answer: (b).Bottom up parser
Page 2 of 3

Suggested Topics

Are you eager to expand your knowledge beyond Compiler Design? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!