KEMBAR78
DSP Lab Quiz for EEE/ECE Students | PDF | Signal Processing | Telecommunications Engineering
0% found this document useful (0 votes)
54 views8 pages

DSP Lab Quiz for EEE/ECE Students

The error in the given code is in line 18. The sampling frequency specified in the function call L138_initialise_intr(FS_19500_HZ,...) is incorrect. FS_19500 is not a valid sampling frequency supported by the DSK board.

Uploaded by

Netflix Flix
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views8 pages

DSP Lab Quiz for EEE/ECE Students

The error in the given code is in line 18. The sampling frequency specified in the function call L138_initialise_intr(FS_19500_HZ,...) is incorrect. FS_19500 is not a valid sampling frequency supported by the DSK board.

Uploaded by

Netflix Flix
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

5. Find the error in the given code?

BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE, PILANI, HYDERABAD CAMPUS


First Semester, 2019-2020
Digital Signal Processing (EEE/ECE F434) #include<stdio.h>
Lab Quiz (Closed Book) SET A #include<math.h>
Time: 10 – 10.35 am (35 MINUTES) Date: 19/11/2019 #define FREQ 500
Max Marks: 20X1.5 = 30 Day: TUESDAY float m[128];
int i=0;
NOTE: void main()
(1) Answer all 20 Questions and write down the answers (only CAPITAL A, B, C and D) inside the {
BOX given.
(2) 1.5 marks for each correct answer, and negative marking (-0.5) for each wrong answer. For any
for( ; i<127; i++)
overwriting/answers written elsewhere/multiple answers at different places/ writing with pencil {
leads to Zero (0). m[i]=sin(2*3.14*FREQ*i/12000);
(3) Answer sheets without Name & ID number will be awarded zero marks. printf(“%f ”, m[i]);
}
Name : ID No. : }
A. int i= 0 B. for loop C. printf D. None
Q No. 1 2 3 4 5 6 7 8 9 10
6. Which of these pole-zero maps indicate the Region of Convergence (ROC) of FIR
Ans B B C C D C C D B A Filter?
Q No. 11 12 13 14 15 16 17 18 19 20

Ans B D B B C A D C B B

1. What is the purpose of L138_initialise_intr function in CCStudio (with DSK) ?


A. It initializes communication between function generator and digital storage
Oscilloscope.
B. It initializes communications between the processor and the codec.
C. It interrupts communication between USB to codec.
D. None.
2. The elliptic filter has a
A. Slow transition band B. Rippled stopband
C. Maximally-flat passband D. Monotonic stopband
3. The filter coefficients from FDA tool are exported as an object file to MATLAB
workspace. If the file is saved using the name ‘MyFirstLPF’ and consider an input A. 1 & 3 B. 3 & 4 C. 1 & 2 D. 2 & 4
signal in the variable ‘x’. Identify the MATLAB command line syntax for filtering
the input signal ‘x’ using the exported filter coefficients ‘MyFirstLPF’ 7. If b and a are the numerator and denominator filter coefficients then what is the
A. y=filter(x, MyFirstLPF) B. y=filt(x, MyFirstLPF) default function for analysing the frequency response of an analog filter in
MATLAB?
C. y=filter(MyFirstLPF,x) D. y=filt(MyFirstLPF,x)
4. Consider an audio file ‘y’, the following syntax sound(y); will A. freqS(b,a) B. freqZ(b,a) C. freqs(b,a) D.freqz(b,a)
A. Read the audio file ‘y’
B. Copy the audio file ‘y’ to workspace 8. What is the DFT of the four point sequence x(n)={0,1,2,3}?
C. Play the audio file ‘y’ A. {6, -2, +2j-2, -2-2j} B. {6, -2-2j, +2, -2+2j}
D. Display the audio signal waveform in the command window C. {6, -2-2j, -2, -2+2j} D. {6, -2+2j, -2, -2-2j}
9. The total number of sections for a filter order of 8 given by FDA Tool (in Matlab) 17. Find the error in the given code
when using Second Order Section (SOS) matrix is.
#include "L138_LCDK_aic3106_init.h"
A.6 B. 4 C. 2 D. 10
10. Determine the peak passband ripple α𝑝 and the minimum stopband attenuation α𝑠 interrupt void interrupt4(void)
in dB of a digital filter with peak passband ripple δ𝑃 = 0.035 and peak stopband {
ripple δ𝑠 = 0.023. float sample;
A. 𝛂𝒑 = 0.3094537dB and 𝛂𝒔 = 32.76544dB sample = (float)input_sample();
output_sample(sample);
B. α𝑝 = 0.6094537dB and α𝑠 = 12.76544dB
return;
C. α𝑝 = 32.76544dB and α𝑠 = 0.3094537dB }
D. α𝑝 = 12.76544dB and α𝑠 = 0.6094537dB
11. Which of the following Simulink block (in Matlab) can generate a noise signal? int main(void)
A. Signal generator B. Signal builder {
C. Pulse generator D. None L138_initialise_intr(FS_19500_HZ,ADC_GAIN_0DB,DAC_ATTEN_0DB,L
12. The command used for obtaining coefficients of a given analog nth order lowpass CDK_LINE_INPUT);
Chebyshev Type I filter is ( Note: Rp is the passband attenuation, Wp is the while(1);
passband frequency) }
A. [b,a] = cheby(n,Rp,Wp,ftype,) B. [b,a]=cheby(n,Rp,Wp,low ,‘l’);
A. GAIN should be 1DB and not 0 DB
C. [b,a] = cheby1(n,Rp,Wp,lowpass,’s’) D. [b,a]=cheby1(n,Rp,Wp,low ,‘s’) B. DAC_ATTEN should be 1 DB and not 0 DB
13. What is the data type option you will choose in order to view the plot of any C. L138_LCDK_aic3106 should be L138_ LINE_OUTPUT
sinusoidal signal in ccstudio in the single time window? D. FS_19500 the sampling frequency 19500 do not exist for this DSK board
A. 32-bit unsigned integer B. 32-bit floating point 1
18. Inverse z-transform of 𝑋(𝑧) = ROC 1Z1 < 2?
C. 64-bit floating point D. 16-bit signed integer (3−𝑧)(2−𝑧)

14. Which of the following expressions generates an evenly spaced vector containing A. x[n] = ( − 3n − 1 − 2n − 1) u[ − n] B. x[n] = ( 3n − 1 + 2n − 1) u[ − n]
15 values between 4 and 20.
A. x=linspace(4, 15, 20) B. x=linspace(4, 20, 15) C. x[n] = ( − 3n − 1 + 2n − 1) u[ − n] D. x[n] = ( 3n − 1 − 2n − 1) u[ − n]
C. x=4:15:20 D. x=4:20:15 19. The following block in Simulink converts a discrete time signal to a continuous
15. The Unilateral z-transform X(z) of a discrete time signal x(n) is defined as time signal by holding each sample value for one sample interval
A. 𝑋(𝑧) = ∑∞
𝑛=0 𝑥(𝑧
−𝑛
) B. 𝑋(𝑧) = ∑∞
𝑛=−∞ 𝑥(𝑛)𝑧
−𝑛 A. Sample and hold B. Zero order hold
C. Quantizer D. All of the above
C. 𝑿(𝒛) = ∑∞
𝒏=𝟎 𝒙(𝒏)𝒛
−𝒏
D. 𝑋(𝑧) = ∑∞
𝑛=−∞ 𝑥(𝑧
−𝑛
)
20. The structure used for realizing the IIR filter response in FDA Tool is?
16. While creating a new project in ccstudio, device ‘endianness’ is selected as little A. Direct Form I B. Direct Form II
which indicates
A. Last byte of binary representation of the multibyte data-type is stored first. C. Parallel Form D. All the above
B. First byte of binary representation of the multibyte data-type is stored first.
C. Last bit of binary representation of the multibit data-type is stored first.
D. First bit of binary representation of the multibit data-type is stored last.
5. Find the error in the given code?
BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE, PILANI, HYDERABAD CAMPUS
First Semester, 2019-2020
Digital Signal Processing (EEE/ECE F434) #include<stdio.h>
Lab Quiz (Closed Book) SET B #include<math.h>
Time: 10 – 10.35 am (35 MINUTES) Date: 19/11/2019 #define FREQ 500
Max Marks: 20X1.5 = 30 Day: TUESDAY float m[128];
int i=0;
NOTE: void main()
(1) Answer all 20 Questions and write down the answers (only CAPITAL A, B, C and D) inside the {
BOX given.
(2) 1.5 marks for each correct answer, and negative marking (-0.5) for each wrong answer. For any
for( ; i<127; i++)
overwriting/answers written elsewhere/multiple answers at different places/ writing with pencil {
leads to Zero (0). m[i]=sin(2*3.14*FREQ*i/12000);
(3) Answer sheets without Name & ID number will be awarded zero marks. printf(“%f ”, m[i]);
}
Name : ID No. : }
A. int i= 0 B. for loop C. printf D. None
Q No. 1 2 3 4 5 6 7 8 9 10
6. Which of these pole-zero maps indicate the Region of Convergence (ROC) of FIR
Ans C D C A D A B C D A Filter?
Q No. 11 12 13 14 15 16 17 18 19 20

