Digital Signal Processing set 2

Que.What will be seen in the scope?
a. A ramp function
b. A step function
c. A parabola
d. A hyperbola
Que.What does the following code generate?
p=ones(1,90);
t=(0:1:89);
plot(t,p);

a. A graph of a unit step function
b. A graph of a pulse function
c. A graph of a triangular pulse function
d. An impulse function
Que.The convolution of [1 2 1] and [1 2 1] will have the highest amplitude at t= _________
a. 3 units
b. 0 units
c. 1 unit
d. 2 units
Que.What is the output of the following code?
a=[1 2 3];
b=2;
a.\b;

a. .5 1 1.5
b. 2 1 .67
c. Error
d. Cannot be determined
Que.What is the output of the following code?
a=[1 2 3];
b=2;
conv(a,b)

a. 2 4 6
b. 1 2 3
c. 0 0 0
d. 2 3 1
Que.What is the output of the following code?
T=0:1:9;
stem(T);

a. A ramp function
b. r[n]-r[n-9]-9u[n-9]
c. r[n]-r[n-9]
d. Error
Que.What is the output of the following code?
Y=rectpulse(1,9);
t=0:1:8;
plot(t,y);

a. A rectangular pulse extending from 0 to 8 units in time
b. A rectangular pulse with increasing amplitude
c. Error
d. Cannot be determined
Que.What is the output of the following code?
Y=rectpulse(1,9);
p=y’;
t=0:1:9;
plot(t,p);

a. u(t)-u(t-9)
b. u(t) till 9 units in time
c. Error
d. Cannot be determined
Que.What is the output of the following code?
plot([-5:1:5],tripuls([-4:1:4])

a. Error
b. Generates a triangular pulse signal
c. Generates a sawtooth signal
d. Cannot be determined
Que.What is the output of the following code?
b={1 2 3};
c={ 1 2 3}
b+c

a. Error
b. { 2 4 6 }
c. { 1 2 3 }
d. Cannot be determined