QuestionQ242

VerifiedFunctions and Exceptions

Which of the following code snippets correctly define a function that returns its sole argument doubled?

Choose two
Explanation

A valid function definition needs a legal identifier, parentheses for its parameter list, and a return statement. Both multiplying a value by 2 and adding a value to itself return twice that value.

Community Discussion

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