Ans A C C A C C D C C B

1. What is the purpose of L138_initialise_intr function in CCStudio (with DSK) ?


A. It initializes communication between function generator and digital storage
Oscilloscope.
B. It interrupts communication between USB to codec.
C. It initializes communications between the processor and the codec.
D. None.
2. The elliptic filter has a
A. Slow transition band B. Monotonic stopband
C. Maximally-flat passband D. Rippled stopband
3. The filter coefficients from FDA tool are exported as an object file to MATLAB
workspace. If the file is saved using the name ‘MyFirstLPF’ and consider an input A. 1 & 2 B. 3 & 4 C. 1 & 3 D. 2 & 4
signal in the variable ‘x’. Identify the MATLAB command line syntax for filtering
the input signal ‘x’ using the exported filter coefficients ‘MyFirstLPF’ 7. If b and a are the numerator and denominator filter coefficients then what is the
A. y=filter(x, MyFirstLPF) B. y=filt(x, MyFirstLPF) default function for analysing the frequency response of an analog filter in
MATLAB?
C. y=filter(MyFirstLPF,x) D. y=filt(MyFirstLPF,x)
4. Consider an audio file ‘y’, the following syntax sound(y); will A. freqS(b,a) B. freqs(b,a) C. freqZ(b,a) D.freqz(b,a)
A. Play the audio file ‘y’
B. Read the audio file ‘y’ 8. What is the DFT of the four point sequence x(n)={0,1,2,3}?
C. Copy the audio file ‘y’ to workspace A. {6, -2, +2j-2, -2-2j} B. {6, -2-2j, +2, -2+2j}
D. Display the audio signal waveform in the command window C. {6, -2+2j, -2, -2-2j} D. {6, -2-2j, -2, -2+2j}
9. The total number of sections for a filter order of 8 given by FDA Tool (in Matlab) 17. Find the error in the given code
when using Second Order Section (SOS) matrix is.
#include "L138_LCDK_aic3106_init.h"
A.6 B. 10 C. 2 D. 4
10. Determine the peak passband ripple α𝑝 and the minimum stopband attenuation α𝑠 interrupt void interrupt4(void)
in dB of a digital filter with peak passband ripple δ𝑃 = 0.035 and peak stopband {
ripple δ𝑠 = 0.023. float sample;
A. 𝛂𝒑 = 0.3094537dB and 𝛂𝒔 = 32.76544dB sample = (float)input_sample();
output_sample(sample);
B. α𝑝 = 0.6094537dB and α𝑠 = 12.76544dB
return;
C. α𝑝 = 32.76544dB and α𝑠 = 0.3094537dB }
D. α𝑝 = 12.76544dB and α𝑠 = 0.6094537dB
11. Which of the following Simulink block (in Matlab) can generate a noise signal? int main(void)
A. Signal builder B. Signal generator {
C. Pulse generator D. None L138_initialise_intr(FS_19500_HZ,ADC_GAIN_0DB,DAC_ATTEN_0DB,L
12. The command used for obtaining coefficients of a given analog nth order lowpass CDK_LINE_INPUT);
Chebyshev Type I filter is ( Note: Rp is the passband attenuation, Wp is the while(1);
passband frequency) }
A. [b,a] = cheby(n,Rp,Wp,ftype,) B. [b,a]=cheby(n,Rp,Wp,low ,‘l’);
A. GAIN should be 1DB and not 0 DB
C. [b,a] = cheby1(n,Rp,Wp,low,’s’) D. [b,a]=cheby1(n,Rp,Wp,lowpass ,‘s’) B. DAC_ATTEN should be 1 DB and not 0 DB
13. What is the data type option you will choose in order to view the plot of any C. L138_LCDK_aic3106 should be L138_ LINE_OUTPUT
sinusoidal signal in ccstudio in the single time window? D. FS_19500 the sampling frequency 19500 do not exist for this DSK board
A. 32-bit unsigned integer B. 64-bit floating point 1
18. Inverse z-transform of 𝑋(𝑧) = ROC 1Z1 < 2?
C. 32-bit floating point D. 16-bit signed integer (3−𝑧)(2−𝑧)

