1.Which code would you use to find the

value of the function f? 

f(x)=sin(x) +cos (x) + tan (x) at x = π/4

ans. sin(pi/4)+cos(pi/4)+tan(pi/4)

2.Find the error returned by MATLAB:

syms a x y; a = xˆ2 + yˆ2; subs(a,

[x,y], (2,3,4))

ans.There is no subs command in MATLAB

3.We can generate the summation of a series, formed with a character, using________

ans.Symsum

4.The sum() command cannot do____________

ans.Infinite summation

5.To calculate the sum of only absolute variables in a series, we use ________

ans.sumabs()

6.We can find the mean value of a series(upto n) using _________

ans.mean()

7.The function to evaluate the followingseries is 1^2+2^2+3^2+4^2+5^2+…83^2

ans.sqrsum()

8.What is the output of the following code? mean(1:10)

ans.5.5

9.MATLAB stands for?

(matrix laboratory/Matrix Laboratory/MATrix LABoratory/None of these)

ans.MATrix LABoratory

10.Which command is used to clear a command window?

ans. clc

11.Command used to display the value of variable x

ans.disp(x)

12.To stop the execution of a MATLABcommand, used keys?

ans.ctrl+c

13.Which is the invalid variable name in MATLAB?

(x6/last/6x/Z)

ans.6x

14.What are the characters in MATLAB are represented in their value in memory?

ans. ASCII

15.What would be the output of the following code (in editor window)? A =[1 1 0 0] B = [1 ;2 ;3 ;4] C=A*B

ans.3

16.Which of the following is not a pre defined variable in MATLAB?

(PI,eye,gravity)

ans.gravity

17.What does MATLAB consist of?

ans. MATLAB Language ,MATLAB working environment ,Handle Graphics

18.Which of the following is used to see if two elements are equal in MATLAB?

ans.==

19.What would be the output of the following code (in editor window)? A =[1 0 2] ; b = [3 0 7]; c=a.*b;

ans.[3 0 14]

20.What would be the output of the following code (in editor window)?a=1:5 ; c=a.^2

ans.[1 4 9 16 25]

21.If the result of our summation is Infinity, what will MATLAB show?

ans.Inf

22.What is the output of the following code? for i=1:4 for j=1:4 a=5;a=a+5;end end

ans. The output is supressed

23.Which of the following method is employed for solving the system of linear equations?

ans.Gauss seidal

24.How many times will the following loop run? for i=1:5 if(i<3) break

ans.one time

25.What is the condition applied in factorization method?

ans. All principal minors of the matrix should be non-singular

26.Which one of the following is alegitimate variable names in MATLAB?

ans. sin

27.Which of the following MATLAB calculations would result the value 1?

(1+4/5

6/2*3

3^3*2/3

None of these)

ans. none of these

28.Which of the following MATLABexpression gives 1

ans.sin(pi/2)

29.Is histogram a kind of multiple plots?

ans. true*****

30.What is the output of the followingcode? P=sin[90];

ans.error

31.What is the error in the code? a=[[1;2];(2,3)]

ans. Error: Expression or statement is incorrect–possibly unbalanced

32.What is the limitation of Gauss-seidal method?

ans. It doesn’t guarantees convergence for each and every matrix

33.The number of significant digits in thenumber 204.020050 is_________

ans.9

34.The difference between a function and ascript is

ans.Only a function requires inputs

35.MATLAB API means:

ans.Application Program Interface

36.What are the types of loops does MATLAB provides?

ans. Both While loop and For loop(

37.List out the operators that MATLAB allows?

ans. bitwise operation ,operators

38.Explain what is Simulink?

ans. Add-on product to MATLAB

Provides an interactive

Graphical environment for modelin

All of these

39.The common toolboxes present in MATLAB?

ans. Image Processing

neural n/w

fuzzy logic

40.What is Get in MATLAB?

ans. GETTER 

41.A student does an experiment to measure the change in a pendulum  soscillation period with the length of the pendulum. What is the most appropriate excel chart type to display this data?

ans.Line

42.How polynomials can be represented in MATLAB?

ans.To create a polynomial in MATLAB enter each co-efficient of the polynomial into the vector in descending order



Comments