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)
- A.
0 5
- B.
5 0
- C.
0 -5
- D.
-5 0
Attempted by 742 students.
Sign up free to check your answer
Sign up freeExplore the full course: Bihar Stet Computer Science Complete Course
Loading lesson…

