MATLAB Basics set 17

Que.If a character input is given to a command which only takes integers, it’ll always give an error.
a. True
b. False
c. May be True or False
d. Can’t say
Que.Which function is preferable to find the magnitude of a complex number?
a. abs()
b. sqrt()
c. cart2pol()
d. MATLAB does not support complex arguments
Que.Which is an escape sequence constant?
a. Esc
b. /n
c. \b
d. nargout
Que.All MATLAB computations are done in
a. Single Precision
b. Double Precision
c. Linear accuracy
d. Multi-level precision
Que.Which symbol is used to initialise a variable?
a. =
b. ->
c. ==
d. init
Que.Choose the correct option.
a. any() shows all the elements in a matrix while all() shows every element of a vector
b. any() is ‘true’ if elements in a vector is zero
c. all() is ‘true’ if every element in a vector is non zero
d. all() is ‘true’ if every element in a vector is 0
Que.What operator helps in the transpose of a matrix?
a. “ .’ ”
b. “ ‘ ”
c. “./ ”
d. “ .\ ”
Que.What is the difference between the expressions (9*1-8) and (9-1*8)?
a. Computational difference
b. Final results are different
c. No difference
d. Cannot be determined
Que.What is the output of the following expression?
(2*9*Inf)+(9-1*Inf)

a. Inf
b. Error
c. Incomprehensible
d. NaN
Que.The expression cos(90) is equal to1 in MATLAB.
a. True
b. False
c. May be True or False
d. Can’t say

Leave a Comment