Que.What is the output of the following code?disp(“12”)
|
a. ‘12’ |
b. “12” |
c. 12 |
d. Error |
Que.What is the output of the following code?fprintf(“%f”,.123)
|
a. .123000 |
b. %f |
c. Error |
d. .123 |
Que.What is the size of ans variable after the following code?sprintf('23 23')
ans=
’23 23’
|
a. 14 bytes |
b. 10 bytes |
c. Error |
d. 1*5 |
Que.Amongst multiple elseif and nested if, which would take less runtime?
|
a. multiple elseif |
b. nested if |
c. elseif |
d. elseif and nested if |
Que.What is the output of the following code?if(x~=c)
p=0;
end
|
a. p=0 |
b. Output will be suppressed |
c. Error |
d. Cannot be determined |
Que.The end statement is given multiple times in _________
|
a. Multiple elseif |
b. Nested if |
c. elseif |
d. if |
Que.What will happen if we don’t give an otherwise block to our switch structure?
|
a. Error |
b. Infinitely demands a correct variable for case |
c. Returns 0 |
d. Moves on to the next block |
Moves on to the next block
Que.What is the output of the following code?syms x;
if(x>50)
fprintf('Error')
end
|
a. Error |
b. Prints Error |
c. Does not print error |
d. Cannot be determined |
Que.While developing a switch-case structure, the value for case can be _________
|
a. Single only |
b. Multiple |
c. Infinite |
d. 0 |
Que.What is the output of the following code?syms x c;
if(x~=c)
fprintf(‘Error’);
end
|
a. Error |
b. Error due to x |
c. Error due to c |
d. Error due to x and c |