Lesson 15 Quiz: Functions: Reusable Blocks

Self-check only. Your answers stay in your browser — nothing is submitted or graded. Pick an answer for each question, then press Check my answers to see the answer key and explanations.

1. What is a function, and what is the difference between defining one and calling one?

2. What is a parameter, and what is an argument?

3. In `describe_pet("Biscuit", "dog")`, which argument goes to which parameter?

4. What is the difference between printing a result and returning one?

5. Why is changing a greeting easier in the function version than in the repeated-lines version?

← Back to Lesson 15 · Enroll free in the full course