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>”);
}What is meant by conditional statements in JavaScript?
List out the various branching statements in JavaScript?
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?
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?
Rewrite the following code using single if statement.
if(code=='g')
System.out.println("GREEN");
else if(code=='G')
System.out.println("GREEN");