14. Which of the following expressions generates an evenly spaced vector containing A. x[n] = ( − 3n − 1 − 2n − 1) u[ − n] B. x[n] = ( 3n − 1 + 2n − 1) u[ − n]
15 values between 4 and 20.
A. x= linspace(4, 20, 15) B. x= linspace(4, 15, 20) C. x[n] = ( − 3n − 1 + 2n − 1) u[ − n] D. x[n] = ( 3n − 1 − 2n − 1) u[ − n]
C. x=4:15:20 D. x=4:20:15 19. The following block in Simulink converts a discrete time signal to a continuous
15. The Unilateral z-transform X(z) of a discrete time signal x(n) is defined as time signal by holding each sample value for one sample interval
A. 𝑋(𝑧) = ∑∞
𝑛=0 𝑥(𝑧
−𝑛
) B. 𝑋(𝑧) = ∑∞
𝑛=−∞ 𝑥(𝑛)𝑧
−𝑛 A. Sample and hold B. Quantizer
C. Zero order hold D. All of the above
C. 𝑿(𝒛) = ∑∞
𝒏=𝟎 𝒙(𝒏)𝒛
−𝒏
D. 𝑋(𝑧) = ∑∞
𝑛=−∞ 𝑥(𝑧
−𝑛
)
20. The structure used for realizing the IIR filter response in FDA Tool is?
16. While creating a new project in ccstudio, device ‘endianness’ is selected as little A. Direct Form I B. Direct Form II
which indicates
A. Last bit of binary representation of the multibit data-type is stored first. C. Parallel Form D. All the above
B. First byte of binary representation of the multibyte data-type is stored first.
C. Last byte of binary representation of the multibyte data-type is stored first.
D. First bit of binary representation of the multibit data-type is stored last.
5. Find the error in the given code?
BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE, PILANI, HYDERABAD CAMPUS
First Semester, 2019-2020
Digital Signal Processing (EEE/ECE F434) #include<stdio.h>
Lab Quiz (Closed Book) SET C #include<math.h>
Time: 10 – 10.35 am (35 MINUTES) Date: 19/11/2019 #define FREQ 500
Max Marks: 20X1.5 = 30 Day: TUESDAY float m[128];
int i=0;
NOTE: void main()
(1) Answer all 20 Questions and write down the answers (only CAPITAL A, B, C and D) inside the {
BOX given.
(2) 1.5 marks for each correct answer, and negative marking (-0.5) for each wrong answer. For any
for( ; i<127; i++)
overwriting/answers written elsewhere/multiple answers at different places/ writing with pencil {
leads to Zero (0). m[i]=sin(2*3.14*FREQ*i/12000);
(3) Answer sheets without Name & ID number will be awarded zero marks. printf(“%f ”, m[i]);
}
Name : ID No. : }
A. int i= 0 B. for loop C. printf D. None
Q No. 1 2 3 4 5 6 7 8 9 10
6. Which of these pole-zero maps indicate the Region of Convergence (ROC) of FIR
Ans B B C C D C C D B A Filter?
Q No. 11 12 13 14 15 16 17 18 19 20

Ans B D B B C A D C B B

1. What is the purpose of L138_initialise_intr function in CCStudio (with DSK) ?


