DFT and FFT: GATE ECE practice questions with solutions

This topic covers DFT values, circular convolution, zero padding, bin spacing, bit reversal and FFT operation counts. The 15 original questions follow the GATE EC format: 5 MCQ, 2 MSQ and 8 NAT, from 5 easy, 7 medium and 3 hard.

Three ideas to know:

  • At k=N/2k = N/2 the DFT is the alternating sum ∑(−1)nx[n]\sum (-1)^n x[n].
  • In circular convolution, the indices wrap around modulo NN.
  • Zero padding interpolates the spectrum; it does not add information. Aliasing is avoided when N≥L+M−1N \ge L + M - 1.

It helps GATE EC and ECE students revising Signals and Systems for the exam or a semester test. Helpful background: DFT definition and Circular convolution. Start with the 5 easy questions, then work up to the 3 hard ones.

Q.1

EasyMCQ1 mark

The 4-point DFT of the sequence x[n]={1,0,0,0}x[n] = \{1, 0, 0, 0\} for n=0,1,2,3n = 0, 1, 2, 3 is

  1. Option A: X[k]={1,0,0,0}X[k] = \{1, 0, 0, 0\}
  2. Option B: X[k]={1,1,1,1}X[k] = \{1, 1, 1, 1\}
  3. Option C: X[k]={4,0,0,0}X[k] = \{4, 0, 0, 0\}
  4. Option D: X[k]={1,j,−1,−j}X[k] = \{1, j, -1, -j\}
Show answer and solutionHide answer and solution

Answer: (B)

Key idea: The DFT of a unit impulse at n=0 is 1 for all k.

X[k] = \sum_n x[n]e^{-j2\pi kn/4} = x[0] = 1 for every k, because only the n=0 term is non-zero and its exponential is 1. Check: the inverse DFT of \{1,1,1,1\} is \frac{1}{4}\cdot 4 = 1 at n = 0 and 0 at other n, which returns the impulse.

Common mistake: Confusing this with the DFT of a constant sequence, which is \{4, 0, 0, 0\} (option C).

You need: DFT definition, unit impulse

Q.2

EasyNAT1 mark

For the sequence x[n]={1,2,3,4}x[n] = \{1, 2, 3, 4\} (n=0,1,2,3n = 0, 1, 2, 3), find the 4-point DFT coefficient X[2]X[2].

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: −2

Key idea: At k = N/2 the DFT is the alternating sum \sum (-1)^n x[n].

For N = 4, k = 2: e^{-j2\pi\cdot 2n/4} = e^{-j\pi n} = (-1)^n. So X[2] = 1 - 2 + 3 - 4 = -2. Check: the full DFT is X = \{10, -2 + 2j, -2, -2 - 2j\}, and \sum|X|^2 = 100 + 8 + 4 + 8 = 120 = 4 \times 30, which matches Parseval.

Common mistake: Adding all samples (that is X[0] = 10).

You need: DFT definition, powers of e^{-j\pi}

Q.3

EasyNAT1 mark

How many complex multiplications does a radix-2 FFT need for N=64N = 64 points, counting N2log⁡2N\frac{N}{2}\log_2 N?

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 192

Key idea: A radix-2 FFT has \log_2 N stages of \frac{N}{2} butterflies, each with one complex multiplication.

\frac{N}{2}\log_2 N = 32 \times 6 = 192. Check: there are \log_2 64 = 6 stages with \frac{64}{2} = 32 butterflies each, and each butterfly has one complex multiplication, so 6 \times 32 = 192.

Common mistake: Using the direct DFT count N^2 = 4096, or forgetting the factor \frac{1}{2} and answering N\log_2 N = 384.

You need: Radix-2 FFT structure, butterflies

Q.4

EasyMSQ1 mark

Which of the following statements about the NN-point DFT X[k]X[k] of a real sequence x[n]x[n] are correct?

One or more options are correct.

  1. Option A: X[N−k]=X∗[k]X[N - k] = X^*[k] for 1≤k≤N−11 \le k \le N - 1
  2. Option B: X[0]X[0] equals ∑n=0N−1x[n]\sum_{n=0}^{N-1} x[n]
  3. Option C: X[k]X[k] is periodic in kk with period NN
  4. Option D: X[0]X[0] is always zero
Show answer and solutionHide answer and solution

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

