adplus-dvertising
frame-decoration

Question

In a MIU puzzle, either of the letters M, I or U could go as a start symbol. Production rules are given
below :

R1 : U→IU
R2 : M.x→M.x.x where ːˑ is string concatenation operator. Given this, which of the following holds for

(i) MIUIUIUIUIU
(ii) MIUIUIUIUIUIUIUIU

a.

Either (i) or (ii) but not both of these are valid words.

b.

Both (i) and (ii) are valid words and they take identical number of transformations for the production.

c.

Both (i) and (ii) are valid words but they involve different number of transformations in the production.

d.

None of these

Answer: (c).Both (i) and (ii) are valid words but they involve different number of transformations in the production.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. In a MIU puzzle, either of the letters M, I or U could go as a start symbol. Production rules are given below : R1 : U→IU R2 : M.x→M.x.x where ːˑ is string concatenation...

Similar Questions

Discover Related MCQs

Q. Recursive functions are executed in a

Q. In an absolute loading scheme which loader function is accomplished by assembler?

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 -> y[print“2”]
W -> S2[print“3”], what is the translation of “x x x x y z z”?

Q. Synthesized attribute can be easily simulated by a

Q. There exists a construct which returns a value ‘true’ if the argument subquery is:

Q. The linker:

Q. A compiler that runs on one machine and produces code for a different machine is called:

Q. Any syntactic construct that can be described by a regular expression can also be described by a:

Q. When a language has the capability to produce new data types, it is said to be:

Q. An assembly program contains:

Q. Which of the following are Assembler Directives?

(i) EQU
(ii) ORIGIN
(iii) START
(iv) END

Q. Assembler program is:

Q. At the end of parsing,

Q. Dead-code elimination in machine code optimization refers to:

Q. A parse tree is an annotated parse tree if:

Q. In a two pass compiler, during the first pass:

Q. A single instruction in an assembly language program contains:

Q. Absolute loader demands that the programmer needs to know the:

Q. Top-down parsers are predictive parsers, because:

Q. In the context of compiler design, “reduction in strength” refers to: