6 votes 6 votes A particular BNF definition for a "word is given by the following rules. <word> :: = <letter> I <letter> <charpair> I <letter> <intpair> <charpair> :: = <letter> <letter> I <charpair> <letter> <letter> <intpair> :: = <integer> <integer> I <intpair> <integer> <integer> <letter> :: = a I b I c I ......I Y I Z <integer> :: = 0 I 1 I 2 I ......I 9 Which of the following lexical entries can be derived from $\textsf{< word >}?$ pick picks $\textsf{c44}$ I, II and III I and II only I and III only II and III only Compiler Design isro2018 compiler-design grammar context-free-grammar + – Arjun asked Apr 22, 2018 • edited Dec 4, 2022 by Lakshman Bhaiya Arjun 5.7k views answer comment Share Follow See 1 comment See all 1 1 comment reply chirudeepnamini commented Jan 9, 2020 reply Follow Share The grammar is generating strings of odd length ... So option a can be eliminated in first place.. 0 votes 0 votes Please log in or register to add a comment.
Best answer 5 votes 5 votes option d abhishekmehta4u answered Apr 23, 2018 • selected Apr 24, 2018 by ManojK abhishekmehta4u comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes pick can't be generated other are generated hence ans should be B pream sagar answered Apr 22, 2018 pream sagar comment Share Follow See all 2 Comments See all 2 2 Comments reply Sambit Kumar commented Apr 22, 2018 reply Follow Share yes pick can't be generated.So D is correct choice.isn't it? 0 votes 0 votes Akshay Koli 4 commented Apr 22, 2018 reply Follow Share yes option D is correct answer. 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes Ans: D. What I thought, "word" is having only 4 char. Which can't be derived from the grammar. "words" is having 5 char, which is odd, so can be derived from the grammar. Also c22 can be drived. So ans is II and III, implies option D. CS.user answered Apr 26, 2018 CS.user comment Share Follow See 1 comment See all 1 1 comment reply Mudit Maheshwari commented Jul 7, 2018 reply Follow Share Can you please explain the procedure to solve this type of problem? 1 votes 1 votes Please log in or register to add a comment.