Menu Close

Sampling, DFT and FFT: UPSC Electrical Engineering Optional PYQ Solutions (1995–2026)

All 9 questions UPSC has asked on sampling, DFT and FFT in the Electrical Engineering Optional (Paper I, Signals and Systems) from 1995 to 2026, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Signals and Systems topic-wise PYQs page. Circuit diagrams have been redrawn from the question papers.

How we check these solutions

These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:

  • ✓ Checked by computer the numbers were worked out again independently in code (SymPy and NumPy: circuit equations, power balance, matrices, integrals).
  • ✓ Answer checked step by step for theory and descriptive questions, every point was checked against the standard theory.

Where a printed question is wrong, unclear or incomplete, we say so and solve the intended version.

Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.

Jump to a question (year · question number):

2026 · 4a(i) 2026 · 4a(ii) 2020 · 4a 2012 · 1c 2009 · 8a(i) 2006 · 2a(ii) 2005 · 3a(i) 2004 · 3a(ii) 1995 · 200w/9d

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

The continuous-time signal x(t)=cos(20πt+π4) is ideally sampled at a rate of 30 samples per second. The resulting sampled signal is then passed through a filter whose impulse response is h(t)=sin(πt)πt⋅cos(80πt−π2). Find the expression for the output signal of the filter.

2026 · Paper I · Q4a(i) · 15 marks

Solution

Input. x(t)=cos(20πt+π4) is a 10 Hz cosine. Its spectrum has two lines: X(f)=12ejπ/4δ(f−10)+12e−jπ/4δ(f+10).

Ideal sampling at fs=30 Hz. With xs(t)=∑x(nT)δ(t−nT): Xs(f)=fs∑kX(f−kfs). So there are lines at ±10+30k Hz: …,±10,±20,±40,±50,±70,… Each has strength fs⋅12=15. The line at +40=10+30 Hz carries phase +π/4; the line at −40 carries −π/4.

Filter. sinπtπt↔rect(f), which is 1 for |f|<12 Hz. Multiplying by cos(80πt−π2) moves it to ±40 Hz: H(f)=12e−jπ/2rect(f−40)+12ejπ/2rect(f+40). This is a narrow band-pass filter: gain 12 and phase −π/2 for 39.5<f<40.5 Hz (and the mirror band).

−70−50−40−20−101020405070lines at ±10 + 30k Hzf (Hz)
Teal arrows: lines of the sampled signal at ±10 + 30k Hz (strength 15 each). Gold: the filter passband, gain ½, 1 Hz wide around ±40 Hz.

Output. Only the lines at ±40 Hz get through: Y(f)=15⋅12[ej(π/4−π/2)δ(f−40)+e−j(π/4−π/2)δ(f+40)]. y(t)=15cos(80πt−π4). The filter picks out the first image of the 10 Hz input, at 40 Hz. (If the impulses are weighted by T instead of 1, the amplitude is 15T=0.5.)

✓ Checked by computer We passed every spectral line of the sampled signal through H(f) in code and rebuilt the output as a sum of cosines.

↑ Back to the question list

A discrete-time sequence x(n)={3,5,1,4,−3,5,−2,−2,4} of length 9 has a 9-point DFT denoted by X(k), where k=0,1,2,…,8. Another discrete-time sequence y(n) has a 9-point DFT given by Y(k)=ej4πk3X(k),k=0,1,2,…,8 Without explicitly computing DFT or inverse DFT, determine the sequence y(n).

2026 · Paper I · Q4a(ii) · 5 marks

Solution

Circular shift property. For an N-point DFT, x((n−m))N↔e−j2πkm/NX(k).

Here N=9 and ej4πk/3=ej2πk⋅6/9=e−j2πk⋅3/9 (since ej2πk=1). So m=3: y(n)=x((n−3))9. The sequence is rotated circularly 3 places to the right.

Answer. x(n)={3,5,1,4,−3,5,−2,−2,4}, so y(n)={−2,−2,4,3,5,1,4,−3,5},n=0,1,…,8.

✓ Checked by computer We took the 9-point FFT in NumPy, multiplied by the given factor and inverted.

↑ Back to the question list

A continuous-time signal x(t)=cos(2π400t) is sampled with a sampling frequency fs=1600Hz. Obtain the 4-point DFT of the sampled sequence and plot the magnitude and phase spectrum.

2020 · Paper I · Q4a · 20 marks

Solution

Samples. x(n)=cos(2π⋅4001600n)=cosπn2: x(n)={1,0,−1,0}.

4-point DFT. X(k)=∑n=03x(n)e−jπkn/2=1−e−jπk=1−(−1)k:

  • X(0)=0
  • X(1)=2
  • X(2)=0
  • X(3)=2

