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?
What will be the output for the following snippet:
For (var n=0; n<10; n++)
{
if (n==3)
{
break;
}
document write (n+”<br>”);
}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 is meant by conditional statements in JavaScript?
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?
Rewrite the following code using the if-else statement:
int m = 400;
double cl). = (m>300) ? (m/10.0) * 2; (m/20.0) - 2;