Exams › GATE › Technical
Match the following:
(E) Checking that identifiers are declared before their use
(F) Number of formal parameters in the declaration of a function agrees with the number of actual parameters in a use of that function
(G) Arithmetic expressions with matched pairs of parentheses
(H) Palindromes
(P) L = {aⁿ b^m c^m dⁿ | n ≥ 1, m ≥ 1}
(Q) X → X b X | X c X | d X f | g
(R) L = {wcw | w ∈ (a|b)*}
(S) X → b X b | c X c | ε
- (A) E – P, F – R, G – Q, H – S
- (B) E – R, F – P, G – S, H – Q
- (C) E – R, F – P, G – Q, H – S
- (D) E – P, F – R, G – S, H – Q
Correct answer: (C) E – R, F – P, G – Q, H – S
Solution
Option C is correct because it accurately matches each concept with its corresponding language or grammar: E (checking identifiers) aligns with R (palindromes), F (parameter matching) corresponds to P (function parameters), G (parentheses in expressions) relates to Q (grammar for expressions), and H (palindromes) matches with S (grammar for palindromes).
Related GATE Technical questions
⚔️ Practice GATE Technical free + battle 1v1 →