wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Digital Signal Processing Quiz

Total questions: 100

Worksheet time: 50mins

Name
Class
Date
1.

Which tool is described as powerful in DSP according to the introduction?

a)

Digital filter

b)

Analog filter

c)

Oscilloscope

d)

Microcontroller

2.

What is the primary use of a digital filter in DSP?

a)

To amplify signals

b)

To discriminate certain variables of the input such as frequency

c)

To convert analog signals to digital

d)

To store data

3.

Filters are normally classified according to which characteristic of the signal?

a)

Amplitude

b)

Frequency

c)

Phase

d)

Voltage

4.

Which of the following is NOT a type of filter mentioned in the introduction?

a)

Low pass

b)

High pass

c)

Band pass

d)

Peak pass

5.

According to the introduction, which types of filters will the chapter focus on designing?

a)

Band stop and notch filters

b)

IIR and FIR low pass filters

c)

High pass and all pass filters

d)

Analog and digital filters

6.

Filters are classified according to frequency characteristics of the signal because:

a)

frequency characteristics determine how filters affect different components of a signal, allowing selective enhancement or suppression of certain frequencies, which is essential in DSP applications.

b)

filters are only used for voltage control.

c)

frequency classification is easier to implement in hardware.

d)

all signals have the same frequency.

7.

Which type of ideal filter allows frequencies below a certain cutoff frequency to pass through while attenuating higher frequencies?

a)

Low pass filter

b)

High pass filter

c)

Bandpass filter

d)

Band stop filter

8.

What is the main characteristic of a high pass filter in terms of frequency response?

a)

It passes frequencies above a certain cutoff frequency

b)

It passes frequencies below a certain cutoff frequency

c)

It passes frequencies within a specific band

d)

It blocks all frequencies

9.

If you want to allow only a specific range of frequencies to pass and block all others, which ideal filter should you use?

a)

Bandpass filter

b)

Low pass filter

c)

High pass filter

d)

Band stop filter

10.

Which ideal filter is designed to block a specific range of frequencies while allowing frequencies outside that range to pass?

a)

Band stop filter

b)

Low pass filter

c)

High pass filter

d)

Bandpass filter

11.

Given the frequency response of an ideal low pass filter, how would you determine the cutoff frequency from its graph?

a)

The cutoff frequency is where the response drops from 1 to 0

b)

The cutoff frequency is where the response rises from 0 to 1

c)

The cutoff frequency is at the center of the passband

d)

The cutoff frequency is at the maximum frequency shown

12.

Which type of filter allows all frequencies to pass through without attenuation?

a)

All pass filter

b)

Notch filter

c)

Low pass filter

d)

High pass filter

13.

What is the main function of a notch filter?

a)

To allow all frequencies to pass

b)

To block a specific range of frequencies

c)

To amplify all frequencies

d)

To block all frequencies

14.

Given a signal with unwanted noise at a specific frequency, which filter would be most effective in removing that noise?

a)

All pass filter

b)

Notch filter

c)

Band pass filter

d)

Low pass filter

15.

Which of the following is a typical constraint specified for the magnitude and/or phase of a digital filter?

a)

A. |H(exp(jw))|

b)

B. h_D(n)

c)

C. N

d)

D. h(n)

16.

What does the filter order (N) represent in the context of filter specifications?

a)

A. The number of filter coefficients

b)

B. The frequency response of the filter

c)

C. The phase shift of the filter

d)

D. The step response of the filter

17.

If you are given constraints on the impulse response h_D(n) of a filter, which aspect of the filter are you most likely trying to control?

a)

A. The filter's time-domain behavior

b)

B. The filter's frequency-domain magnitude only

c)

C. The filter's phase response only

d)

D. The filter's order

18.

Suppose you are designing a filter and you are asked to find the filter coefficients h(n) that meet certain specifications. Which steps should you consider before determining h(n)?

a)

A. Specify magnitude/phase constraints, step response constraints, impulse response constraints, and filter order

