Question
S -> xxW[print“1”]
S -> y[print“2”]
W -> S2[print“3”], what is the translation of “x x x x y z z”?
a.
1 1 2 3 1
b.
1 1 2 3 3
c.
2 3 1 3 1
d.
2 3 3 2 1
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. A shift-reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of the grammar. S -> xxW[print“1”] S ->...
Similar Questions
Discover Related MCQs
Q. Synthesized attribute can be easily simulated by a
View solution
Q. There exists a construct which returns a value ‘true’ if the argument subquery is:
View solution
Q. The linker:
View solution
Q. A compiler that runs on one machine and produces code for a different machine is called:
View solution
Q. Any syntactic construct that can be described by a regular expression can also be described by a:
View solution
Q. When a language has the capability to produce new data types, it is said to be:
View solution
Q. An assembly program contains:
View solution
Q. Which of the following are Assembler Directives?
(i) EQU
(ii) ORIGIN
(iii) START
(iv) END
View solution
Q. Assembler program is:
View solution
Q. At the end of parsing,
View solution
Q. Dead-code elimination in machine code optimization refers to:
View solution
Q. A parse tree is an annotated parse tree if:
View solution
Q. In a two pass compiler, during the first pass:
View solution
Q. A single instruction in an assembly language program contains:
View solution
Q. Absolute loader demands that the programmer needs to know the:
View solution
Q. Top-down parsers are predictive parsers, because:
View solution
Q. In the context of compiler design, “reduction in strength” refers to:
View solution
Q. How many states can a process be in?
View solution
Q. The parsing technique that avoids back tracking is:
View solution
Q. A Top-down Parse generates:
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Systems Programming? 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!