Advertisements
Advertisements
प्रश्न
Which of the following is not a branching statement?
पर्याय
Loop
If-else
Switch
For
MCQ
Advertisements
उत्तर
Loop
shaalaa.com
Introduction of Conditional Statements in Java
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
APPEARS IN
संबंधित प्रश्न
_______ statement can be used as alterative to if-else statement.
Which statement in switch case is used to exit the statement once the appropriate choice is found?
What will be the output for the following snippet:
For (var n=0; n<10; n++)
{
if (n==3)
{
break;
}
document write (n+”<br>”);
}The _______ statement is especially useful when testing all the possible results of an expression.
Differentiate the break and continue statement.
Write the syntax for else-if statement.
What message will be displayed, if the input for age is given as 20, for the following snippet?
Explain switch case statement with example.
Give the output of the following program segment:
int n = 4279; int d;
while(n>0)
(d=n%10;
System.out.println(d);
n=n/100;
}Which of the following data type cannot be used with switch case construct?