b)

B. Only specify the filter order

c)

C. Only specify the magnitude response

d)

D. Only specify the phase response

19.

A filter designer is given strict requirements on the filter's step response, from high to low. What is the likely purpose of these constraints?

a)

A. To control how the filter responds to sudden changes in input

b)

B. To minimize the filter order

c)

C. To maximize the filter's frequency response

d)

D. To ignore the impulse response

20.

Which of the following best describes an FS Filter?

a)

Frequency selective filter

b)

Amplitude selective filter

c)

Phase selective filter

d)

Time selective filter

21.

Why are ideal filters not physically realizable?

a)

They are noncausal

b)

They are too expensive

c)

They require infinite energy

d)

They are too simple

22.

According to the characteristics of practical FS filters, what is true about the frequency response H(w)?

a)

It cannot be zero except at finite sets of points in frequency

b)

It is always zero for all frequencies

c)

It is constant for all frequencies

d)

It is always infinite

23.

Which statement about the magnitude |H(w)| of a practical FS filter is correct?

a)

It cannot be constant in any finite range of frequency

b)

It is always constant for all frequencies

c)

It is always zero for all frequencies

d)

It is always infinite for all frequencies

24.

What is a consequence of causality in the design of frequency selective filters?

a)

The transition band cannot be infinitely sharp

b)

The filter can have an infinitely sharp transition band

c)

The filter can be noncausal

d)

The filter can have zero magnitude everywhere

25.

Suppose you are designing a practical FS filter. Which property must you consider due to causality?

a)

The transition band must have a finite width

b)

The filter can have an ideal impulse response

c)

The frequency response can be zero everywhere

d)

The magnitude can be constant for all frequencies

26.

Which of the following conditions must be satisfied for a filter to be considered causal?

a)

The output is bounded for any bounded input.

b)

All the poles of H(z) are inside the unit circle.

c)

h_n = 0 for n < 0.

d)

The sum of |h_n| is less than a constant A.

27.

What is the definition of a stable filter?

a)

A filter whose impulse response is zero for negative indices.

b)

A filter whose output is bounded for any bounded input.

c)

A filter with all zeros inside the unit circle.

d)

A filter with a finite impulse response.

28.

Which of the following is a condition for the stability of a filter in terms of its poles?

a)

All the zeros of H(z) are inside the unit circle.

b)

All the poles of H(z) are inside the unit circle.

c)

The impulse response is zero for n < 0.

d)

The filter is non-causal.

29.

Why are FIR (Finite Impulse Response) filters always stable?

a)

Because their impulse response is infinite.

b)

Because all their poles are outside the unit circle.

c)

Because their impulse response is always bounded and finite.

d)

Because they are always non-causal.

30.

Given the condition n=+hn<A\sum_{n=-\infty}^{+\infty} |h_n| < A , what does this imply about the filter?

a)

The filter is causal.

b)

The filter is stable.

c)

The filter is non-causal.

d)

The filter is unstable.

31.

Suppose a filter has some poles outside the unit circle. What can you conclude about its stability?

a)

The filter is always stable.

b)

The filter is always causal.

c)

The filter is not stable.

d)

The filter is always FIR.

32.

Which region of a practical FS filter is characterized by a small variation in amplitude within the passband?

a)

Passband ripple

b)

Stopband

c)

Transition band

d)

Cutoff frequency

33.

In the context of practical FS filters, what does the transition band refer to?

a)

The region between passband and stopband

b)

The region of maximum attenuation

c)

The region of minimum attenuation

d)

The region of constant amplitude

34.

Why are all frequencies normalized to a sampling frequency (fsamp) in the analysis of practical FS filters?

a)

To simplify calculations and comparisons

b)

To increase the filter's bandwidth

c)

To reduce the filter's order

d)

To eliminate the need for a stopband

35.

Which mathematical expression represents the frequency response H(exp(j2πf)) of a FIR filter?

a)

