Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Is this question theyre asking last 2 digits of id.. my id is 12230 so last two digits are 30 Q5. From the following set

Is this question theyre asking last 2 digits of id.. my id is 12230 so last two digits are 30image text in transcribed

Q5. From the following set of 10 different expressions given with 0-9 numbering, select the one expression based on your last digit of roll no. e.g. If your rollis CS1712455, then you will be only selecting expression no. 5 only. After selecting particular expression, then Use following LR table and grammar to parse selected expression: (10 points] 0. (ID/ID)+(ID/ID) +ID 5. (ID/ID)+(1D/ID/ID 1. (D+ID)/(ID/ID)+ID 6. (ID/ID)+(ID/ID)*ID 2. (ID/ID)*(ID/ID)+ID 7. (ID"ID)+(ID"ID)+ID 3. (ID ID)+(ID/1D) HID 8. (ID ID)/(ID*ID/ID 4. (ID/ID)+(ID"ID)HD 9. (ID ID)"(D*ID)*ID LR Table th STATE Grammar: (1) E-E + T (2) E-T (3) T-TF (4) T-F (5) F (E) 16) Fid $ ETF 4 0 1 2 3 26 r2 37 4 ace 12 N4 3 TO 16 16 5 6 7 3 10 9 sil 9 ri 27 rt 10 11 5 5 15 5 2 of 3 Q5. From the following set of 10 different expressions given with 0-9 numbering, select the one expression based on your last digit of roll no. e.g. If your rollis CS1712455, then you will be only selecting expression no. 5 only. After selecting particular expression, then Use following LR table and grammar to parse selected expression: (10 points] 0. (ID/ID)+(ID/ID) +ID 5. (ID/ID)+(1D/ID/ID 1. (D+ID)/(ID/ID)+ID 6. (ID/ID)+(ID/ID)*ID 2. (ID/ID)*(ID/ID)+ID 7. (ID"ID)+(ID"ID)+ID 3. (ID ID)+(ID/1D) HID 8. (ID ID)/(ID*ID/ID 4. (ID/ID)+(ID"ID)HD 9. (ID ID)"(D*ID)*ID LR Table th STATE Grammar: (1) E-E + T (2) E-T (3) T-TF (4) T-F (5) F (E) 16) Fid $ ETF 4 0 1 2 3 26 r2 37 4 ace 12 N4 3 TO 16 16 5 6 7 3 10 9 sil 9 ri 27 rt 10 11 5 5 15 5 2 of 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions