Que.What is the output of the following code?clear ALL
|
a. Clears the workspace |
b. Clears the matrices |
c. Clears the vectors |
d. Clears ALL |
Que.All matrices are vectors but all vectors are not matrices in MATLAB.
|
a. True |
b. False |
c. May be True or False |
d. Can’t say |
Que.What is the output of the following code?ismatrix([]);
|
a. logical 1 |
b. logical 0 |
c. logical -1 |
d. Error |
Que.What is the output of the following code?isvector([]);
|
a. 1 |
b. 0 |
c. Syntactical error |
d. Logical error |
Que.If the dimensions of vectors don’t match, the plot command will always give an error.
|
a. True |
b. False |
c. May be True or False |
d. Can’t say |
Que.What is the name of a primary function?
|
a. Name of M-file |
b. Name of Script File |
c. Name of Help file |
d. Name of Private-File |
Que.Predominantly, what are the two kinds of errors in MATLAB programs?
|
a. Syntax and runtime |
b. Syntax and logic |
c. Logic and runtime |
d. Syntax and algorithmic |
Que.Which code would you use to find the value of the function f?f(x)=sin(x) + cos (x) + tan (x) at x = Que.What are persistent variables?
| a. Variables which retain values between calls to the function | b. Variables which help in calling a function | c. Variables which deal with functions | d. Variables global to the function |
Variables which retain values between calls to the function
Que.Variables need to have same name while being passed from the primary function to the sub-function.
| a. True | b. False | c. May be True or False | d. Can't say |
Que.Find the error in below code.>>f = inline('t.^4', 't'); g = inline('int(h(t), t)', 't');
| a. There is no function as inline | b. The error will be in defining g | c. The error will be in evaluating a numeric value for the function g | d. Syntactical error in defining g |
Syntactical error in defining g
|