Level 3

Ask a Question

Level 3 · Chapter 11

What this lesson follows

CSTA K–12 Computer Science Standards (2017)

Algorithms & Programming · Grades 3–5

Split a big problem into smaller parts.

Code 1B-AP-11Read the official text

Also practised: 1B-AP-15

Common Core State Standards for Mathematics

Operations & Algebraic Thinking · Grade 4

Use the four operations to solve stories.

Code 4.OA.A.2Read the official text

The short lines are our own words. We matched this lesson to these standards ourselves; the standards' owners have not reviewed or endorsed this course.

Common Core State Standards © 2010 National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.

Today you will ask the user a question and use their answer.

1👋 Warm-Up

For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 1B
✦ CSTA 1B-AP-11 · CSTA 1B-AP-15 · ISTE 1.5.a · Standards
🎯 I canask the user a question and use their answer
🧩 New blocks2 blocks
📝 New words5 words
⏱ Lesson time~40 min
Teacher Guide

📋 Before class

⚠️ Common misconceptions

  • Students may try to use (answer) BEFORE the ask block runs — answer is empty until the user types something.
  • Students may confuse the (answer) round reporter with a variable they create — explain that (answer) is a special built-in block.

🎯 Differentiation

🐢 Struggling: Print a two-step diagram: 1) ask block, then input box appears; 2) answer block holds what was written. Students trace the flow with a finger.

🚀 Advanced: Challenge them to ask two questions in a row, store each answer in a different variable (name and age), then use both in a say statement.

💡 During the lesson

  • Warm-UpAsk the class: "Who has filled in their name on a website or phone game?" Show of hands. Tell students: "That input box on websites works just like today's ask block. The program waits for you to write — then uses your answer." This connects a familiar digital experience to the new block.
    Act this out physically. You are the "cat" — ask a student: "What is your name?" The student says their name. You repeat it back loudly. Tell the class: "That is EXACTLY what ask and wait and say (answer) do in Scratch. The cat is the program. You are the user."
  • Try ItAfter "Which answer does the cat keep?", ask: "What if you need the name again later in the program?" Show that (answer) only holds the LAST written thing. If you ask again, the old answer is gone. "How do you keep the name?" saves the name in a variable. Ask: "Why would saving in a variable be useful?" (Use the name many times, use it later in a game, etc.)
  • PlanAsk: "What MUST come first — the ask block or the say block?" (Ask must come first.) Students who answer this correctly have understood the core sequencing concept. Do the first box together, then pick and watch both pictures. Ask what each box changes.
  • BuildAsk: "After the second ask runs, what does (answer) hold — the name or the age?" (The age — (answer) only keeps the LAST thing typed.) This reinforces the core idea that (answer) is overwritten each time. Two separate say (answer) blocks let the cat respond to each question in turn — no other new blocks needed.