MATLAB Programming set 8

Que.All logical operators operate on at least two operands.
a. True
b. False
c. May be True or False
d. Can’t say
Que.What is the output of the following code?
NaN==Inf

a. 0
b. 1
c. Nan
d. Inf
Que.What is the output of the following code?
Sin(Inf)==NaN

a. 0
b. 1
c. Nan
d. Inf
Que.The precedence of : operator is after | and before &.
a. True
b. False
c. May be True or False
d. Can’t say
Que.What is the output of the following code?
~xor(and(1,0),~xor(and(1,0),0))

a. 0
b. 1
c. NaN
d. Error
Que.The precedence of Transpose operation is ____________
a. after &
b. after |
c. before .^
d. after ^
Que.All relational operators operate on _______________
a. only real part of complex numbers
b. only imaginary part of complex numbers
c. complex numbers
d. numbers which are not complex
Que.What is the output of the following code?
any([])

a. 0
b. 1
c. NaN
d. Error
Que.What is the output of the following code?
all[1, 2, 3, NaN]

a. Error due to NaN
b. 1
c. 0
d. Syntactical Error
Que.What is the output of the following code?
i=0;for i=0:2  
    i=1; end

a. Output is suppressed
b. Output shows 1 3 times
c. Output shows 1 2 times
d. Error