My Report

MATLAB Mock Test 1


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?

commandhistory[]

Question 1 of 10

Question 2 of 10

2. What is the output of the following code?

P=tan90

Question 2 of 10

Question 3 of 10

3. Executing in the editor window the following code returns.

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

Question 3 of 10

Question 4 of 10

4. Conversion Function int16 uses_________ range of value?

Question 4 of 10

Question 5 of 10

5. Choose the correct option as an inference from the following workspace view.
matlab-questions-answers-managing-variables-q9

Question 5 of 10

Question 6 of 10

6. Which code will help to concatenate two matrices easily in 2 dimensions?

Matrices:   A = 1 2 	B = 1 2
	        3 4         3 4

Question 6 of 10

Question 7 of 10

7. MATLAB sees a ________ ordered variable as a vector of dimension n*1.

Question 7 of 10

Question 8 of 10

8. What is the output of the following code?

 a=10; b=10; c=’pi’; whos

Question 8 of 10

Question 9 of 10

9. What is the symbol used to evaluate the transpose of a vector?

Question 9 of 10

Question 10 of 10

10. Round each value in a duration array to the nearest number of seconds greater than or equal to that value.

t = hours(8) + minutes(29:31) + seconds(1.23);
t.Format = 'hh:mm:ss.SS'
t = 08:29:01.23   08:30:01.23   08:31:01.23
Y1 = ceil(t)
Y2 = ceil(t,'hours')

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.