🧠Concept

Pick the right answer.

Concept · Q1
To undo, you take the LAST item. To replay in order, you take the FIRST. What changes?
Concept · Q2
A list saved holds your moves. How do you take back the newest move?
Concept · Q3
A list messages holds [A, B, C] (A added first). You run this. What is result and what remains?
set [result v] to (item (1) of [messages v])
delete (1) of [messages v]
Concept · Q4
Why check length of [saved] > 0 before taking an item?

👀Code Reading

Look at the blocks. Predict what happens.

Code Reading · CR1
Three items are added to saved in order: "X", "Y", "Z". What is result after this script runs?
delete all of [saved v]
add [X] to [saved v]
add [Y] to [saved v]
add [Z] to [saved v]
set [result v] to (item (length of [saved v]) of [saved v])
delete (length of [saved v]) of [saved v]
Code Reading · CR2
The same three items are added to messages in order: "X", "Y", "Z". What is result after this script runs?
delete all of [messages v]
add [X] to [messages v]
add [Y] to [messages v]
add [Z] to [messages v]
set [result v] to (item (1) of [messages v])
delete (1) of [messages v]
Code Reading · CR3
This should take back the newest move from saved. What is the bug?
set [result v] to (item (1) of [saved v])
delete (1) of [saved v]

🐛Find the Bug

Something is broken. Pick the fix.

This should take the last item from saved, but it says a blank when saved is empty. What is the fix?

set [result v] to (item (length of [saved v]) of [saved v])
delete (length of [saved v]) of [saved v]
say (result) for (2) secs

🛠️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 saved and messages monitors.
  2. 2️⃣Add and take items.
  3. 3️⃣Point to which item leaves first from each.
🧑‍🏫
For the teacher

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

Presentation Checklist

0 of 4 ticked

📤Submit

Send your results to your teacher and parent.

0 of 0 answered