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 the DFT is the alternating sum .
- In circular convolution, the indices wrap around modulo .
- Zero padding interpolates the spectrum; it does not add information. Aliasing is avoided when .
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.
Related
Q.1
EasyMCQ1 mark
The 4-point DFT of the sequence for is
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 (), find the 4-point DFT coefficient .
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 points, counting ?
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 -point DFT of a real sequence are correct?
One or more options are correct.
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 kHz is analysed with a 512-point DFT. The spacing between adjacent DFT bins in Hz is
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 and for . Let be the 4-point circular convolution of and . Find .
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 is to be linearly convolved with a sequence of length using DFTs. What is the minimum DFT length for which the product of DFTs gives the linear convolution exactly?
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 , find , the magnitude of its 4-point DFT coefficient at . 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 is . Find the energy of .
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.
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 point DFT, which needs complex multiplications, with a radix-2 FFT, which needs . 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 is placed in the input slot with index (slots numbered to )?
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 is sampled at kHz and samples are taken. The 64-point DFT has its peaks at and . Find the magnitude .
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 () is zero-padded to length and its 8-point DFT is computed. Find . 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 and for . The 4-point circular convolution is
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
- GATE 2024 EC, Q.59: Repeated DFT (2 marks, NAT)