Key idea: Real input gives conjugate-symmetric DFT; X[0] is the sum of the samples; X[k] is N-periodic.

(A) For real x, conjugating the DFT sum gives X^*[k] = \sum x[n]e^{+j2\pi kn/N} = X[-k] = X[N - k], so it is true. (B) Putting k=0 makes every exponential 1, so X[0] is the sum of the samples. (C) e^{-j2\pi(k+N)n/N} = e^{-j2\pi kn/N}, so it is periodic. (D) X[0] is zero only for a sequence with zero sum, so it is not always zero.

Common mistake: Thinking X[0] is the "frequency-zero term" and so must vanish.

You need: DFT definition, conjugate symmetry

Q.5

EasyMCQ1 mark

A signal sampled at fs=8f_s = 8 kHz is analysed with a 512-point DFT. The spacing between adjacent DFT bins in Hz is

  1. Option A: 31.2531.25 Hz
  2. Option B: 15.62515.625 Hz
  3. Option C: 7.81257.8125 Hz
  4. Option D: 62.562.5 Hz
Show answer and solutionHide answer and solution

Answer: (B)

Key idea: Bin spacing is \frac{f_s}{N}, and it is set by the DFT length, not by the signal.

The bin k corresponds to the frequency \frac{k f_s}{N}, so the spacing is \frac{f_s}{N} = \frac{8000}{512} = 15.625 Hz. Check: 512 bins span 8 kHz, so 512 \times 15.625 = 8000 Hz.

Common mistake: Dividing by \frac{N}{2} (the number of unique bins), which gives 31.25 Hz (option A).

You need: Relation between DFT index and frequency, sampling frequency

Q.6

MediumNAT2 marks

Let x[n]={1,2,3,4}x[n] = \{1, 2, 3, 4\} and h[n]={1,2,0,0}h[n] = \{1, 2, 0, 0\} for n=0,1,2,3n = 0, 1, 2, 3. Let y[n]y[n] be the 4-point circular convolution of x[n]x[n] and h[n]h[n]. Find y[0]y[0].

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 9

Key idea: In circular convolution, the indices wrap around modulo N.

y[0] = \sum_{k=0}^{3}h[k]\,x[(0 - k) \bmod 4] = h[0]x[0] + h[1]x[3] = 1 \cdot 1 + 2 \cdot 4 = 9. The full result is y = \{9, 4, 7, 10\}. Check: \sum y = 30 = (\sum x)(\sum h) = 10 \times 3, which is the DFT relation Y[0] = X[0]H[0].

Common mistake: Computing the linear convolution value y[0] = x[0]h[0] = 1 and ignoring the wrap-around term.

You need: Circular convolution, modulo indexing

Q.7

MediumMCQ2 marks

A sequence of length 55 is to be linearly convolved with a sequence of length 44 using DFTs. What is the minimum DFT length NN for which the product of DFTs gives the linear convolution exactly?

  1. Option A: 88
  2. Option B: 55
  3. Option C: 44
  4. Option D: 99
Show answer and solutionHide answer and solution

Answer: (A)

Key idea: Choose N \ge L + M - 1 to avoid time-domain aliasing.

The linear convolution has length 5 + 4 - 1 = 8. If N is smaller than this, the circular convolution wraps (aliases) the tail onto the start. With N = 8 nothing wraps, so the DFT product equals the linear convolution. Check: with N = 7 the last sample would add onto sample 0.

Common mistake: Using L + M = 9, forgetting the "-1".

You need: Linear and circular convolution, zero padding

Q.8

MediumNAT1 mark

For x[n]={1,2,3,4}x[n] = \{1, 2, 3, 4\}, find ∣X[1]∣|X[1]|, the magnitude of its 4-point DFT coefficient at k=1k = 1. Give your answer to three decimal places.

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 2.828 (accepted 2.82 to 2.83)

Key idea: Evaluate the DFT sum with e^{-j\pi k n/2} values 1, -j, -1, j for k=1.

X[1] = 1 + 2e^{-j\pi/2} + 3e^{-j\pi} + 4e^{-j3\pi/2} = 1 - 2j - 3 + 4j = -2 + 2j. So |X[1]| = \sqrt{4 + 4} = 2\sqrt{2} = 2.828. Check: |X[3]| = |X[1]| for a real input, and \sum|X|^2 = 100 + 8 + 4 + 8 = 120 = 4 \times 30.

