Programming - Control Statements
You Are Here :: Home > JAVA > Control Statements - General Questions
13.
The___________ is a branching statement that contains two forms: labeled and unlabeled.
A.
break statement
B.
continue statement
C.
If Statement
D.
if else statement
Answer: Option A
Explanation:
The break statement is a branching statement that contains two forms: labeled and unlabeled.
14.
The _________ is used for breaking the execution of a loop
A.
continue statement
B.
if else statement
C.
break statement
D.
nested if statement
Answer: Option C
Explanation:
The break statement is used for breaking the execution of a loop
15.
Break Statements also terminates the ______________.
A.
if else statement
B.
switch statements
C.
continue statement
D.
If Statement
Answer: Option B
Explanation:
Break Statements also terminates the switch statements.
16.
___________ is a branching statement that are used in the looping statements (while, do-while and for) to skip the current iteration of the loop and resume the next iteration .
A.
break statements
B.
Continue statements
C.
nested if statements
D.
if else statement
Answer: Option B
Explanation:
Continue statements:This is a branching statement that are used in the looping statements (while, do-while and for) to skip the current iteration of the loop and resume the next iteration .
17.
__________is a special branching statement that transfers the control to the caller of the method.
A.
switch statements
B.
nested if statements
C.
break statements
D.
Return statements
Answer: Option D
Explanation:
Return statements:It is a special branching statement that transfers the control to the caller of the method.
18.
___________ is used to return a value to the caller method and terminates execution of method.
A.
nested if statements
B.
switch statements
C.
Return statements
D.
continue statements
Answer: Option C
Explanation:
Return statement is used to return a value to the caller method and terminates execution of method.
« prev