Consider the following Python code. A, B = 10, 5 def FUN(B = 10): global A A…

PYQ EMRS TGT/PGT (ESSE) 2025

Consider the following Python code.
A, B = 10, 5
def FUN(B = 10):
global A
A -= 5
B += 5
print(A, B, end=' ')
FUN(A)
FUN()
print(B)
Which of the following is the correct output of this program?

  1. A.

    5 10 0 10 5

  2. B.

    5 15 0 10 5

  3. C.

    5 10 0 15 5

  4. D.

    5 15 0 15 5

Attempted by 298 students.

Sign up free to check your answer

Sign up free

Explore the full course: Emrs Cs Tier 2

Loading lesson…