Advertisements
Advertisements
प्रश्न
Which of the following is not a branching statement?
पर्याय
Loop
If-else
Switch
For
MCQ
Advertisements
उत्तर
Loop
shaalaa.com
Introduction of Conditional Statements in Java
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
APPEARS IN
संबंधित प्रश्न
What will be the output for the following snippet:
For (var n=0; n<10; n++)
{
if (n==3)
{
break;
}
document write (n+”<br>”);
}<script type=“text/javascript”>
x = 6 + “3”;
document.write(x);
</script>
what will be the output?
What are the different types of control statement used in JavaScript?
What is meant by conditional statements in JavaScript?
Differentiate the break and continue statement.
What is if statement and write its types.
Write the syntax for else-if statement.
Consider the following program segment and select the output of the same when n = 10:
switch(n)
{Case 10: System.out.println(0*2);
case 4: System.out.println(n*4); break;
default : Syslem.out.println(n);
}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?
