Digital Filters (FIR, IIR): GATE ECE practice questions with solutions

This topic covers frequency responses of FIR and IIR filters, linear phase and group delay, stability, notches and all-pass filters. The 15 original questions follow the GATE EC format: 5 MCQ, 3 MSQ and 7 NAT, from 5 easy, 6 medium and 4 hard.

Three ideas to know:

  • Averaging adjacent samples smooths the signal, which is low-pass behaviour.
  • For input cos⁡(Ω0n)\cos(\Omega_0 n), the steady-state output is ∣H(ejΩ0)∣cos⁡(Ω0n+∠H(ejΩ0))|H(e^{j\Omega_0})|\cos\left(\Omega_0 n + \angle H(e^{j\Omega_0})\right).
  • The zeros of H(z)H(z) on the unit circle give notch frequencies.

It helps GATE EC and ECE students revising Signals and Systems for the exam or a semester test. Helpful background: Frequency response and Frequency response of an IIR filter. Start with the 5 easy questions, then work up to the 4 hard ones.

Q.1

EasyMCQ1 mark

The FIR filter y[n]=x[n]+x[n−1]y[n] = x[n] + x[n-1] is a

  1. Option A: high-pass filter
  2. Option B: low-pass filter
  3. Option C: band-pass filter
  4. Option D: all-pass filter
Show answer and solutionHide answer and solution

Answer: (B)

Key idea: Averaging adjacent samples smooths the signal, which is low-pass behaviour.

H(e^{j\Omega}) = 1 + e^{-j\Omega} = e^{-j\Omega/2}\cdot 2\cos\frac{\Omega}{2}, so |H| = 2\left|\cos\frac{\Omega}{2}\right|. The gain is 2 at \Omega = 0 and 0 at \Omega = \pi, so low frequencies pass and high frequencies are blocked. Check: the input (-1)^n (frequency \pi) gives y[n] = (-1)^n + (-1)^{n-1} = 0.

Common mistake: Calling it high-pass because it has a zero in the spectrum (the zero is at \Omega = \pi, the high end).

You need: Frequency response, FIR filters

Q.2

EasyNAT1 mark

For the filter y[n]=x[n]−x[n−1]y[n] = x[n] - x[n-1], find ∣H(ejπ)∣|H(e^{j\pi})|.

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 2

Key idea: The first difference doubles the highest-frequency input (-1)^n.

H(e^{j\Omega}) = 1 - e^{-j\Omega}, and at \Omega = \pi, e^{-j\pi} = -1, so H = 1 - (-1) = 2. Check: the input (-1)^n gives y[n] = (-1)^n - (-1)^{n-1} = 2(-1)^n, so the gain is 2.

Common mistake: Evaluating at \Omega = 0 and getting 0.

You need: Frequency response of an FIR filter

Q.3

EasyMCQ1 mark

Which of the following FIR impulse responses (for n=0,1,2n = 0, 1, 2) has an exactly linear phase response?

  1. Option A: h[n]={1,2,3}h[n] = \{1, 2, 3\}
  2. Option B: h[n]={1,2,1}h[n] = \{1, 2, 1\}
  3. Option C: h[n]={1,3,2}h[n] = \{1, 3, 2\}
  4. Option D: h[n]={2,1,3}h[n] = \{2, 1, 3\}
Show answer and solutionHide answer and solution

Answer: (B)

Key idea: Symmetric or antisymmetric coefficients give linear phase and a constant group delay.

A causal FIR filter has linear phase when h[n] = h[N-1-n] (symmetric) or h[n] = -h[N-1-n] (antisymmetric). Only \{1, 2, 1\} is symmetric. Its response is H = 1 + 2e^{-j\Omega} + e^{-j2\Omega} = e^{-j\Omega}(2 + 2\cos\Omega), which is a real, non-negative amplitude times the linear phase e^{-j\Omega}. Check: the other three are neither symmetric nor antisymmetric.

Common mistake: Choosing a sequence that merely looks smooth, such as \{1, 2, 3\}.

You need: Linear-phase FIR filters

Q.4

EasyMSQ1 mark

Which of the following statements about FIR and IIR filters are correct?

One or more options are correct.

  1. Option A: A causal FIR filter with finite coefficients is always BIBO stable.
  2. Option B: IIR filters are usually realized with feedback (recursive) difference equations.
  3. Option C: An FIR filter can have exactly linear phase.
  4. Option D: Every IIR filter is unstable.
Show answer and solutionHide answer and solution

Answer: (A), (B) and (C)

Key idea: FIR filters are always stable and can be linear-phase; IIR filters are stable only when their poles lie inside the unit circle.

