12th Class Computers Science Sample Paper Functions - Sample Paper - 2

  • question_answer
    What will be the output of the following code?  
     

    A) 100                  

    B) 50

    C) Error                

    D) none of the above

    Correct Answer: B

    Solution :

    [b] 50, As we use global variable inside local function by using keyword "global”, so, the value will be changed.


You need to login to perform this action.
You will be redirected in 3 sec spinner