recategorized by
416 views

2 Answers

0 votes
0 votes
The set of strings generated by given grammar starts with either d or b.

So straight away options B,C,D are eliminated.

Let us try to derive $bccddd$.

$S\rightarrow bA\rightarrow bccA\rightarrow bccd$.

$\therefore$ String $bccddd$ can't be generated from given grammar.

So option A is eliminated.So none of the options are correct
0 votes
0 votes

(A) bccddd ...

 

The most closest answer seems to be A only.

The terminals in the grammar are d,b and c...

There is no terminal 'a' at all.

So the options B,C and D are ruled out...

option A can also be derived at something like this.

S->bA ->bccA ->bccccA ->bccccd

So the sentence generated should be bccccd. If there are any other explanations for the same please post them.…

 

Related questions

0 votes
0 votes
2 answers
1
0 votes
0 votes
1 answer
2
go_editor asked Mar 27, 2020
405 views
The Register or main memory location which contains the effective address of the operand is known as:PointerIndexed registerSpecial LocationsScratch Pad
0 votes
0 votes
1 answer
3
go_editor asked Mar 27, 2020
399 views
A Top - down Parse generatesLeft most derivationRight – most derivationRight most derivation in reverseLeft – most derivation in reverse
0 votes
0 votes
1 answer
4
go_editor asked Mar 27, 2020
2,189 views
A general macroprocessor is an in built function of :LoaderLinkerEditorAssembler