🧠Concept

Pick the right answer.

Concept · Q1
What does hide variable [score ▾] do to the score variable?
Concept · Q2
Which of these is the correct way to show a variable monitor using code?
Concept · Q3
lives starts at 3. Read the script. After it runs, what does the lives monitor display?
when flag clicked
set [lives v] to (3)
hide variable [lives v]
change [lives v] by (-1)
change [lives v] by (-1)
change [lives v] by (-1)
show variable [lives v]
Concept · Q4
A student sets score to 0 and calls hide variable [score ▾]. While the monitor is hidden, the script runs change [score ▾] by (10) three times. Then the student calls show variable [score ▾]. What value does the monitor display?

👀Code Reading

Look at the blocks. Predict what happens.

Code Reading · CR1
After pressing 'D' for the first time, what is the value of debug_mode and is debug_x visible?
when flag clicked
set [debug_mode v] to (0)
hide variable [debug_x v]
when [d v] key pressed
if <(debug_mode) = (0)> then
  set [debug_mode v] to (1)
  show variable [debug_x v]
else
  set [debug_mode v] to (0)
  hide variable [debug_x v]
end
Code Reading · CR2
The player starts the game and presses 'D' two times. What is the final value of debug_mode, and is the debug_x box shown?
when flag clicked
set [debug_mode v] to (0)
hide variable [debug_x v]
when [d v] key pressed
if <(debug_mode) = (0)> then
  set [debug_mode v] to (1)
  show variable [debug_x v]
else
  set [debug_mode v] to (0)
  hide variable [debug_x v]
end
Code Reading · CR3
The game ends when lives = 0. Is the score box on screen after the game ends?
when flag clicked
show variable [score v]
forever
  if <(lives) = (0)> then
    stop [all v]
    hide variable [score v]
  end
end

🐛Find the Bug

Something is broken. Pick the fix.

When lives reaches 0, the game ends but the score monitor stays on screen. What is missing?

when flag clicked
show variable [score v]
forever
  if <(lives) = (0)> then
    set [score v] to (0)
    stop [all v]
  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 project.
  2. 2️⃣Point to a variable monitor.
  3. 3️⃣Hide it, then show it again.
  4. 4️⃣Say one game example where hiding is the right choice.
🧑‍🏫
For the teacher

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

Presentation Checklist

0 of 3 ticked

📤Submit

Send your results to your teacher and parent.

0 of 0 answered