Logo

Matlab Questions Set 43:

Quiz Mode

 

a = 1; sin(a) a = 2;

1
2
3
4

Solution:

how many time loop work

 

for i=1:5
if(i<3) break

1
2
3
4

Solution:

 

Pie([1,2],[0,1,1])

1
2
3
4

Solution:

What is the z-transform of the sequence 2n?

1
2
3
4

Solution:

What is the output of the following MATLAB code?

Pie([1,2],[0,1,1])

1
2
3
4

Solution:

What is the output of the following code?

j=0;i=1;
while(j>5)
for i=1:8
j=j+i;
end
end

1
2
3
4

Solution:

What is the output of the following code?

p = input('');
print(p)

1
2
3
4

Solution:

Statement 1- dbstep can be used for single-step execution in debugging mode 

Statement 2- dbstepin can be used for single-step execution in debugging mode

Statement 3- dbcont can be used for single-step execution in debugging mode

1
2
3
4

Solution:

Statement 1- The answer for indefinite integration in MATLAB is One of the many possible integrals 

Statement 2- The answer for indefinite integration in MATLAB is erroneous 

Statement 3- The answer for indefinite integration in MATLAB is 0

1
2
3
4

Solution:

Statement 1- To exhibit time-series or spatial-series data, Bar-diagram are suitable 

Statement 2- To exhibit time-series or spatial-series data, Ratio-chart  are suitable

Statement 3- To exhibit time-series or spatial-series data, Pie-chart  are suitable

1
2
3
4

Solution: