Syntax Error and Spelling Error- Multiple Choice Questions

Que.What is the output of the following code?
cos(pi/2)

a. 0
b. Close to 0
c. less than 0
d. Undefined
Que.What is the output of the following code?
sprintf(“5%”)

a. “5”
b. “5%”
c. 5
d. 5%
Que.Why isn’t the answer 10.230?
>> sprintf("%1.3d", 10.23)
    ans = 
          "1.023e+01"

a. We’ve used %d
b. We’ve used “”
c. Character arrays are like this
d. Undefined answer
Que.How many times will the loop run?
for i={1:.1:5}
   p=p+1;
   end

a. 50
b. Infinite
c. 0
d. 1
Que.What is the output of the following code?
A=[1 2 3 0; 4 5 6 8; 1 2 3 4; 1 3 4 5 ; 4 0 0 0 ];
   length(A)

a. 5
b. 4
c. 5*4
d. 4*5
Que.What will be the result after we press Return?
>> input('Ro !')
   Ro ! Ho !

a. ans= Ho !
b. Error
c. No such command named input
d. Cannot be determined
Que.How long will ‘Hola !’ get printed?
>>input(‘Hola !’)
   Hola !

a. Until a value is given as an input
b. Until a character is given as an input
c. Until anything is given as an input
d. Once
Que.What is the output of the following code?
syms x
   limit(1/-x,x,-0)

a. NaN
b. Inf
c. 0
d. Syntactical error
Que.Why did the following happen?
>> p
   p = 
       "10"
   >> p+1
   ans = 
        "101"

a. p is a character array
b. p is binary
c. Error
d. Cannot be determined
Que.Why did the following happen?
>> sprintf("   %   ")
   ans = 
        "  "

a. Error
b. % is not recognized
c. % is an operator
d. Cannot be determined