Que.What is the output of the following code?det([1 2 3; 4 5 6; 7 8 9])
|
a. Error |
b. 0 |
c. -0 |
d. A very small value |
Que.What is the output of the following code? >> { 1 2}
ans =
1*2 cell array
[1] [2]
>> ans+{3 4}
|
a. { 1 2 3 4} |
b. { 1 23 4} |
c. { 4 6} |
d. Error |
Que.What is the output of the following code?tf2zp({1 2}, {2 1})
|
a. 0 |
b. Returns the zeros and poles of the transfer function (s+2)/(2s+1) |
c. Syntactical Error |
d. Logical Error |
Que.What is the output of the following code?syms ‘t’,’p’;
|
a. Both t and p are defined as symbolic |
b. Only t gets defined as symbolic |
c. Only p gets defined as symbolic |
d. Nothing happens |
Only t gets defined as symbolic
Que.What is the error in the following?input(“pop”)
|
a. None |
b. “” |
c. Parentheses |
d. No such command |
Que.What is the error in the following code?for i={1: 10}
p=a+1
end
|
a. None |
b. {} |
c. The : operator |
d. Cannot be determined |
Que.What is the output of the following code?limit[1/x,0]
|
a. NaN |
b. Inf |
c. Syntactical Error |
d. Logical error |
Que.What is the output of the following code?length{ 1 2 }
|
a. Error due to space after 2 |
b. Error due to {} |
c. Syntactical Error |
d. 2 |
Que.What is the output of the following code?limit((1 + 1/n)^n,n=Inf)
|
a. e |
b. exp(1) |
c. Syntactical Error |
d. Cannot be determined |
Que.What is the output of the following code?A={1 2 3 4}
sum(A)
|
a. Error |
b. 10 |
c. { 10 } |
d. Logical Error |