Advertisements
Advertisements
प्रश्न
_______ statement can be used as alterative to if-else statement.
विकल्प
While
If
Else-if
Switch
Advertisements
उत्तर
Switch statement can be used as alterative to if-else statement.
APPEARS IN
संबंधित प्रश्न
Which conditional statement is used to transfer control from current statement to another statement?
Which of the following is not a branching statement?
The _______ statement is especially useful when testing all the possible results of an expression.
List out the various branching statements in JavaScript?
Write the syntax for else-if statement.
Explain switch case statement with example.
Rewrite the following code using the if-else statement:
int m = 400;
double cl). = (m>300) ? (m/10.0) * 2:(m/20.0)−2;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?
Which of the following is not true with regards to a switch statement?