A. It initializes communication between function generator and digital storage
Oscilloscope.
B. It initializes communications between the processor and the codec.
C. It interrupts communication between USB to codec.
D. None.
2. The elliptic filter has a
A. Slow transition band B. Rippled stopband
C. Maximally-flat passband D. Monotonic stopband
3. The filter coefficients from FDA tool are exported as an object file to MATLAB
workspace. If the file is saved using the name ‘MyFirstLPF’ and consider an input A. 1 & 3 B. 3 & 4 C. 1 & 2 D. 2 & 4
signal in the variable ‘x’. Identify the MATLAB command line syntax for filtering
the input signal ‘x’ using the exported filter coefficients ‘MyFirstLPF’ 7. If b and a are the numerator and denominator filter coefficients then what is the
A. y=filter(x, MyFirstLPF) B. y=filt(x, MyFirstLPF) default function for analysing the frequency response of an analog filter in
MATLAB?
C. y=filter(MyFirstLPF,x) D. y=filt(MyFirstLPF,x)
4. Consider an audio file ‘y’, the following syntax sound(y); will A. freqS(b,a) B. freqZ(b,a) C. freqs(b,a) D.freqz(b,a)
A. Read the audio file ‘y’
B. Copy the audio file ‘y’ to workspace 8. What is the DFT of the four point sequence x(n)={0,1,2,3}?
C. Play the audio file ‘y’ A. {6, -2, +2j-2, -2-2j} B. {6, -2-2j, +2, -2+2j}
D. Display the audio signal waveform in the command window C. {6, -2-2j, -2, -2+2j} D. {6, -2+2j, -2, -2-2j}
9. The total number of sections for a filter order of 8 given by FDA Tool (in Matlab) 17. Find the error in the given code
when using Second Order Section (SOS) matrix is.
#include "L138_LCDK_aic3106_init.h"
A.6 B. 4 C. 2 D. 10
10. Determine the peak passband ripple α𝑝 and the minimum stopband attenuation α𝑠 interrupt void interrupt4(void)
in dB of a digital filter with peak passband ripple δ𝑃 = 0.035 and peak stopband {
ripple δ𝑠 = 0.023. float sample;
A. 𝛂𝒑 = 0.3094537dB and 𝛂𝒔 = 32.76544dB sample = (float)input_sample();
output_sample(sample);
B. α𝑝 = 0.6094537dB and α𝑠 = 12.76544dB
return;
C. α𝑝 = 32.76544dB and α𝑠 = 0.3094537dB }
D. α𝑝 = 12.76544dB and α𝑠 = 0.6094537dB
11. Which of the following Simulink block (in Matlab) can generate a noise signal? int main(void)
A. Signal generator B. Signal builder {
C. Pulse generator D. None L138_initialise_intr(FS_19500_HZ,ADC_GAIN_0DB,DAC_ATTEN_0DB,L
12. The command used for obtaining coefficients of a given analog nth order lowpass CDK_LINE_INPUT);
Chebyshev Type I filter is ( Note: Rp is the passband attenuation, Wp is the while(1);
passband frequency) }
A. [b,a] = cheby(n,Rp,Wp,ftype,) B. [b,a]=cheby(n,Rp,Wp,low ,‘l’);
A. GAIN should be 1DB and not 0 DB
C. [b,a] = cheby1(n,Rp,Wp,lowpass,’s’) D. [b,a]=cheby1(n,Rp,Wp,low ,‘s’) B. DAC_ATTEN should be 1 DB and not 0 DB
13. What is the data type option you will choose in order to view the plot of any C. L138_LCDK_aic3106 should be L138_ LINE_OUTPUT
sinusoidal signal in ccstudio in the single time window? D. FS_19500 the sampling frequency 19500 do not exist for this DSK board
A. 32-bit unsigned integer B. 32-bit floating point 1
18. Inverse z-transform of 𝑋(𝑧) = ROC 1Z1 < 2?
C. 64-bit floating point D. 16-bit signed integer (3−𝑧)(2−𝑧)

