Advertisements
Advertisements
Question
_______ statement can be used as alterative to if-else statement.
Options
While
If
Else-if
Switch
Advertisements
Solution
Switch statement can be used as alterative to if-else statement.
APPEARS IN
RELATED QUESTIONS
Which conditional statement is used to transfer control from current statement to another statement?
The _______ statement is especially useful when testing all the possible results of an expression.
<script type=“text/javascript”>
x = 6 + “3”;
document.write(x);
</script>
what will be the output?
List out the various branching statements in JavaScript?
Write the general syntax for switch statement.
Differentiate the break and continue statement.
What is if statement and write its types.
What message will be displayed, if the input for age is given as 20, for the following snippet?
The absence of which statement leads to fall through situation in switch case statement?
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;
}