A particular BNF definition for a “word” is given by the following rules.…
ISRO Scientist/Engineer SC · 2018 · Computer Science
A particular BNF definition for a “word” is given by the following rules.
<word> ::= <letter> | <letter><charpair> | <letter><intpair>
<charpair> ::= <letter><letter> | <charpair><letter><letter>
<intpair> ::= <integer><integer> | <intpair><integer><integer>
<letter> ::= a | b | c | ... | y | z
<integer> ::= 0 | 1 | 2 | ... | 9
Which of the following lexical entries can be derived from <word>? I. pick II. picks III. c44
- A.
I, II and III
- B.
I and II only
- C.
I and III only
- D.
II and III only
Attempted by 69 students.
Sign up free to check your answer
Sign up freeLoading lesson…