Advertisements
Advertisements
प्रश्न
_______ statement can be used as alterative to if-else statement.
पर्याय
While
If
Else-if
Switch
MCQ
रिकाम्या जागा भरा
Advertisements
उत्तर
Switch statement can be used as alterative to if-else statement.
shaalaa.com
Introduction of Conditional Statements in Java
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
APPEARS IN
संबंधित प्रश्न
Which conditional statement is used to transfer control from current statement to another 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>”);
}What are the different types of control statement used in JavaScript?
List out the various branching statements in JavaScript?
Differentiate the break and continue statement.
What is if statement and write its types.
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;Which of the following is not true with regards to a switch statement?
