Unsolved MCQs
Unsolved MCQs
Objective Type
22) If x = 2 and y = 3 , what will be the output of the expression ? x>y? x + y : x*y;
a) 6 b) 5 c) 12 d) 10
23) If a = 5 and b = 10 , what the output of the following expression ? a>b? a*b: a+b;
a) 5 b) 150 c) 100 d) 15
28) In sequence structure , statements are executed in the same order in which they appear in the program .
☐ True ☐ False
30) Use of the statement terminator at the end of an if statement causes a syntax error .
☐ True ☐ False
31) C is an unstructured programming language .
☐ True ☐ False
36) ________ refers to a structure with one if statement inside another if statements .
38) The purpose of ________ label in switch-case statement is the same as that of else in if-else statement .
39) A condition is an expression that is either ______________ or ___________ .