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

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

    A) (14, 0)   

    B) 14, 0

    C) 14                    

    D) 0

    Correct Answer: A

    Solution :

    [a] When multiple values are returned by a function in a single variable (like in the given code, all values will be returned to res variable) then it will return as a tuple, so the output of the given code will be (14,0).   


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