1.

Consider the following code snippet
function hypotenuse(p, q) 
{
function square(n)
{
return n*n;
}
return Math.sqrt(square(p) + square(q));
}

What does the above code result?

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
E. None of these
Answer» D. All of above


Discussion

No Comment Found

Related MCQs