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

Question 2 of 10

2. What is the difference between who and whos command?

Question 2 of 10

Question 3 of 10

3. What will be the output when the following code is written in MATLAB?

 u=sin(10);v=pi;whos

Question 3 of 10

Question 4 of 10

4. What is the output of the following code?

pd=makedist('Uniform','-Inf',lower,'Inf',upper)

Question 4 of 10

Question 5 of 10

5. Vectors depend upon brackets while scalars don’t.

Question 5 of 10

Question 6 of 10

6. Choose the correct option.

Question 6 of 10

Question 7 of 10

7. What is the output of the following code?

A=[1 2]; B=[1 4]; c=A*B;

Question 7 of 10

Question 8 of 10

8. Which code shows the use of ellipsis in MATLAB?

Question 8 of 10

Question 9 of 10

9. Which symbol is used to initialise a variable?

Question 9 of 10

Question 10 of 10

10. An employer has to minimize the number of lines in a program while writing the code for a purpose. If the purpose is to find the root of the following equation, which function is to be used?

x2-4x+3=0

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.