June 12, 2021

# Operations on Signals – 2 MCQ’s

Read Time:2 Minute, 18 Second

This set of MATLAB Multiple Choice Questions & Answers (MCQs) focuses on “Operations on Signals – 2″.

1. 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

2. 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

3. Discrete time convolution is not possible in MATLAB.
a) True
b) False

4. What is the output of the following code?advertisement

```t=[0:1:2];
plot(t,p);
hold;
plot(-t,p);```

a) A mirror image of ramp function from 0 to 2 units in time
b) A ramp function from 0 to 2 units in time and it’s a mirror image in the same window
c) A ramp function from 0 to 2 units in time
d) Error

5. If x(t-5)=0 for t<5 = A for t>=5, the signal is ___________
a) Causal
b) Symmetric
c) Linear, Time Invariant and Causal
d) Cannot be determined

6. plot([0:1:8],[rectpulse(1,9)]’) and plot([0:1:8],ones(1,9)) will generate the same graph.
a) True
b) False

7. What is the output of the following code?

```>>p=[zeros(1,5),ones(1,6)];
>> t=0:1:10;
>> plot(t,p);```

a) r(t-5)-r(t-6)-u(t-10)
b) r(t-5)-u(t-6)-u(t-10)
c) r(t-5)-u(t-6)-r(t-10)
d) r(t-5)-r(t-6)-r(t-10)

8. What is the output of the following code?

```a=[zeros(1,4) [rectpulse(1,5)]’ zeros(1,6) 2*[rectpulse(1,9)]’];
stem([0:1:22],a];```

a) Error in the input of the y axis
b) A function whose step size increases to 1 at t=5 and to 2 at t=15
c) A function whose step size increases to 1 at t=4 and to 2 at t=14
d) Error in the input of the x axis

9. What is the output of the following code?

`[l,m]=deconv([4 6 8],[2 3 4])`

a) l=2,m=0
b) m=2,l=0
c) l=m=2
d) Error

10. What is the output of the following code?

`stem([0:1:19],[zeros(1,5) [rectpulse(1,5)] zeros(1,5) 2*[rectpulse(1,5)]])`

a) Error in the input of the y axis
b) A function whose step size increases to 1 at t=5 and to 2 at t=15
c) A function whose step size increases to 1 at t=4 and to 2 at t=14
d) Syntactical Error 5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%