(A) \sum|h[n]| is a finite sum, so it is finite. (B) A recursive equation lets a finite number of coefficients produce an infinite impulse response. (C) Symmetric coefficients give exactly linear phase. (D) False: y[n] = 0.5y[n-1] + x[n] is IIR and stable because its pole is inside the unit circle. Check for (D): h[n] = (0.5)^n u[n] has \sum|h| = 2 < \infty.

Common mistake: Treating "infinite impulse response" as "unbounded response".

You need: FIR and IIR filters, stability

Q.5

EasyNAT1 mark

For the causal filter y[n]=0.5 y[n−1]+x[n]y[n] = 0.5\,y[n-1] + x[n], find the DC gain H(ej0)H(e^{j0}).

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 2

Key idea: The DC gain equals the sum of the impulse response, H(e^{j0}) = \sum h[n].

H(e^{j\Omega}) = \frac{1}{1 - 0.5e^{-j\Omega}}, and at \Omega = 0, H = \frac{1}{1 - 0.5} = 2. Check: h[n] = (0.5)^n u[n] and \sum_n h[n] = \frac{1}{1 - 0.5} = 2.

Common mistake: Answering 1, the feed-forward coefficient, and forgetting the feedback.

You need: Frequency response, geometric series

Q.6

MediumNAT2 marks

The input x[n]=cos⁡(πn2)x[n] = \cos\left(\frac{\pi n}{2}\right) is applied to the filter y[n]=x[n]+x[n−1]y[n] = x[n] + x[n-1]. Find the amplitude of the output. Give your answer to three decimal places.

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 1.414 (accepted 1.41 to 1.42)

Key idea: For input \cos(\Omega_0 n), the steady-state output is |H(e^{j\Omega_0})|\cos\left(\Omega_0 n + \angle H(e^{j\Omega_0})\right).

H(e^{j\Omega}) = 1 + e^{-j\Omega}, so at \Omega = \frac{\pi}{2}, H = 1 - j with |H| = \sqrt{2} and \angle H = -\frac{\pi}{4}. The output is \sqrt{2}\cos\left(\frac{\pi n}{2} - \frac{\pi}{4}\right), which has amplitude \sqrt{2} = 1.414. Check: y[1] = x[1] + x[0] = 0 + 1 = 1, and the formula gives \sqrt{2}\cos\left(\frac{\pi}{2} - \frac{\pi}{4}\right) = \sqrt{2}\cos\frac{\pi}{4} = 1.

Common mistake: Using the DC gain 2 as the amplitude.

You need: Frequency response, sinusoidal steady-state response

Q.7

MediumMCQ2 marks

The causal filter y[n]=−0.5 y[n−1]+x[n]y[n] = -0.5\,y[n-1] + x[n] is a

  1. Option A: low-pass filter
  2. Option B: band-stop filter
  3. Option C: high-pass filter
  4. Option D: all-pass filter
Show answer and solutionHide answer and solution

Answer: (C)

Key idea: A pole near z = -1 emphasizes high frequencies, and a pole near z = +1 emphasizes low frequencies.

H(e^{j\Omega}) = \frac{1}{1 + 0.5e^{-j\Omega}}. At \Omega = 0, |H| = \frac{1}{1.5} = 0.667. At \Omega = \pi, e^{-j\pi} = -1, so |H| = \frac{1}{1 - 0.5} = 2. The gain is larger at high frequency, so it is high-pass. Check: h[n] = (-0.5)^n u[n] alternates in sign, which is a high-frequency pattern.

Common mistake: Calling it low-pass because the filter is a first-order recursive one like y[n] = 0.5y[n-1] + x[n].

You need: Frequency response, pole locations

Q.8

MediumNAT2 marks

For the causal filter y[n]=0.5 y[n−1]+x[n]y[n] = 0.5\,y[n-1] + x[n], find ∣H(ejπ/2)∣|H(e^{j\pi/2})|. Give your answer to three decimal places.

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 0.894 (accepted 0.89 to 0.9)

Key idea: Evaluate H(z) on the unit circle at z = e^{j\Omega} and take the magnitude of the complex number.

H(e^{j\Omega}) = \frac{1}{1 - 0.5e^{-j\Omega}} and e^{-j\pi/2} = -j, so H = \frac{1}{1 + 0.5j}. Then |H| = \frac{1}{\sqrt{1 + 0.25}} = \frac{1}{1.118} = 0.894. Check: it lies between |H(e^{j\pi})| = 0.667 and |H(e^{j0})| = 2, as expected for a low-pass filter.

