Multiple choice

Match the following:

E. Checking that identifiers are declared before their use P. $L : = : \left\{a^nb^mc^nd^m \mid n: \geq1, m \geq 1\right\}$
F. Number of formal parameters in the declaration of a function agrees with the number of actual parameters in a use of that function Q. $X: \rightarrow XbX \mid XcX \mid dXf \mid g$
G. Arithmetic expressions with matched pairs of parentheses R. $L: = \left\{wcw\mid w : \in \left(a\mid b\right)^* \right\}$
H. Palindromes S. $X : \rightarrow : bXb \mid :cXc : \mid \epsilon $

  1. E −P, F −R, G −Q, H −S

  2. E −R, F −P, G −S, H −Q

  3. E −R, F −P, G −Q, H −S

  4. E −P, F −R, G −S, H −Q

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation