Advertisements
Advertisements
Question
Which of the following is not a branching statement?
Options
Loop
If-else
Switch
For
Advertisements
Solution
Loop
APPEARS IN
RELATED QUESTIONS
Which conditional statement is used to transfer control from current statement to another statement?
Which statement in switch case is used to exit the statement once the appropriate choice is found?
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 are the different types of control statement used in JavaScript?
List out the various branching statements in JavaScript?
Write the general syntax for switch statement.
Write the syntax for else-if 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;Rewrite the following code using single if statement.
if(code=='g')
System.out.println("GREEN");
else if(code=='G')
System.out.println("GREEN");