Common mistake: Using e^{+j\ldots} (the inverse-DFT sign), which gives the conjugate. The magnitude is the same, but the phase is wrong.

You need: DFT definition, complex magnitude

Q.9

MediumNAT2 marks

The 4-point DFT of a sequence x[n]x[n] is X[k]={6, 2j, −2, −2j}X[k] = \{6,\ 2j,\ -2,\ -2j\}. Find the energy ∑n=03∣x[n]∣2\sum_{n=0}^{3}|x[n]|^2 of x[n]x[n].

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 12

Key idea: DFT Parseval: \sum|x[n]|^2 = \frac{1}{N}\sum|X[k]|^2.

Parseval's relation for the DFT is \sum|x[n]|^2 = \frac{1}{N}\sum|X[k]|^2. Here \sum|X|^2 = 36 + 4 + 4 + 4 = 48, so the energy is \frac{48}{4} = 12. Check by inverting: x[n] = \frac{1}{4}\sum X[k]e^{j\pi kn/2} gives x = \{1, 1, 1, 3\}, whose energy is 1 + 1 + 1 + 9 = 12.

Common mistake: Forgetting the \frac{1}{N}, which gives 48.

You need: Parseval's relation, inverse DFT

Q.10

HardMSQ2 marks

Which of the following statements are correct?

One or more options are correct.

  1. Option A: For a real sequence of even length NN, the DFT coefficient X[N/2]X[N/2] is real.
  2. Option B: If x[n]x[n] has length LL and h[n]h[n] has length MM, their NN-point circular convolution equals their linear convolution whenever N≥L+M−1N \ge L + M - 1.
  3. Option C: Zero-padding a length-NN sequence to 2N2N points before taking the DFT adds new information about the underlying signal.
  4. Option D: The 8-point DFT of x[n]=(−1)nx[n] = (-1)^n (n=0,…,7n = 0, \dots, 7) is non-zero only at k=4k = 4.
Show answer and solutionHide answer and solution

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

Key idea: Zero padding interpolates the spectrum; it does not add information. Aliasing is avoided when N \ge L + M - 1.

(A) X[N/2] = \sum x[n](-1)^n is a sum of real numbers, so it is real. (B) The linear convolution has length L + M - 1, so no wrap-around occurs when N is at least that. (C) False: zero padding only samples the same DTFT at more points (interpolation); it gives no new information and does not improve true resolution. (D) (-1)^n = e^{j2\pi\cdot 4n/8}, so X[k] = 8\,\delta[k - 4], which is non-zero only at k = 4.

Common mistake: Believing zero padding improves frequency resolution.

You need: Symmetry of the DFT, circular convolution, zero padding

Q.11

MediumNAT2 marks

Compare the direct computation of an N=1024N = 1024 point DFT, which needs N2N^2 complex multiplications, with a radix-2 FFT, which needs N2log⁡2N\frac{N}{2}\log_2 N. By what factor does the FFT reduce the number of complex multiplications? Give your answer to one decimal place.

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 204.8 (accepted 204 to 205.5)

Key idea: The FFT speed-up is \frac{2N}{\log_2 N} in complex multiplications.

Direct: 1024^2 = 1{,}048{,}576. FFT: 512 \times 10 = 5120. The ratio is \frac{1{,}048{,}576}{5120} = 204.8. Check: the ratio simplifies to \frac{2N}{\log_2 N} = \frac{2048}{10} = 204.8.

Common mistake: Comparing against N\log_2 N = 10240, which gives 102.4.

You need: Operation count of direct DFT and radix-2 FFT

Q.12

MediumMCQ1 mark

In an 8-point radix-2 decimation-in-time FFT, the inputs are fed in bit-reversed order. Which sample x[⋅]x[\cdot] is placed in the input slot with index 33 (slots numbered 00 to 77)?

  1. Option A: x[3]x[3]
  2. Option B: x[6]x[6]
  3. Option C: x[5]x[5]
  4. Option D: x[4]x[4]
Show answer and solutionHide answer and solution

Answer: (B)

Key idea: DIT FFT input order is the bit-reversal of the index.

Slot 3 in 3-bit binary is 011. Reversing the bits gives 110, which is 6. So x[6] sits in slot 3. Check: the full input order is x[0], x[4], x[2], x[6], x[1], x[5], x[3], x[7], and slot 3 is x[6].