Common mistake: Using 1 - 0.5 = 0.5 and getting 2, which treats the exponential as 1.

You need: Frequency response of an IIR filter, complex magnitude

Q.9

MediumMCQ2 marks

Which of the following causal systems is BIBO stable?

  1. Option A: y[n]=1.2 y[n−1]+x[n]y[n] = 1.2\,y[n-1] + x[n]
  2. Option B: y[n]=1.5 y[n−1]−0.5 y[n−2]+x[n]y[n] = 1.5\,y[n-1] - 0.5\,y[n-2] + x[n]
  3. Option C: y[n]−y[n−1]=x[n]y[n] - y[n-1] = x[n]
  4. Option D: y[n]=−0.9 y[n−1]+x[n]y[n] = -0.9\,y[n-1] + x[n]
Show answer and solutionHide answer and solution

Answer: (D)

Key idea: Causal stability needs every pole strictly inside the unit circle.

A causal system is stable if all poles lie inside the unit circle. (A) The pole is at 1.2, outside. (D) The pole is at -0.9, inside, so it is stable. (C) The pole is at 1, on the circle, so it is unstable (an accumulator). (B) z^2 - 1.5z + 0.5 = (z - 1)(z - 0.5) has a pole at 1, so it is unstable. Check for (C): the input x[n] = u[n] gives the ramp y[n] = (n+1)u[n], which is unbounded.

Common mistake: Treating a pole exactly on the unit circle as stable.

You need: Poles and stability

Q.10

MediumNAT2 marks

A causal FIR filter has the impulse response h[n]={1,2,3,2,1}h[n] = \{1, 2, 3, 2, 1\} for n=0,…,4n = 0, \dots, 4. Find its constant group delay in samples.

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 2

Key idea: A symmetric FIR filter of length N delays all frequencies by \frac{N-1}{2} samples.

The response is symmetric with length N = 5, so the group delay is \frac{N - 1}{2} = 2 samples. Explicitly, H(e^{j\Omega}) = e^{-j2\Omega}\left(3 + 4\cos\Omega + 2\cos 2\Omega\right), and the phase is -2\Omega wherever the bracket is positive. Check: 3 + 4 + 2 = 9 > 0 at \Omega = 0, and 9 = \sum h[n].

Common mistake: Using N = 5 or \frac{N}{2} = 2.5 as the delay.

You need: Linear phase, group delay

Q.11

MediumMSQ2 marks

Consider a causal FIR filter with the symmetric impulse response h[n]={1,2,3,2,1}h[n] = \{1, 2, 3, 2, 1\}. Which of the following statements are correct?

One or more options are correct.

  1. Option A: It has a constant group delay of 22 samples.
  2. Option B: Its DC gain is 99.
  3. Option C: It is BIBO stable.
  4. Option D: It has poles outside the unit circle.
Show answer and solutionHide answer and solution

Answer: (A), (B) and (C)

Key idea: An FIR filter has all its poles at the origin, so it is always stable.

(A) The length is 5 and the response is symmetric, so the delay is \frac{5-1}{2} = 2. (B) H(e^{j0}) = \sum h[n] = 1 + 2 + 3 + 2 + 1 = 9. (C) A finite sum \sum|h[n]| = 9 is finite, so it is stable. (D) False: H(z) = 1 + 2z^{-1} + 3z^{-2} + 2z^{-3} + z^{-4} = \frac{z^4 + 2z^3 + 3z^2 + 2z + 1}{z^4}, and all four poles are at z = 0. Check for (D): zero is inside the unit circle.

Common mistake: Confusing the zeros of the numerator, which can be anywhere, with the poles.

You need: Linear phase, z-domain of FIR filters

Q.12

HardNAT2 marks

The filter y[n]=x[n]−x[n−1]+x[n−2]y[n] = x[n] - x[n-1] + x[n-2] completely blocks a sinusoid at one particular frequency Ω0\Omega_0 in (0,π)(0, \pi). Find Ω0\Omega_0 in radians. Give your answer to two decimal places.

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 1.05 (accepted 1.04 to 1.05)

Key idea: The zeros of H(z) on the unit circle give notch frequencies.

H(e^{j\Omega}) = 1 - e^{-j\Omega} + e^{-j2\Omega} = e^{-j\Omega}\left(e^{j\Omega} - 1 + e^{-j\Omega}\right) = e^{-j\Omega}(2\cos\Omega - 1). It is zero when \cos\Omega = \frac{1}{2}, so \Omega_0 = \frac{\pi}{3} = 1.047. Check: at \Omega = \frac{\pi}{3}, 1 - (0.5 - 0.866j) + (-0.5 - 0.866j) = 0.

