BPSC TRE – Compiler Design: Syntax Analysis & Parsing | Test 1

Questions 36-40 of 50

0% completed (0/50 answered)
Your score 0/50 0 answered
Correct 0 Incorrect 0 Unanswered 50 Accuracy 0%

Question 36

MCQ · Single Correct 1 mark

How do LALR(1) and Canonical LR(1) (CLR) parser tables compare with respect to state count?

Answers for question 36

Question 37

MCQ · Single Correct 1 mark

When merging LR(1) item sets with identical cores to create LALR(1) states, can a Shift/Reduce conflict be introduced?

Answers for question 37

Question 38

MCQ · Single Correct 1 mark

Which of the following characteristics accurately describes a Deterministic Pushdown Automaton (DPDA)?

Answers for question 38

Question 39

MCQ · Single Correct 1 mark

Given a immediate Left Recursive grammar rule A -> A \alpha | \beta, what is the standard transformed non-left-recursive rule set?

Answers for question 39

Question 40

MCQ · Single Correct 1 mark

Which of the following grammar properties makes a grammar impossible to parse using a predictive LL(1) parser?

Answers for question 40
Scroll to Top