H(exp(j2πf)) = n=h(n)exp(j2πfnTs)\sum_{n=-\infty}^{\infty} h(n)exp(-j2\pi fnTs)

b)

H(exp(j2πf)) = h(n)exp(j2πfnTs)

c)

H(exp(j2πf)) = n=0h(n)exp(j2πfnTs)\sum_{n=0}^{\infty} h(n)exp(j2\pi fnT_s)

d)

H(exp(j2πf)) = h(n)exp(-j2πfnTs)

36.

For n = 0, what is the value of h(n) in the FIR filter equations shown?

a)

(2fc) / fs

b)

(fc) / (2fs)

c)

(2fs) / fc

d)

(fs) / (2fc)

37.

For |n| > 0, which formula correctly gives h(n) for the FIR filter?

a)

(2fc / fs) * [sin(2πfc nTs) / (2πfc nTs)]

b)

(fc / fs) * [sin(2πfc nTs) / (πfc nTs)]

c)

(2fs / fc) * [sin(2πfc nTs) / (2πfc nTs)]

d)

(2fc / fs) * [sin(πfc nTs) / (2πfc nTs)]

38.

Given the FIR filter impulse response h(n), how would you compute the frequency response H(exp(j2πf))?

a)

By summing h(n) multiplied by exp(-j2πfnTs) over all n

b)

By multiplying h(n) by exp(j2πfnTs) for n = 0 only

c)

By integrating h(n) over the interval [0, fs]

d)

By differentiating h(n) with respect to n

39.

What does FIR stand for in the context of signal processing?

a)

Finite Impulse Response

b)

Fast Input Response

c)

Frequency Impulse Ratio

d)

Filtered Input Response

40.

Based on the graph shown, what does the y-axis most likely represent in the context of FIR filters?

a)

Amplitude

b)

Frequency

c)

Time

d)

Phase

41.

In the context of FIR filters, what is the significance of the central peak at sample 0 in the impulse response graph?

a)

It represents the main response of the filter to an impulse input.

b)

It shows the filter's frequency cutoff.

c)

It indicates the filter's phase shift.

d)

It marks the end of the filter's response.

42.

Which function can be used to design a low pass filter (LPF) from an ideal LPF?

a)

Window function

b)

Fourier transform

c)

Laplace transform

d)

Z-transform

43.

What happens to the transition width between passband and stopband as the length of the window increases in FIR filter design?

a)

The transition width decreases

b)

The transition width increases

c)

The transition width remains the same

d)

The transition width becomes infinite

44.

Increasing the length of the window in FIR filter design affects the transition width between passband and stopband because:

a)

It makes the filter unstable, affecting the transition width randomly.

b)

It allows for a sharper cutoff, reducing the transition width.

c)

It causes more distortion, increasing the transition width.

d)

It has no effect on the transition width.

45.

What is the result of multiplying the impulse response by the window function in FIR filter design?

a)

It creates a windowed filter.

b)

It increases the filter order.

c)

It removes all ripples from the frequency response.

d)

It converts the filter to IIR.

46.

According to the frequency response of the windowed filter, what is observed at the pass band and stopband?

a)

There is a ripple.

b)

The response is perfectly flat.

c)

The filter attenuates all frequencies.

d)

The filter amplifies all frequencies.

47.

Why is a window function applied to the impulse response in FIR filter design?

a)

To control the frequency response characteristics.

b)

To increase the sampling rate.

c)

To convert the filter to analog.

d)

To remove the impulse response.

48.

Suppose you observe ripples in both the pass band and stopband of a windowed FIR filter’s frequency response. What could be a possible reason for these ripples?

a)

The choice of window function affects the ripple characteristics.

b)

The filter is not causal.

c)

The impulse response is zero.

d)

The filter is infinite in length.

49.

What is the primary purpose of applying a window function to a sinc function in FIR filter design?

a)

To reduce spectral leakage and improve filter performance

b)

To increase the amplitude of the impulse response

c)

To make the filter non-linear

d)

