StreakPeaked· Practice

ExamsGATETechnical

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 | ε

  1. (A) E – P, F – R, G – Q, H – S
  2. (B) E – R, F – P, G – S, H – Q
  3. (C) E – R, F – P, G – Q, H – S
  4. (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 →