My Report

MATLAB Practice 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

1. Which symbol is used to initialise a variable?

2. To stop the execution of a MATLAB command, used keys?

3. What is the output of the following code?

p=input[''];

4. Executing in the command window the following code returns.

 a = [1:3]’ ;
size(a)

5. What is the output of the following code?

pd=makedist('Uniform','Lower',3)

6. Find the cumulative sum of the columns of A.

  A =1     4     7
     2     5     8
     3     6     9
B = cumsum(A)

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

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

8. What is the output of the following code?

P=tan90

9. What operator helps in the transpose of a matrix?

10. What is the syntax to solve simultaneous equations easily?


 

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.