Common mistake: Reversing the order of the whole sequence (7 - 3 = 4), which gives x[4] (option D).

You need: Radix-2 DIT FFT, binary representation

Q.13

MediumNAT2 marks

The signal x(t)=cos⁡(2π⋅2250 t)x(t) = \cos(2\pi \cdot 2250\,t) is sampled at fs=8f_s = 8 kHz and N=64N = 64 samples are taken. The 64-point DFT has its peaks at k=18k = 18 and k=46k = 46. Find the magnitude ∣X[18]∣|X[18]|.

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 32

Key idea: A unit-amplitude cosine that fits an integer number of cycles in N samples gives two DFT peaks of height \frac{N}{2}.

The digital frequency is \frac{2250}{8000} = \frac{9}{32} = \frac{18}{64} cycles per sample, so it falls exactly on bin 18 with no leakage. Then x[n] = \frac{1}{2}e^{j2\pi 18n/64} + \frac{1}{2}e^{-j2\pi 18n/64}, and the DFT gives X[18] = \frac{N}{2} = 32. Check using Parseval: \sum|X|^2 = 2 \times 32^2 = 2048, and N\sum x^2 = 64 \times (64 \times \frac{1}{2}) = 2048.

Common mistake: Forgetting the \frac{1}{2} from Euler's formula, which gives 64.

You need: DFT of sinusoids, bin frequency

Q.14

HardNAT2 marks

The sequence x[n]={1,2,3,4}x[n] = \{1, 2, 3, 4\} (n=0,1,2,3n = 0, 1, 2, 3) is zero-padded to length 88 and its 8-point DFT X8[k]X_8[k] is computed. Find ∣X8[1]∣|X_8[1]|. Give your answer to two decimal places.

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 7.25 (accepted 7.24 to 7.26)

Key idea: The 8-point DFT of a zero-padded length-4 sequence samples the DTFT at \omega = \frac{2\pi k}{8}.

X_8[1] = \sum_{n=0}^{3}x[n]e^{-j\pi n/4} = 1 + 2e^{-j\pi/4} + 3e^{-j\pi/2} + 4e^{-j3\pi/4}. The real part is 1 + \sqrt{2} - 2\sqrt{2} = 1 - \sqrt{2}, and the imaginary part is -\sqrt{2} - 3 - 2\sqrt{2} = -(3 + 3\sqrt{2}). So |X_8[1]|^2 = (1 - \sqrt{2})^2 + (3 + 3\sqrt{2})^2 = 30 + 16\sqrt{2} = 52.63, giving |X_8[1]| = 7.25. Check using the autocorrelation: |X|^2 = 30 + 2[20\cos\omega + 11\cos 2\omega + 4\cos 3\omega] at \omega = \frac{\pi}{4} equals 30 + 2[14.142 + 0 - 2.828] = 52.63.

Common mistake: Using the 4-point value |X_4[1]| = 2.83, which is the DTFT sampled at \omega = \frac{\pi}{2}, not \frac{\pi}{4}.

You need: Zero padding, DTFT sampling, complex arithmetic

Q.15

HardMCQ2 marks

Let x[n]={1,1,1,1}x[n] = \{1, 1, 1, 1\} and h[n]={1,1,1,0}h[n] = \{1, 1, 1, 0\} for n=0,1,2,3n = 0, 1, 2, 3. The 4-point circular convolution y[n]=x[n]⊛h[n]y[n] = x[n] \circledast h[n] is

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

Answer: (C)

Key idea: Circular convolution is the linear convolution with the tail wrapped around (aliased) onto the start when N < L + M - 1.

The linear convolution is \{1, 2, 3, 3, 2, 1\} (length 6). The 4-point circular convolution wraps the last two samples onto the first two: y[0] = 1 + 2 = 3, y[1] = 2 + 1 = 3, y[2] = 3, y[3] = 3. So y = \{3, 3, 3, 3\}. Check: \sum y = 12 = 4 \times 3, and in the DFT domain Y[k] = X[k]H[k] with X[k] = 0 for k \ne 0, so y must be constant, equal to \frac{X[0]H[0]}{4} = \frac{4 \times 3}{4} = 3.

Common mistake: Truncating the linear convolution to its first four samples, which gives \{1, 2, 3, 3\} (option A).

You need: Circular convolution, time-domain aliasing, DFT convolution property

Past GATE questions on this topic