Variables · Complete the Code

Shape — improve or specify L3 Application Atoms ~2 min

Complete the bill total

The program should print the total the customer pays: the subtotal plus delivery. Which expression completes the blank?

subtotal = 40
delivery = 5
total = ______
print(total)

Choose one

Why this activity was chosen
  • Bloom level: L3 Application: Choose the fragment that completes a partly written program.
  • 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.

Application without a blank page: students apply a concept by deciding what the missing piece must be, which requires reading the surrounding code and the stated requirement. Distractors encode off-by-one, quoting and operator errors that generated code often contains.

AI’s role here: AI may hint at what the blank has to do. It must not name the fragment.