MATLAB Basics set 2

Que.What would be the output of the following code (in editor window)?
X = [1.4+2.3i 3.1-2.2i -5.3+10.9i]
X = 1.4000 + 2.3000i   3.1000 - 2.2000i  -5.3000 +10.9000i
Y = fix(X)

a. Y = 1.0000 + 2.0000i 3.0000 – 4.0000i -5.0000 +10.0000i
b. Y = 2.0000 + 3.0000i 3.1000 – 2.2000i -5.3000 +10.9000i
c. Y = 1.0000 + 2.0000i 3.0000 – 2.0000i -5.0000 +10.0000i
d. Y = 2.0000 + 3.0000i 3.1000 – 2.2000i -5.3000 +10.9000i
Que.Compute 24 modulo 5.
b = mod(24,5)

a. b = 3
b. b =4
c. b =5
d. b =6
Que.What would be the output of the following code (in editor window)?
X = [1 2 3;4 5 6;7 8 9];
Y = [9 8 7;6 5 4;3 2 1];
R = rem(X,Y)

a. R = 1 2 14 0 91 0 0
b. R = 1 2 33 0 21 0 0
c. R = 1 2 34 1 21 1 0
d. R = 1 2 34 0 21 0 0
Que.If one operand is a scalar and the other is not, then MATLAB applies the scalar to every element of the other operand. This property is known as ______________
a. operand divergence
b. scalar expansion
c. vector expansion
d. dimension declaration
Que.Matrix operations follow the rules of linear algebra and are not compatible with multidimensional arrays.
a. True
b. False
c. May be True or False
d. Can’t Say
Que.Conversion Function int16 uses_________ range of value?
a. -2
Que.Choose the correct option as an inference from the following workspace view.
a. ‘ans’, ‘p’ and ‘ap’ are double variables
b. ‘ans’ and ‘p’ are double variables while ‘c’ is a character variable
c. ‘ap’ is symbolic object, ‘c’ is a double variable
d. ‘c’ is a symbolic character
Que.What are Max and Min in the Workspace shown below?
a. They show the maximum and minimum value of the variable
b. The show the maximum and minimum length of the variable
c. They show the maximum and minimum value present in an array
d. They show the median and mode of the variable
Que.What is the output in the following code?
a=[[1;22],[53;9],[13;2]];

a. There is no output
b. Columns are to be introduced by placing semi-columns
c. Dimensions of matrices being concatenated are not consistent
d. a = 1 53 1322 9 2
Que.What is the difference between the two codes?
a> P=[91,’pi’];
b> Q=[91,pi];

a. Code a initialises P as a character array while code b initialises Q as an integer array
b. Both P and Q will be integer arrays
c. Code b initialises P as a character array while code a initialises Q as an integer array
d. Both P and Q will be character arrays
Que.What is the output of the following code?
P=tan90

a. Inf
b. P = Inf
c. P = -1.9952
d. Undefined function or variable ‘tan90’