Que.What is the output of the following code?sym x c;
if(x~=c)
fprintf('Error');
end
|
a. Error |
b. Error due to x |
c. Error due to c |
d. Output suppressed |
Que.Menu-driven architecture should be done by ________
|
a. if-else structure |
b. switch-case structure |
c. stack |
d. loop structure |
Que.The program to check the highest of n numbers can be done by ________
|
a. Sorting |
b. If-else structure |
c. Switch-case structure |
d. Depends on the nature of n |
Que.Giving conditions using characters, we give them using ____
|
a. ‘’ |
b. ”” |
c. No special character |
d. [] |
Que.The if structure is a _________
|
a. Conditional structure |
b. Logical structure |
c. Nested structure |
d. Biased structure |
Que.The switch-case structure is a _________
|
a. Conditional structure |
b. Logical structure |
c. Multidimensional structure |
d. Hierarchical structure |
Que.What is the output of the following code?if()
p=9;
end
|
a. Error |
b. p=9 |
c. Output is suppressed but p=9 |
d. 0 |
Que.What is the output of the following code?if(x=99)
var=92;
end
|
a. Error |
b. var=92 |
c. Output is suppressed but var=92 |
d. Nan |
Que.The if-else structure does not allow ___________
|
a. Return statement |
b. End statement |
c. Endif statement |
d. Break statement |
Que.What is the output of the following code?if((-10 &&00)||(20134 && 900))
fprintf("%s","True.")
else
fprintf("%s","False.")
end
|
a. True |
b. False |
c. Error |
d. Nan |