Syntax Error and Spelling Error set 4

Que.What is the final value of i?
for i=[1:10]
   end

a. 0
b. 1
c. Error
d. 10
Que.What is the output of the following code?
syms p q;
   x=p+2q;
   findsym[x]

a. Syntactical Error
b. p,q
c. No such command
d. p
Que.What is the output of the following code?
syms p q;
   x=p+2*q;
   diff[x];

a. 1
b. 0
c. Syntactical Error
d. Logical Error
Que.What is the output of the following code?
syms pi;
   p=2sin[pi]/cos[pi] + tan[3pi];

a. 0
b. A value very close to 0
c. Syntactical Error
d. Error in the expression
Que.What is the output of the following code?
solve[‘x^2+1=0’]

a. x=j,-j
b. x=+i,-i
c. Syntactical Error
d. Logical Error
Que.What is the output of the following code?
syms [p,q]

a. Establishes p and q as symbolic variables
b. Syntactical Error
c. Logical Error
d. Only p is symbolically defined
Que.Vectors defined by [] can be cellular vectors.
a. True
b. False
c. May be True or False
d. Can’t say
Que.What is the output of the following code?
tf2zp({1 2}, {2 1})error{“404”}

a. 404
b. Error in the command
c. Error 404
d. Syntactical Error
Que.What is the output of the following code?
warning(“a”)

a. Warning: a
b. Error in the code
c. Syntactical Error
d. Logical Error
Que.What is the output of the following code?
syms ‘t’,’p’;poly{1,2}

a. Syntactical Error
b. 1 3 2
c. Cannot be determined
d. 0