What is the sequence of statement contained in a pair of braces called as?
block
function
branch
Class
What value is placed in choice. int a=5,b=10,c=15 choice=a>b && a>c? a:(b>c? b:c);
5
15
10
0
What will the comparison operators in Java returns?
Boolean value
An integer
depends upon data type
both a and b
if (0) { System.out. println ("Sreenath"); } else { System.out.Println ("Suresh"); }
What is the output of the given program?
Syntax error
sreenath
Suresh
Which of the following statement can make decisions based on single integer value?
if
else if
cause
switch
What is the buit-in multiway decision statement in Java?
loop
What is meant by conditional branching?
Branching based on particular condition.
Branching done if condition is true
Branching is done if condition is false
Branching takes place without any decision.
Which of the following is the general form of the conditional operator?
expression 1:expression 2?conditional expression;
conditional expression? expression 1 : expression 2;
Conditional expression:expressions?expression2;
All of them
What is a chain of if in which the statement associated with each 'else' is an 'if'?
else if ladder
nested if...else
Switch case statement
Both a and b
What is the procedure followed by break statement?
Terminates the whole program.
Terminate the enclosing switch statement.
Execute the appropriate switch statement.
All of them.