Gate CS-2008 Question Paper With Solutions

Q. 18 Which of the following describes a handle (as applicable to LR-parsing)

appropriately?

(A) It is the position in a sentential form where the next shift or reduce
operation will occur

(B) It is a non-terminal whose production will be used for reduction in the next
step

(C) It is a production that may be used for reduction in a future step along
with a position in the sentential form where the next shift or reduce
operation will occur.

(D) It is the production p that will be used for reduction in the next step along
with a position in the sentential form where the right hand side of the
production may be found

Answer: (D)

Explanation:

Gate CS-2008 Question Paper With Solutions Gate CS-2008 Question Paper With Solutions

Learn More:   Gate EC-2008 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here