Class - 12 CBSE Computer Science — Assertion Reason Type Questions

Assertion (A): break and continue are termed as Jump statements.

Reasoning (R): Jump statements can only be used with looping constructs but not with conditional constructs.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.

Python Control Flow

3 Likes

Answer

Both A and R are true and R is the correct explanation of A.

Explanation
In Python, break and continue are categorized as jump statements because they alter the flow of control in loops. Jump statements, such as break and continue, are used within loop constructs to control the flow of execution. Python does not have a switch-case conditional construct. Hence, in Python, jump statements are not used with conditional constructs.

Answered By

1 Like