To remove all frequencies above a certain threshold

50.

Which plot would you examine to analyze the frequency response of a windowed impulse response in FIR filter design?

a)

The plot labeled "frequency response of windowed CIR"

b)

The plot labeled "sinc function"

c)

The plot labeled "window function"

d)

The plot labeled "windowed CIR"

51.

If you use a different range for the sinc function in FIR filter design, what aspect of the filter's performance are you most likely to affect?

a)

The width and shape of the filter's frequency response

b)

The color of the filter

c)

The type of window function used

d)

The number of zeros in the impulse response

52.

Which filter type has an impulse response of 2sin(αn)αn2 \frac{\sin(\alpha n)}{\alpha n} for nαn \neq \alpha ?

a)

LPF

b)

HPF

c)

BPF

d)

BSF

53.

What is the impulse response of a High Pass Filter (HPF) at $ n = \alpha $?

a)

2

b)

1 - 2

c)

2(\alpha)

d)

-2(\alpha)

54.

Which filter type's impulse response for $ n = \alpha $ is given by $ 2(\alpha) $?

a)

LPF

b)

HPF

c)

BPF

d)

BSF

55.

If $ \alpha = \omega_c/\omega_s $, which filter type has an impulse response of $ -2(\alpha) $ at $ n = \alpha $?

a)

LPF

b)

HPF

c)

BPF

d)

BSF

56.

Given the impulse response formulas, which filter type involves the subtraction of two sinc functions in its general expression for $ n \neq \alpha $?

a)

LPF

b)

HPF

c)

BPF

d)

None of the above

57.

Which window type has the highest stopband attenuation according to the table?

a)

Rectangular

b)

Hanning

c)

Hamming

d)

Kaiser (β = 10)

58.

What is the window function for the Hanning window?

a)

0.5 - 0.5cos(2πn/N)

b)

0.54 - 0.46cos(2πn/N)

c)

1

d)

0.42 - 0.5cos(2πn/N) + 0.08cos(4πn/N)

59.

Which window type has a normalized transition width of 0.9/N?

a)

Rectangular

b)

Hamming

c)

Blackman

d)

Kaiser (β = 2)

60.

Compare the stopband attenuation of the Hamming and Blackman windows. Which one provides greater attenuation?

a)

Hamming

b)

Blackman

c)

They are equal

d)

Rectangular

61.

If you need a window with a normalized transition width of approximately 3.3/N, which window type should you choose?

a)

Hamming

b)

Hanning

c)

Rectangular

d)

Blackman

62.

The parameter β in the Kaiser window affects the stopband attenuation and transition width. What is the effect of increasing β?

a)

Increasing β increases stopband attenuation and transition width.

b)

Increasing β decreases stopband attenuation and transition width.

c)

Increasing β increases stopband attenuation but decreases transition width.

d)

Increasing β decreases stopband attenuation but increases transition width.

63.

Which mathematical function is used in the Kaiser window definition?

a)

Modified Bessel function of the first kind

b)

Sine function

c)

Exponential function

d)

Logarithmic function

64.

What is the window function for the Rectangular window?

a)

1

b)

0.5 - 0.5cos(2πn/N)

c)

0.54 - 0.46cos(2πn/N)

d)

0.42 - 0.5cos(2πn/N) + 0.08cos(4πn/N)

65.

Which window type would you select for the narrowest normalized transition width among those listed?

a)

Kaiser (β = 2)

b)

Rectangular

c)

Hanning

d)

Blackman

66.

What is the main purpose of using different window functions in signal processing?

a)

To control the trade-off between main lobe width and side lobe attenuation in frequency analysis

b)

To increase the amplitude of the signal

c)

To reduce the sampling rate

d)

To convert analog signals to digital

67.

What is the passband cut-off frequency specified for the FIR filter in the example?

a)

0.4π

b)

0.6π

c)

0.2π

d)

0.8π

68.

Which value is given for the stopband cut-off frequency in the FIR filter design specifications?

