QuestionQ192

VerifiedFunctions and Exceptions

What is the expected output from the following code?

Question Image

Explanation

The loop multiplies num by x exactly y times. Therefore, func(4) uses the default y value of 2 and returns 16, while func(4, 4) returns 256.

Community Discussion

No comments yet. Be the first to start the discussion!