DSP Lab Quiz for EEE/ECE Students
DSP Lab Quiz for EEE/ECE Students
Ans B D B B C A D C B B
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
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
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
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.