a)

0.6π

b)

0.4π

c)

0.8π

d)

0.2π

69.

What is the stopband ripple deviation specified for the FIR filter in the example?

a)

0.316 x 10⁻³

b)

0.316 x 10⁻²

c)

0.316 x 10⁻⁴

d)

0.316 x 10⁻¹

70.

If you are asked to design a lowpass FIR filter using a window function, which of the following steps would you most likely perform first?

a)

Determine the filter specifications such as cut-off frequencies and ripple deviation

b)

Implement the filter in hardware

c)

Test the filter with random signals

d)

Ignore the window function and use a different method

71.

Given the passband cut-off frequency (0.4π) and stopband cut-off frequency (0.6π), what can you infer about the transition band of the FIR filter?

a)

The transition band is between 0.4π and 0.6π

b)

The transition band is below 0.4π

c)

The transition band is above 0.6π

d)

The transition band is not specified

72.

What is the range of |H(exp(jω))| given for 0 < |ω| << 0.25π?

a)

0.98 << |H(exp(jω))| << 1.02

b)

|H(exp(jω))| << 0.0003

c)

0.25 << |H(exp(jω))| << 0.98

d)

1.02 << |H(exp(jω))| << 1.50

73.

For which range of |ω| is |H(exp(jω))| << 0.0003 given?

a)

0.298π < |ω| << π

b)

0 < |ω| << 0.25π

c)

0.25π < |ω| << 0.98π

d)

0 < |ω| << π

74.

Based on the example, what does the notation |H(exp(jω))| represent in the context of the given ranges?

a)

The magnitude response of a system

b)

The phase response of a system

c)

The time domain signal

d)

The frequency of the input signal

75.

Which Matlab command is used to create a vector of zeros with a specified length?

a)

y1=zeros(1,ly2);

b)

y1=ones(1,ly2);

c)

y1=linspace(1,ly2);

d)

y1=sinc(ly2);

76.

What is the purpose of the command "clear all;" in Matlab?

a)

It removes all variables from the workspace.

b)

It closes all open figures.

c)

It clears the command window.

d)

It saves all variables to a file.

77.

In the provided Matlab code, what does the command "t2 = linspace(-10,10);" do?

a)

It creates a vector of linearly spaced values from -10 to 10.

b)

It creates a vector of zeros from -10 to 10.

c)

It generates random values between -10 and 10.

d)

It creates a vector of logarithmically spaced values from -10 to 10.

78.

Why is the command "Y=fft(yt);" used in the Matlab code for CIR of FIR filter?

a)

To compute the frequency response of the windowed CIR.

b)

To generate a time-domain signal.

c)

To plot the window function.

d)

To create a sinc function.

79.

Suppose you want to visualize both the time-domain and frequency-domain representations of a signal in Matlab. Based on the code, which commands would you use?

a)

Use subplot to plot the time-domain signal and plot(abs(Y)) for the frequency-domain.

b)

Use only plot for both domains.

c)

Use stem for frequency-domain and plot for time-domain.

d)

Use fft for time-domain and subplot for frequency-domain.

80.

If you want to set certain values of a vector y1 to 1 between indices 30 and 70 in Matlab, which command would you use?

a)

y1(30:70)=1;

b)

y1(1:30)=1;

c)

y1(70:100)=1;

d)

y1(1:70)=1;

81.

What is the effect of multiplying y2 and y1 in the command "yt=y2.*y1;" in the context of FIR filter design?

a)

It applies a window function to the sinc function.

b)

It adds noise to the signal.

c)

It computes the convolution of y2 and y1.

d)

It normalizes the sinc function.

82.

How does the Matlab command "subplot(211)" function in the code?

a)

It creates a subplot in the first position of a 2-row, 1-column grid.

b)

It creates a subplot in the second position of a 1-row, 1-column grid.

c)

It creates a subplot in the first position of a 1-row, 2-column grid.

d)

It creates a subplot in the second position of a 2-row, 1-column grid.

