You've learned how functions can accept parameters and return values. Now let's practice using these concepts together to solve various problems.
Engagement Message
Ready to become a function master?
Type
Multiple Choice
Practice Question
Which function correctly calculates the area of a circle and returns the result?
A. Function A B. Function B C. Function C D. Function D
Suggested Answers
- A
- B - Correct
- C
- D
Type
Fill in The Blanks
Markdown With Blanks
Complete this function that calculates a tip amount and returns it.
Suggested Answers
- 100
- return
- tipAmount
- tipPercent
Type
Sort Into Boxes
Practice Question
Sort these lines of code based on whether they use the function's return value or ignore it.
Labels
- First Box Label: Uses Return Value
- Second Box Label: Ignores Return Value
