Identify the odd one from the keywords jump statements.
a) break b)switch c)goto d)continue
Answers
Answered by
3
Answer:
goto
Explanation:
there's no keyword as such.
Answered by
0
The odd one from the keywords jump statements is Break.
- a) break is the correct option.
- Jump statements induce an unconditional jump elsewhere in the code to another statement.
- The loop is immediately terminated when the break statement is encountered within a loop, and program control resumes at the next statement following the loop. Hence, the break statement is not a jump statement.
- A goto declaration provides an unconditional jump in the same function from the goto to a labelled statement. So, it is a jump statement.
- If a specified condition occurs, the continue statement breaks one iteration (in the loop) and continues with the next iteration in the loop. Thus, it is also a jump statement.
- When we have multiple conditions and when a specific condition is satisfied, we need to execute a block of statements. As control jumps to the satisfied condition block so it is a kind of jump statement.
#SPJ3
Similar questions