My Report

MATLAB Mock Test 6


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement
 10%

Question 1 of 10

1. What is the output of the following code?

if((-10 &&00)||(20134 && 900))
fprintf("%s","True.")
else
fprintf("%s","False.")
end

Question 1 of 10

Question 2 of 10

2. What is the output of the following code?

if(x=99)
var=92;
end

Question 2 of 10

Question 3 of 10

3. What is the output of the following code?

log(0)==Inf

Question 3 of 10

Question 4 of 10

4. In nested loops, the continue statement exits the ____

Question 4 of 10

Question 5 of 10

5. What is the output of the following code?

while{i<5}
i=i+1234;
end

Question 5 of 10

Question 6 of 10

6. What is the output of the following code?

t=[-2:1:2];plot(t,t);ax=gca;ax.Xscale=’Logarithmic’;

Question 6 of 10

Question 7 of 10

7. What is the working of the nargout command?

Question 7 of 10

Question 8 of 10

8. Giving conditions using characters, we give them using ____

Question 8 of 10

Question 9 of 10

9. What is the output of the following code?

if(x~=c)
p=0;
end

Question 9 of 10

Question 10 of 10

10. What is the output of the following code?

all[1, 2, 3, NaN]

Question 10 of 10


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.