ECAT Computer Science MCQS Page 4
Conditional operator takes _____________ operands.
3
2
1
5
If x=10 and y=5,, what will the output of the following expression?
x>y? x*y: x+y
x>y? x*y: x+y
50
5
10
15
In if statement, false is represented by :
0
1
2
3
You can use a decision statement to:
All of these
Run a series of statements if a test fails
Test series of conditions
Test whether a condition is true or false
From the followings which is different
Function
If
Else-if
Switch
From the following which is called control statement
All of the above
If
If-else
Else-if
Which of the following is NOT part of an if statement?
All of are part of an IF statement
A condition that evaluates as a Boolean
A condition that evaluates as true or false
A true block
From the following statement which is the control statement
All of the above
If
Else if
Switch
Switch statement is an alternative of:
Nested if-else
if
if-else
Nested if
_______ is created when the same name is used for two different attributes
Homonyms
Synonyms
Redundant information
Mutually exclusive data
What does a compound condition use to join two condition?
Logical operator
Relational operator
Relational Results
Logical results
In if statement , true is represented by:
1
0
2
3
Continue Reading Go to Next Page
Google Ads
Leave a Reply