matlab test2

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 
a. sin(45) cos(45) tan(45)
b. sin(pi/4) cos(pi/4) tan(pi/4)
c. sin(45®) cos(45®) sin(45®)
d.none of these

2.We can find the mean value of a series (upto n) using _________ 
meanabs()
mean()
sumabs()
None of these
sum()

3. MATLAB stands for? *
matrix laboratory
Matrix Laboratory
MATrix LABoratory
None of these

4.Which is the invalid variable name in MATLAB? *
x6
last
6x

5.If the result of our summation is Infinity, what will MATLAB show? *
Infinity
nan
Inf
error

6.How to create identity matrix using matrix command *ide()
ide()
eye
eyi
id

 7.Which of the following MATLAB expression gives 1 *
cos(180)
cosd(pi)
sind(3*pi/2)
sin(pi/2)

8.The difference between a function and a script is: *
Only a function file can be run from the command line
Only a script file can perform a series of commands
Only a function requires inputs
Function variable names only have meaning within the function, whereas script variables are available to other programs

9. MATLAB API means: *
Application Program Interface(Y)
Application Process Interconnected
Advance Program Internet
Advanced process Interface

10.What are the types of loops does MATLAB provides? *
While loop
For loop
Not Supported
Both While loop and For loop

11.The LU method of factorization was introduced by the mathematician____________ *
Alan Tango
David Hilbert
G. W. Leibniz
Alex Grothendieck

12.Y=[ ] *
Empty matrix
Non Empty matrix
error
None of these

13.A=[3:3:15] *
3 6 9 12 15
3 15
Error
None of these

14.Which function gets disabled while using evalc()? *
diary
sin
inf
round

15.What is the output of the following code? evalc(‘Laplace(t)’) *
Syntactical Error
Symbolic error
1/s
1/s2

 16.Which of the following is called as forward difference operator *
∆(Y)
€(N)
β(N)
None of these(N)

17.V=log(1) in MATLAB *
0
1
Error
4

18.What is the output of the following code? error(‘ No !!!!’) *
No ! ! !!
No !!!!
Logical Error
Symbolic error

19.What is the error in the code? a=[[1;2];(2,3)] *
Third brackets are wrong
The semicolon within the second third brackets
There is no error
Error: Expression or statement is incorrect–possibly unbalanced

20. Explain what is Simulink? *
Add-on product to MATLAB
Provides an interactive
Graphical environment for modeling
All of these

Comments