Match the following with respect to the jump statements \(\begin{array}{cIcI}

2014

Match the following with respect to the jump statements :

image.png

Codes :

  1. A.

    a-ii, b-iii, c-iv, d-i

  2. B.

    a-iii, b-iv, c-i, d-ii

  3. C.

    a-iv, b-iii, c-ii, d-i

  4. D.

    a-iv, b-iii, c-i, d-ii

Attempted by 641 students.

Show answer & explanation

Correct answer: A

Solution: The correct matching is a → ii, b → iii, c → iv, d → i.

  • return — A value associated with it. Explanation: The return statement transfers control back to the caller and can return a value from the function.

  • goto — Requires a label for operation. Explanation: goto jumps to a labeled statement within the same function.

  • break — An exit from only the innermost loop. Explanation: break terminates the nearest enclosing loop or switch, resuming execution after it.

  • continue — The conditional test and increment portions. Explanation: continue skips the remainder of the loop body and proceeds to the loop's next iteration, which involves the loop condition and any increment step.

Explore the full course: Dsssb Tgt Computer Science Paper 2