Spectrum.

  • Magnitude: |X(k)|={0,2,0,2}. The two non-zero bins are the 400 Hz component (k=1) and its mirror (k=3↔−400 Hz).
  • Phase: 0 for k=1 and k=3 (both values are real and positive). The phase of the zero bins is undefined; we take it as 0.
01232k|X(k)|
Magnitude spectrum |X(k)|. The phase is 0 at every k.

✓ Checked by computer We computed the 4-point DFT with NumPy’s FFT.

↑ Back to the question list

A continuous time signal is given by x(t)=Acos(8000πt)cos(2000πt) The signal is sampled with a sample period of 3×10−4 seconds. Can we recover the signal from the sampled version using an appropriate low pass filter?

2012 · Paper I · Q1c · 12 marks

Solution

Frequencies present. x(t)=Acos(8000πt)cos(2000πt)=A2[cos(10000πt)+cos(6000πt)]. So x(t) has components at 5 kHz and 3 kHz. The highest frequency is fm=5 kHz.

Sampling rate. fs=13×10−4=3333Hz. The Nyquist rate is 2fm=10 kHz, and fs=3.33 kHz is far below it.

Aliasing.

  • 5 kHz appears at |5000−3333|=1667 Hz.
  • 3 kHz appears at |3000−3333|=333 Hz.

Answer: No. A low-pass filter cannot separate the aliases from the real components, so x(t) cannot be recovered. We would need T<110000=0.1 ms.

✓ Checked by computer We rebuilt the product as a sum of cosines and computed the sampling rate and the alias frequencies in code.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

A signal x(t)=1+cos100πt is sampled with sampling interval of 0.02 second. Can the original signal be recovered from these samples?

2009 · Paper I · Q8a(i) · 5 marks

Solution

Frequency. cos100πt has fm=50 Hz. So the Nyquist rate is 2fm=100 Hz.

Sampling. Ts=0.02 s gives fs=50 Hz. This is below 100 Hz.

The samples. x(nTs)=1+cos(100π×0.02n)=1+cos(2πn)=2for every n. We sample once per cycle, always at the peak. The samples look exactly like a dc signal of value 2.

Answer: No. The 50 Hz component aliases to 0 Hz. Any reconstruction gives the constant 2, not 1+cos100πt.

✓ Checked by computer We evaluated the samples in code: every sample equals 2.

↑ Back to the question list

Explain how an analog signal can be constructed from its samples. What are the conditions for faithful reconstruction? Give any one reconstruction circuit.

2006 · Paper I · Q2a(ii) · 5 marks

Solution

Ideal reconstruction. If x(t) is band-limited to fm and sampled every T=1/fs, its samples can be passed through an ideal low-pass filter of gain T and cut-off fc=fs/2. Each sample is replaced by a sinc pulse, and the pulses add up to x(t): x(t)=∑n=−∞∞x(nT)sin[π(t−nT)/T]π(t−nT)/T. In the frequency domain, the filter keeps the base-band copy of the spectrum and removes all the images at multiples of fs.

Conditions for faithful reconstruction.

  • x(t) must be band-limited: no content above fm. In practice an anti-aliasing filter is used before the sampler.
  • The sampling rate must exceed the Nyquist rate: fs>2fm.
  • The reconstruction filter must pass up to fm and reject everything from fs−fm upward. So the cut-off is fm≤fc≤fs−fm. A guard band (fs well above 2fm) makes a practical filter possible.
  • Samples must be taken at accurate, uniform instants (low jitter), with enough amplitude resolution.

Practical method: zero-order hold. A DAC holds each sample constant for one period, giving a staircase. A smoothing low-pass filter then removes the steps. The hold has the response 1−e−sTs; it slightly droops the gain towards fs/2 (sinc shape), which can be corrected if needed.

x(nT)ZOH / DACx₀(t)LPFx̂(t)
Practical reconstruction chain.

Reconstruction circuit (sample-and-hold). Switch S closes briefly at each instant nT and charges C to the sample value. Between instants S is open, and C holds the voltage. The voltage follower buffers C, so the load does not discharge it. The output is the staircase x0(t).

S (closes at t = nT)Cx(nT)x₀(t)
A zero-order hold (sample-and-hold) circuit.
02T4T6T8T10T12T— ZOH outputt
ZOH output (teal) against the original signal (grey).

✓ Answer checked step by step We checked the reconstruction conditions and the circuit against the sampling theorem and standard practice.

↑ Back to the question list

Using the difference equation design method with a backward difference, design a digital filter to simulate the analog filter whose transfer function is H(s)=ss2+400s+2×105 using the sampling rate fs=1 kHz.

2005 · Paper I · Q3a(i) · 10 marks

Solution

Backward difference. The derivative is replaced by dydt≈y(n)−y(n−1)T⇒s→1−z−1T. With fs=1 kHz, T=10−3 s, so s=1000(1−z−1).

