🧠Concept

Pick the right answer.

Concept · Q1
What range of values does (loudness) return?
Concept · Q2
What happens to the (loudness) value immediately after a loud clap?
Concept · Q3
A clap counter detects loudness > 50 inside a forever loop but counts a single clap many times. What is the most likely cause?
Concept · Q4
Which block needs browser microphone permission to measure sound?

👀Code Reading

Look at the blocks. Predict what happens.

Code Reading · CR1
This script adds 10 readings. How many items does the list sounds hold at the end?
when flag clicked
delete all of [sounds v]
repeat (10)
  add (loudness) to [sounds v]
  if <(length of [sounds v]) > (5)> then
    delete (1) of [sounds v]
  end
end
Code Reading · CR2
What is the purpose of the wait (0.5) secs block in this clap counter?
when flag clicked
set [claps v] to (0)
forever
  if <(loudness) > (50)> then
    change [claps v] by (1)
    wait (0.5) secs
  end
end
Code Reading · CR3
A student clicks the flag in a quiet room, then shouts loudly one second later. Will the sprite say "Loud!"?
when flag clicked
if <(loudness) > (50)> then
  say [Loud!] for (2) secs
end

🐛Find the Bug

Something is broken. Pick the fix.

This clap counter is supposed to count one clap per loud sound. Instead it adds hundreds of counts for a single clap. What is wrong?

when flag clicked
set [claps v] to (0)
forever
  if <(loudness) > (5)> then
    change [claps v] by (1)
  end
end

🛠️Build It

Pick a level. Build it. Check the boxes.

🧑‍🏫
For the teacher

Review the student's project, then check each thing they did.

Project Evaluation

0 of 4 ticked

💬Talk About It

Present your project to your teacher or a classmate.

  1. 1️⃣Show your clap counter.
  2. 2️⃣Point to the threshold number and the cooldown wait.
  3. 3️⃣Clap to show it counting.
🧑‍🏫
For the teacher

Watch the student present, then check each thing they did.

Presentation Checklist

0 of 6 ticked

📤Submit

Send your results to your teacher and parent.

0 of 0 answered