CBSE · 083Class XII · 2025Section A1 mark

Question 10

4 March 2025 · Computer Science (083)

Consider the statements given below and then choose the correct output from the given options :

python
def Change(N) :
    N=N+10
    print(N,end='$$')
N=15

Change(N) print(N)

Answer

(a) 25$$15

Explanation

Inside the function, N is local and becomes 25. The global N remains 15 because integers are immutable and global N wasn't referenced with 'global'.