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

  1. A.

    I, II and III

  2. B.

    I and II only

  3. C.

    I and III only

  4. D.

    II and III only

Attempted by 69 students.

Sign up free to check your answer

Sign up free

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…