Computer Science Grade 5 20 min

Asking for Help

Asking for Help

Tutorial Preview

1

Introduction & Learning Objectives

Learning Objectives Identify the difference between a helpful and an unhelpful question about a coding problem. Explain what they want their code to do (the expected outcome). Describe what their code is actually doing (the actual outcome). List at least two debugging steps they tried before asking for help. Formulate a complete, specific question about a coding problem involving loops or conditionals. Create a minimal, reproducible example of their coding problem. Have you ever been stuck on a coding puzzle and just wanted to shout, 'It's broken!'? 🙋‍♀️ Let's learn how to turn that shout into a super-smart question that gets you unstuck faster! This lesson teaches you the most important secret skill of expert programmers: how to ask for help effectivel...
2

Key Concepts & Vocabulary

TermDefinitionExample DebuggingThe process of finding and fixing errors, or 'bugs,' in your code. Asking for help is a part of debugging!You run your code and the character moves left instead of right. You look through your code line-by-line to find the mistake. That's debugging. Expected OutcomeWhat you want your program to do. It's the goal you are trying to achieve with your code.I expect my loop to run 5 times and print the numbers 1, 2, 3, 4, 5. Actual OutcomeWhat your program actually does when you run it. This might be different from what you expected.My loop actually runs forever and never stops. This is the bug I need to fix. Reproducible ExampleA small, simple piece of code that shows the problem you are having. It lets someone else run your code and see the...
3

Core Syntax & Patterns

The 'Try Three, Then Ask' Rule Before asking for help, try to solve the problem on your own in at least three different ways. Use this rule when you first get stuck. It helps you become a better problem-solver and shows the person you ask that you've already put in effort. Your three tries could be: 1. Rereading your code carefully. 2. Adding a print statement to see a variable's value. 3. Searching for a similar example in your notes. The 'What, How, Why' Question Pattern 1. WHAT I want to do. 2. HOW I tried to do it (show code). 3. WHY it's not working (actual vs. expected outcome). This is the best way to structure your question. It gives the helper all the information they need to understand your problem quickly without having to ask lo...

4 more steps in this tutorial

Sign up free to access the complete tutorial with worked examples and practice.

Sign Up Free to Continue

Sample Practice Questions

Challenging
You've been trying to fix a loop for 20 minutes. You tried changing the start value, you tried changing the conditional from `<` to `<=`, and you added a print statement to watch the variable. It still doesn't work. How do you summarize this for a teacher?
A.It's impossible.
B.I give up. Just tell me the answer.
C.I think the computer is lagging.
D.I'm trying to make this loop count to 10, but it's not working. I've already tried adjusting the start value and the conditional, and I used a print statement to check the variable. Can you see what I'm missing?
Challenging
You are confused about the fundamental difference between when to use a `while` loop versus a `for` loop in your code. Which question is most likely to lead to a deep and helpful answer?
A.Can you give me an example of a problem where a `while` loop is a better choice than a `for` loop, and explain why?
B.Which loop is better?
C.Just tell me which loop to use for my project.
D.Why did they invent two different kinds of loops?
Challenging
Your program has three known bugs: 1) The player's score sometimes calculates incorrectly. 2) The background music doesn't always play. 3) The game crashes if the player hits a certain wall. Which bug should you ask for help with first, and why?
A.The music bug, because good games need music.
B.The crashing bug, because it's a 'blocker' that stops you from testing the rest of the game.
C.The score bug, because points are the most important part of a game.
D.It doesn't matter which one you pick.

Want to practice and check your answers?

Sign up to access all questions with instant feedback, explanations, and progress tracking.

Start Practicing Free

More from Advanced Topics

Ready to find your learning gaps?

Take a free diagnostic test and get a personalized learning plan in minutes.