Question:medium

Match List-I with List-II 

Choose the correct answer from the options given below: 
 

Show Hint

Remember the difference between `break` and `continue`: `break` \textbf{b}reaks \textbf{o}ut of the loop entirely. `continue` \textbf{c}ontinues to the next iteration. For `if` vs `switch`, `if` is more flexible and can check complex, unrelated conditions, while `switch` is for checking many possible constant values of a single variable.
Updated On: Feb 18, 2026
  • (A) - (I), (B) - (II), (C) - (III), (D) - (IV)
  • (A) - (I), (B) - (III), (C) - (II), (D) - (IV)
  • (A) - (II), (B) - (I), (C) - (IV), (D) - (III)
  • (A) - (III), (B) - (IV), (C) - (I), (D) - (II)
Show Solution

The Correct Option is C

Solution and Explanation

Step 1: Concept Overview:
This question assesses understanding of fundamental control flow statements in languages like C++, Java, or C.
Step 2: Statement Analysis:
Analyze the correct pairings for each List-I statement:
(A) if statement: Evaluates a boolean expression, potentially complex with logical operators (`&&`, `||`), and chained with `else if` for multiple conditions. Therefore, it (I) can have multiple conditions.
(B) switch statement: Evaluates a single variable/expression against `case` constants. Based on a single integral or enum expression. Thus, it (II) can only have one condition (compared against multiple cases).
(C) break statement: Terminates the innermost loop or `switch` block. Control moves to the subsequent statement. Thus, it (IV) exits the entire loop.
(D) continue statement: Ends the current loop iteration and proceeds to the next. It (III) skips the current iteration and continues with the next.
Step 3: Answer & Error Analysis:
Correct pairings: (A)-(I), (B)-(II), (C)-(IV), (D)-(III). The provided options do not match. There's an error in the question's options. If forced to choose the "best" fit, consider option (3): (A)-(II), (B)-(I), (C)-(IV), (D)-(III). This option correctly pairs `break` (C) with (IV) and `continue` (D) with (III). It incorrectly swaps `if` (A) and `switch` (B). With two correct pairings, this is the most likely intended answer, despite the error.
Was this answer helpful?
0


Questions Asked in CUET (PG) exam