In an if-else ladder, if a condition evaluates to true, what happens to the subsequent
In an if-else ladder, if a condition evaluates to true, what happens to the subsequent
conditions?
Show answerHide answer
Correct answer: (D) None of the subsequent conditions are evaluated.
Explanation
In an if-else ladder, once a condition is true its block runs and control skips the rest of the ladder, so later conditions are not checked.