Substitute.

  • Numerator: s=1000(1−z−1).
  • Denominator: s2+400s+2×105=106(1−z−1)2+4×105(1−z−1)+2×105 =1.6×106−2.4×106z−1+106z−2.

Digital filter. H(z)=1000(1−z−1)1.6×106−2.4×106z−1+106z−2=6.25×10−4(1−z−1)1−1.5z−1+0.625z−2.

Difference equation. y(n)=1.5y(n−1)−0.625y(n−2)+6.25×10−4[x(n)−x(n−1)].

Check.

  • The analog poles are s=−200±j400 (stable).
  • The digital poles are z=0.75±j0.25, with |z|=0.79<1 (stable). The backward difference always maps the left half s-plane inside the unit circle.
  • Both filters are band-pass with a zero at dc (s=0↔z=1).
  • At the analog centre frequency ω0=2×105=447 rad/s the analog gain is 1/400=0.0025. The digital filter gives about 0.0017 there. The backward difference warps and damps the response because fs=1 kHz is only about 14 times the 71 Hz centre frequency. A higher sampling rate would give a closer match.

✓ Checked by computer We checked in code that H(z) equals H(s) with s = (1 − z⁻¹)/T, found the digital poles and compared the gains at the resonant frequency.

↑ Back to the question list

What do you understand by the mathematical relation between continuous and discrete system as given below? X(ejωT)=1T∑m=−∞∞XA(ω+2πTm) where X(ejωT) is the frequency response of the sequence x(nT), T is the sampling period and XA(jΩ) is the Fourier transform of the continuous-time waveform. If the analog frequency response is band limited to the range |Ω|≤π/T what will the new relation be?

2004 · Paper I · Q3a(ii) · 12 marks

Solution

What the relation says. Write Ω for analog frequency. Sampling xa(t) every T seconds gives x(nT). The spectrum of the sequence is X(ejωT)=1T∑m=−∞∞XA(j(ω+2πmT)).

  • The spectrum of the sampled signal is the analog spectrum repeated at every multiple of the sampling frequency Ωs=2π/T.
  • Each copy is scaled by 1/T.
  • So the discrete-time spectrum is periodic in ω with period 2π/T (period 2π in ωT).

Where it comes from. Ideal sampling multiplies xa(t) by the impulse train ∑nδ(t−nT). The train’s transform is 2πT∑mδ(Ω−2πmT). Multiplication in time is convolution in frequency, which places a copy of XA at every impulse.

Aliasing. If XA extends beyond π/T, neighbouring copies overlap. Then the sum in any band contains parts of several copies, and XA cannot be recovered from X(ejωT).

Band-limited case, |Ω|≤π/T. The copies do not overlap. In the base band only the m=0 term is present: X(ejωT)=1TXA(jω),|ω|≤πT. So in this band the discrete-time spectrum is just the analog spectrum scaled by 1/T. xa(t) can be recovered exactly with an ideal low-pass filter of gain T and cut-off π/T. This is the sampling theorem.

−2π/T−π/Tπ/T2π/T1/TωX(e^jωT)
Band-limited case: the copies do not overlap.

✓ Answer checked step by step We checked the explanation against the standard derivation of the spectrum of a sampled signal.

↑ Back to the question list

Select any three of the following statement and indicate with justification whether they are correct or incorrect. Your answer must not exceed 200 words for each statement. Digital processing is used widely because it provides economic and rapid manipulation of data.

1995 · Paper I · Q200w/9d · 20 marks

Solution

Verdict: Correct, with one qualification.

Why it is economic.

  • One programmable DSP chip or microcontroller can do filtering, control, coding and analysis that would need many separate analog circuits. Changing the function is a software change.
  • VLSI has made digital hardware very cheap and small, and its cost keeps falling.
  • Digital circuits need no tuning or periodic recalibration, because their behaviour does not drift with temperature, ageing or component tolerance.
  • Data can be stored, copied and sent without loss, and the same result is reproduced every time.

Why it is rapid.

  • Fast algorithms such as the FFT, and dedicated multiply-accumulate hardware, process large blocks of data in real time.
  • Many channels can share one processor by time-multiplexing.

Other reasons for its wide use. Accuracy can be set simply by the word length. It can do things analog circuits cannot, such as linear-phase filters, adaptive filters and error-correcting codes.

Qualification. For very high frequencies (RF front ends) and very simple functions, analog circuits are still faster or cheaper. Digital processing also needs ADCs, DACs and anti-aliasing filters. So the statement is correct as a general reason, not an absolute one.

✓ Answer checked step by step We checked each argument against the standard advantages and limits of digital signal processing.

↑ Back to the question list

More on Signals and Systems

Questions: UPSC Civil Services (Main) Examination, Electrical Engineering Paper I, 1995–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted