GATE CS 2021 (Afternoon) — Question 61

Compiler DesignLexical Analysis & Parsing Architectures (LL(1), LR(1), LALR)NAT2 marksMedium

Consider the following augmented grammar with {\#, @, <, >, a, b, c} as the set of terminals. \(S' \rightarrow S\) \(S \rightarrow S \# cS\) \(S \rightarrow SS\) \(S \rightarrow S@\) \(S \rightarrow <S>\) \(S \rightarrow a\) \(S \rightarrow b\) \(S \rightarrow c\) Let \(I_0 = \text{CLOSURE}(\{S' \rightarrow \bullet S\})\). The number of items in the set \(\text{GOTO}(\text{GOTO}(I_0, <), <)\) is _________.
Practise the full 2021-AN paper
Challenge a friend: WhatsApp Telegram
From RENYXERAWhat rank do your marks get?GATE score, likely All-India Rank and qualifying marks for your category.
Practise more on Lexical Analysis & Parsing Architectures (LL(1), LR(1), LALR)Timed, in the real exam interface · free to start

A GATE question every morning

One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.

Join
Stuck? Ask in the student group