14. Which of the following expressions generates an evenly spaced vector containing A. x[n] = ( − 3n − 1 − 2n − 1) u[ − n] B. x[n] = ( 3n − 1 + 2n − 1) u[ − n]
15 values between 4 and 20.
A. x=linspace(4, 15, 20) B. x=linspace(4, 20, 15) C. x[n] = ( − 3n − 1 + 2n − 1) u[ − n] D. x[n] = ( 3n − 1 − 2n − 1) u[ − n]
C. x=4:15:20 D. x=4:20:15 19. The following block in Simulink converts a discrete time signal to a continuous
15. The Unilateral z-transform X(z) of a discrete time signal x(n) is defined as time signal by holding each sample value for one sample interval
A. 𝑋(𝑧) = ∑∞
𝑛=0 𝑥(𝑧
−𝑛
) B. 𝑋(𝑧) = ∑∞
𝑛=−∞ 𝑥(𝑛)𝑧
−𝑛 A. Sample and hold B. Zero order hold
C. Quantizer D. All of the above
C. 𝑿(𝒛) = ∑∞
𝒏=𝟎 𝒙(𝒏)𝒛
−𝒏
D. 𝑋(𝑧) = ∑∞
𝑛=−∞ 𝑥(𝑧
−𝑛
)
20. The structure used for realizing the IIR filter response in FDA Tool is?
16. While creating a new project in ccstudio, device ‘endianness’ is selected as little A. Direct Form I B. Direct Form II
which indicates
A. Last byte of binary representation of the multibyte data-type is stored first. C. Parallel Form D. All the above
B. First byte of binary representation of the multibyte data-type is stored first.
C. Last bit of binary representation of the multibit data-type is stored first.
D. First bit of binary representation of the multibit data-type is stored last.
5. Find the error in the given code?
BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE, PILANI, HYDERABAD CAMPUS
First Semester, 2019-2020
Digital Signal Processing (EEE/ECE F434) #include<stdio.h>
Lab Quiz (Closed Book) SET D #include<math.h>
Time: 10 – 10.35 am (35 MINUTES) Date: 19/11/2019 #define FREQ 500
Max Marks: 20X1.5 = 30 Day: TUESDAY float m[128];
int i=0;
NOTE: void main()
(1) Answer all 20 Questions and write down the answers (only CAPITAL A, B, C and D) inside the {
BOX given.
(2) 1.5 marks for each correct answer, and negative marking (-0.5) for each wrong answer. For any
for( ; i<127; i++)
overwriting/answers written elsewhere/multiple answers at different places/ writing with pencil {
leads to Zero (0). m[i]=sin(2*3.14*FREQ*i/12000);
(3) Answer sheets without Name & ID number will be awarded zero marks. printf(“%f ”, m[i]);
}
Name : ID No. : }
A. int i= 0 B. for loop C. printf D. None
Q No. 1 2 3 4 5 6 7 8 9 10
6. Which of these pole-zero maps indicate the Region of Convergence (ROC) of FIR
Ans C D C A D A B C D A Filter?
Q No. 11 12 13 14 15 16 17 18 19 20

Ans A C C A C C D C C B

1. What is the purpose of L138_initialise_intr function in CCStudio (with DSK) ?


