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

  • question_answer
    Write the output of the following code.  
     

    A) Hello! Mahesh 

    B) Hello!

    C) Mahesh            

    D) none of the above

    Correct Answer: A

    Solution :

    [a] As Mahesh passes as a parameter at calling statement that is received by "name" parameter in function definition and then it will print "Hello! Mahesh". 


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