Test Index
CBSE Class 12 Computer Science 2023 Paper Compartment
© examsnet.com
Question : 24 of 35
Marks:
+1,
-0
(a) Write the output of the Python code given below :
g=0def fun1(x,y): global g g=x+y return gdef fun2(m,n): global g g=m-n return gk=fun1(2,3)fun2(k,7)print(g)OR(b) Write the output of the Python code given below :
a=15def update(x): global a a+=2 if x%2==0: a*=x else: a//=xa=a+5print(a,end="$")update(5)print(a)
Go to Question: