The output is
C
A
Explanation:
Given
The given code segment
Required
The output of test_1()
When test_1() is called from main, the following is executed:
def test_1():
test_3() This calls test_3()
print("A") --- This is then executed after test_3() has been executed
For test_3()
def test_3():
print("C") --- This prints C
Back to test_1()
print("A") --- This prints A
So, the output is:
C
A