Home / Programming MCQs / JavaScript MCQs / Question

V

Vishal Gupta • 7.73K Points
Tutor III

Q. Consider the following code snippet.
What will be the result of this code?

Code:
function hypotenuse(p, q) 
{
       function square(n) 
       { 
            return n*n; 
       }
       return Math.sqrt(square(p) + square(q));
}
(A) Square of sum of p and q
(B) Sum of p and q square
(C) Sum of square of p and q
(D) All of above

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.