83.

What is the main purpose of the Matlab code provided in the image?

a)

To compute and visualize the CIR of an FIR filter using windowed sinc function.

b)

To design an IIR filter.

c)

To perform image processing.

d)

To solve a system of linear equations.

84.

If you wanted to change the length of the FIR filter in the code, which variable would you modify?

a)

N

b)

t2

c)

y2

d)

yt

85.

Which of the following is typically used to analyze the frequency response of a system?

a)

Window function in dB

b)

Impulse function

c)

CFR (Channel Frequency Response)

d)

Window function

86.

What does the term "window function" most likely refer to in signal processing?

a)

A function used to limit the duration of a signal

b)

A function used to amplify a signal

c)

A function used to filter noise from a signal

d)

A function used to convert analog signals to digital

87.

Given a plot labeled "window function in dB" that shows a rapid drop-off, what does this most likely indicate about the window's frequency characteristics?

a)

The window has high side lobes

b)

The window has good frequency selectivity

c)

The window is not suitable for frequency analysis

d)

The window amplifies all frequencies equally

88.

What is the value assigned to the variable 'fc' in the Matlab code for CIR of FIR filter-2?

a)

0.5

b)

0.137

c)

229

d)

N/2

89.

In the Matlab code, what does the variable 'alpha' represent?

a)

The filter order

b)

The cutoff frequency

c)

Half the value of N

d)

The length of the impulse response

90.

Which Matlab function is used to compute the frequency response of the window function 'w'?

a)

fft(w)

b)

freqz(w)

c)

plot(w)

d)

stem(w)

91.

What is the purpose of the 'subplot' function in the provided Matlab code?

a)

To calculate the filter coefficients

b)

To display multiple plots in a single figure window

c)

To compute the frequency response

d)

To clear all variables

92.

Which line of code calculates the ideal impulse response 'hd' when n equals alpha?

a)

hd(cnt)=sin(2*pi*fc*(n-alpha))/((n-lpha)*pi);

b)

hd(cnt)=2*fc;

c)

hd(cnt)=hd(cnt)*w(cnt);

d)

hd(cnt)=0.5*cos(2*pi*n/N);

93.

How is the variable 'h' computed in the Matlab code?

a)

By multiplying 'hd' and 'w'

b)

By adding 'hd' and 'w'

c)

By dividing 'hd' by 'w'

d)

By subtracting 'w' from 'hd'

94.

Which plot title is used for the channel impulse response in the Matlab code?

a)

'window function'

b)

'window function in dB'

c)

'chanel impulse response'

d)

'low pass filter in freq domain'

95.

What is the main purpose of the Matlab code shown in the image?

a)

To design a high pass filter

b)

To compute and plot the channel impulse response of a FIR filter

c)

To perform matrix multiplication

d)

To generate random signals

96.

Suppose you want to change the filter length in the Matlab code. Which variable should you modify?

a)

fc

b)

alpha

c)

N

d)

cnt

97.

If you want to plot the magnitude response of the filter in dB, which variable should you use?

a)

db_magh

b)

abs_magh

c)

Hk

d)

magw

98.

Which of the following is a limitation of the window method in FIR filter design?

a)

Cannot find the closed form expression of h_D(n) or need to be approximated by very long DFT

b)

Can always specify exact band frequencies

c)

Always achieves the smallest possible passband ripple

d)

Approximation error is uniformly distributed

99.

Why can't the window method specify the band frequencies ω_p and ω_s precisely in the design of FIR filters?

a)

Because the method uses fixed window shapes

b)

Because the method requires infinite computation

c)

Because the method cannot control the frequency response precisely

d)

Because the method always produces non-linear phase filters

100.

Which statement best describes the distribution of approximation error in the window method for FIR filter design?

a)

The error is not uniformly distributed and is higher near the band edge

b)

The error is always zero at the band edge

c)

The error is uniformly distributed across all frequencies

d)

The error is highest at the center frequency