Common mistake: Taking \cos\Omega = \frac{1}{2} to mean \Omega = \frac{\pi}{6} = 0.52.

You need: Frequency response, zeros of FIR filters

Q.13

HardMCQ2 marks

The filter with H(z)=0.5−z−11−0.5z−1H(z) = \frac{0.5 - z^{-1}}{1 - 0.5z^{-1}} has the magnitude response ∣H(ejΩ)∣|H(e^{j\Omega})| equal to

  1. Option A: 0.50.5 for all Ω\Omega
  2. Option B: 11 for all Ω\Omega
  3. Option C: 22 for all Ω\Omega
  4. Option D: a value that depends on Ω\Omega
Show answer and solutionHide answer and solution

Answer: (B)

Key idea: A zero at the conjugate-reciprocal of a pole gives an all-pass filter: the zero at 2 mirrors the pole at 0.5.

Factor the numerator: \left|0.5 - e^{-j\Omega}\right| = \left|e^{-j\Omega}\right|\left|0.5e^{j\Omega} - 1\right| = \left|1 - 0.5e^{j\Omega}\right|. Since \left|1 - 0.5e^{j\Omega}\right| = \left|1 - 0.5e^{-j\Omega}\right| (complex conjugates), the numerator and denominator magnitudes are equal. So |H| = 1 for every \Omega and the filter is all-pass. Check: at \Omega = 0, H = \frac{0.5 - 1}{1 - 0.5} = -1, and at \Omega = \pi, H = \frac{0.5 + 1}{1 + 0.5} = 1.

Common mistake: Judging the gain from the pole alone and expecting low-pass behaviour.

You need: Poles and zeros, magnitude response

Q.14

HardNAT2 marks

A causal system is described by y[n]−0.5 y[n−1]=x[n]+x[n−1]y[n] - 0.5\,y[n-1] = x[n] + x[n-1]. Find ∣H(ejπ/2)∣|H(e^{j\pi/2})|. Give your answer to three decimal places.

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 1.265 (accepted 1.26 to 1.27)

Key idea: For H = \frac{N(z)}{D(z)}, |H| = \frac{|N|}{|D|} evaluated at z = e^{j\Omega}.

H(e^{j\Omega}) = \frac{1 + e^{-j\Omega}}{1 - 0.5e^{-j\Omega}}. At \Omega = \frac{\pi}{2}, e^{-j\pi/2} = -j, so H = \frac{1 - j}{1 + 0.5j}. Then |H| = \frac{\sqrt{2}}{\sqrt{1.25}} = \frac{1.4142}{1.1180} = 1.265. Check: the DC gain is \frac{2}{0.5} = 4 and the gain at \Omega = \pi is 0, so a value of 1.265 at \frac{\pi}{2} fits a low-pass shape.

Common mistake: Dividing \sqrt{2} by 1.25 instead of \sqrt{1.25}, which gives 1.131.

You need: Frequency response of an IIR filter, difference equations

Q.15

HardMSQ2 marks

Which of the following statements are correct?

One or more options are correct.

  1. Option A: A causal filter H(z)=11−az−1H(z) = \frac{1}{1 - az^{-1}} is BIBO stable if and only if ∣a∣<1|a| < 1.
  2. Option B: A causal FIR filter has all of its poles at z=0z = 0.
  3. Option C: A causal, stable IIR filter with a rational transfer function can have exactly linear phase.
  4. Option D: The frequency response of two cascaded filters is the product H1(ejΩ)H2(ejΩ)H_1(e^{j\Omega})H_2(e^{j\Omega}).
Show answer and solutionHide answer and solution

Answer: (A), (B) and (D)

Key idea: FIR filters can be exactly linear-phase, while causal rational IIR filters cannot.

(A) The impulse response is a^n u[n] and it is absolutely summable exactly when |a| < 1. (B) H(z) is a polynomial in z^{-1}, so its poles are at the origin. (C) False: exactly linear phase needs a symmetric h[n], which for an infinitely long causal response would need non-causal mirrored poles, so a causal rational IIR filter can only approximate linear phase. (D) Cascading convolves the impulse responses, which multiplies the frequency responses. Check for (D): (1 + z^{-1})(1 - z^{-1}) = 1 - z^{-2}, and at \Omega = \frac{\pi}{2} the product of gains \sqrt{2}\cdot\sqrt{2} = 2 equals |1 - e^{-j\pi}| = 2.

Common mistake: Assuming a stable IIR filter can be made exactly linear-phase by choosing its coefficients.

You need: Stability, linear phase, cascade of LTI systems

Past GATE questions on this topic