Professional Documents
Culture Documents
Icps Ce
Icps Ce
2. def proc(x):
x=2*x*x
def main():
x=10
proc(x)
print x
a) 200 b) 10 c) 0 d) Error
a) {‘John’:50,’Tom’:60}, {‘John’:50,’Tom’:45}
b) b) {‘John’:50,’Tom’:45}, {‘John’:50,’Tom’:45}
c) {‘John’:50,’Tom’:60}, {‘John’:50,’Tom’:60}
d) Error, Error
4. What will be the output obtained after executing the following statements:
i=5
def f(arg=i):
print(arg)
i=6
f()
a) 6 b) 0 c) 5 d) Error