What will be the output of the following code segment? a = 5 def func_1(b=10):…

PYQ Bihar STET 2025Modified — slightly modified from the official paper; see the solution

What will be the output of the following code segment? a = 5 def func_1(b=10): global a a = b - 10 b += a print(a, b) func_1(a)

  1. A.

    0 5

  2. B.

    5 0

  3. C.

    0 -5

  4. D.

    -5 0

Attempted by 742 students.

Sign up free to check your answer

Sign up free

Explore the full course: Bihar Stet Computer Science Complete Course

Loading lesson…