Functions · Match Terms to Definitions

Read — build a mental model L1 Knowledge Atoms ~2 min

Match the function vocabulary

Match each term to the definition that fits it. The code is there so you can see what each term refers to; one definition fits no term.

def add_tax(price, rate):
    return price * (1 + rate)

cost = add_tax(20, 0.2)

Definitions

  1. A value supplied when the function is called, such as 20
  2. The code that creates a function and says what it does
  3. The result a function hands back to the code that called it
  4. A name in the def line that receives a value, such as price
  5. Asking a function to run, as add_tax(20, 0.2) does
  6. A variable that can be used from anywhere in the program

Choose the definition for each term

Each definition fits at most one term, and at least one definition fits none.

Why this activity was chosen
  • Bloom level: L1 Knowledge: Pair each technical term with the definition that fits it.
  • Block Model level: Atoms (step 1 of 4): individual syntax elements: names, operators, keywords and values.
  • Misconception targeted: shown after you answer, so it does not give the answer away.

Recall of vocabulary is the base of the taxonomy, and matching tests several related terms at once, including the pairs novices mix up. The terms are anchored to a short code fragment so each definition can be checked against something concrete, and one extra definition fits no term so the last pair cannot be answered by elimination.

AI’s role here: AI may point at the part of the code a term refers to. It must not reveal the pairing, because retrieving the link is the skill.