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 of the following is not a branching statement?
In which loop the condition is evaluated, before executing a statement?
The _______ statement is especially useful when testing all the possible results of an expression.
What are the different types of control statement used in JavaScript?
What is meant by conditional statements in JavaScript?
Write the general syntax for switch statement.
Differentiate the break and continue statement.
What is if statement and write its types.
Which of the following data type cannot be used with switch case construct?
A student executes the following program segment and gets an error. Identify the statement which has an error, correct the same to get the output as WIN.
boolean x=true;
switch(x)
{ case 1:System.out.println("WIN");break;
case 2;System.out.println("LOOSE");
}