A. It initializes communication between function generator and digital storage
Oscilloscope.
B. It interrupts communication between USB to codec.
C. It initializes communications between the processor and the codec.
D. None.
2. The elliptic filter has a
A. Slow transition band B. Monotonic stopband
C. Maximally-flat passband D. Rippled stopband
3. The filter coefficients from FDA tool are exported as an object file to MATLAB
workspace. If the file is saved using the name ‘MyFirstLPF’ and consider an input A. 1 & 2 B. 3 & 4 C. 1 & 3 D. 2 & 4
signal in the variable ‘x’. Identify the MATLAB command line syntax for filtering
the input signal ‘x’ using the exported filter coefficients ‘MyFirstLPF’ 7. If b and a are the numerator and denominator filter coefficients then what is the
A. y=filter(x, MyFirstLPF) B. y=filt(x, MyFirstLPF) default function for analysing the frequency response of an analog filter in
MATLAB?
C. y=filter(MyFirstLPF,x) D. y=filt(MyFirstLPF,x)
4. Consider an audio file ‘y’, the following syntax sound(y); will A. freqS(b,a) B. freqs(b,a) C. freqZ(b,a) D.freqz(b,a)
A. Play the audio file ‘y’
B. Read the audio file ‘y’ 8. What is the DFT of the four point sequence x(n)={0,1,2,3}?
C. Copy the audio file ‘y’ to workspace A. {6, -2, +2j-2, -2-2j} B. {6, -2-2j, +2, -2+2j}
D. Display the audio signal waveform in the command window C. {6, -2+2j, -2, -2-2j} D. {6, -2-2j, -2, -2+2j}
9. The total number of sections for a filter order of 8 given by FDA Tool (in Matlab) 17. Find the error in the given code
when using Second Order Section (SOS) matrix is.
#include "L138_LCDK_aic3106_init.h"
A.6 B. 10 C. 2 D. 4
10. Determine the peak passband ripple α𝑝 and the minimum stopband attenuation α𝑠 interrupt void interrupt4(void)
in dB of a digital filter with peak passband ripple δ𝑃 = 0.035 and peak stopband {
ripple δ𝑠 = 0.023. float sample;
A. 𝛂𝒑 = 0.3094537dB and 𝛂𝒔 = 32.76544dB sample = (float)input_sample();
output_sample(sample);
B. α𝑝 = 0.6094537dB and α𝑠 = 12.76544dB
return;
C. α𝑝 = 32.76544dB and α𝑠 = 0.3094537dB }
D. α𝑝 = 12.76544dB and α𝑠 = 0.6094537dB
11. Which of the following Simulink block (in Matlab) can generate a noise signal? int main(void)
A. Signal builder B. Signal generator {
C. Pulse generator D. None L138_initialise_intr(FS_19500_HZ,ADC_GAIN_0DB,DAC_ATTEN_0DB,L
12. The command used for obtaining coefficients of a given analog nth order lowpass CDK_LINE_INPUT);
Chebyshev Type I filter is ( Note: Rp is the passband attenuation, Wp is the while(1);
passband frequency) }
A. [b,a] = cheby(n,Rp,Wp,ftype,) B. [b,a]=cheby(n,Rp,Wp,low ,‘l’);
A. GAIN should be 1DB and not 0 DB
C. [b,a] = cheby1(n,Rp,Wp,low,’s’) D. [b,a]=cheby1(n,Rp,Wp,lowpass ,‘s’) B. DAC_ATTEN should be 1 DB and not 0 DB
13. What is the data type option you will choose in order to view the plot of any C. L138_LCDK_aic3106 should be L138_ LINE_OUTPUT
sinusoidal signal in ccstudio in the single time window? D. FS_19500 the sampling frequency 19500 do not exist for this DSK board
A. 32-bit unsigned integer B. 64-bit floating point 1
18. Inverse z-transform of 𝑋(𝑧) = ROC 1Z1 < 2?
C. 32-bit floating point D. 16-bit signed integer (3−𝑧)(2−𝑧)

14. Which of the following expressions generates an evenly spaced vector containing A. x[n] = ( − 3n − 1 − 2n − 1) u[ − n] B. x[n] = ( 3n − 1 + 2n − 1) u[ − n]
15 values between 4 and 20.
A. x= linspace(4, 20, 15) B. x= linspace(4, 15, 20) C. x[n] = ( − 3n − 1 + 2n − 1) u[ − n] D. x[n] = ( 3n − 1 − 2n − 1) u[ − n]
C. x=4:15:20 D. x=4:20:15 19. The following block in Simulink converts a discrete time signal to a continuous
15. The Unilateral z-transform X(z) of a discrete time signal x(n) is defined as time signal by holding each sample value for one sample interval
A. 𝑋(𝑧) = ∑∞
𝑛=0 𝑥(𝑧
−𝑛
) B. 𝑋(𝑧) = ∑∞
𝑛=−∞ 𝑥(𝑛)𝑧
−𝑛 A. Sample and hold B. Quantizer
C. Zero order hold D. All of the above
C. 𝑿(𝒛) = ∑∞
𝒏=𝟎 𝒙(𝒏)𝒛
−𝒏
D. 𝑋(𝑧) = ∑∞
𝑛=−∞ 𝑥(𝑧
−𝑛
)
20. The structure used for realizing the IIR filter response in FDA Tool is?
16. While creating a new project in ccstudio, device ‘endianness’ is selected as little A. Direct Form I B. Direct Form II
which indicates
A. Last bit of binary representation of the multibit data-type is stored first. C. Parallel Form D. All the above
B. First byte of binary representation of the multibyte data-type is stored first.
C. Last byte of binary representation of the multibyte data-type is stored first.
D. First bit of binary representation of the multibit data-type is stored last.

You might also like