Computer Science and Information Technology
2026 · Paper 1
Take it one question at a time. Try an answer, then check your understanding.
Complete GATE CSE 2026 Paper 1 overview, original pages and practice · Timed previous-paper practice
Questions 52–54 of 65. Imported answers require review unless explicitly marked reviewed.
Question 52
Open questionCSMSQ2 marksNeeds review
Consider the following context-free grammar
.
In the above grammar,
is the start symbol,
and
are terminal symbols, and
and
are non-terminal symbols.Let
be the language generated by the grammar
. For a string
, let
be the number of
’s in
and
be the number of
’s in
.Which of the following statements is/are true?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 53
Open questionCSMSQ2 marksNeeds review
Consider the following two syntax-directed definitions SD1 and SD2 for type declarations.
SD1
Grammar (G1) | Semantic Rules
D → T V: D.type = T.type; V.type = T.type
T → int: T.type = int
T → float: T.type = float
V → V₁ id: V₁.type = V.type; put(id.entry, V.type)
V → id: put(id.entry, V.type)
SD2
Grammar (G2) | Semantic Rules
D → D₁ id: D.type = D₁.type; put(id.entry, D₁.type)
D → T id: D.type = T.type; put(id.entry, T.type)
T → int: T.type = int
T → float: T.type = float
D is the start symbol, and int, float and id are the terminals. The non-terminal V₁ is the same as V and the non-terminal D₁ is the same as D. Here, the subscript is used to differentiate the grammar symbol on the two sides of a production. The function put updates the symbol table with the type information for an identifier.
Let P and Q be the languages specified by grammars G1 and G2, respectively.
Which of the following statements is/are true?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 54
Open questionCSMSQ2 marksNeeds review
Consider a system that has a cache memory unit and a memory management unit (MMU). The address input to the cache memory is a physical address. The MMU has a translation lookaside buffer (TLB). Assume that when a page is evicted from the main memory, the corresponding blocks in the cache are marked as invalid.
For a given memory reference, which of the following sequences of events can NEVER happen?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer