Sample lesson · Computer Science · Grades 9-12
Building Blocks of Code
Intro computer science review deck on variables, data types, conditionals, loops, functions, and debugging, with short Python examples.
- 23 questions
- 5 categories
- 10 games
The questions
Speak Code
- What do we call a step-by-step plan for solving a problem?Algorithm
- What do we call a set of instructions a computer follows in order?Program
- What do we call one pass through a loop?Iteration
- What do we call joining strings together, like "2" + "3"?Concatenation
Store It
- What do we call a named container that stores a value?Variable
- x = 5, then x = x + 2. What is x?7
- What data type is "hi", text inside quotes?String
- What data type has only two values, True and False?Boolean
- In score = 10, what does the = sign do?Assigns a value
Decide and Repeat
- What do we call code that runs only if something is true?Conditional
- How many times does for i in range(3) run?3
- Which operator compares two values for equality?==
- Which loop repeats as long as a condition is true?While loop
- What do we call a loop whose condition never becomes false?Infinite loop
Reuse It
- What do we call a named, reusable block of code?Function
- In def greet(name):, what is name?Parameter
- In greet("Sam"), what is "Sam"?Argument
- Which keyword sends a value back from a function?return
Squash It
- What do we call an error in a program?Bug
- You forgot the colon after if x > 0. What kind of error is that?Syntax error
- Your program runs but prints the wrong average. What kind of error is that?Logic error
- What do we call explaining your code out loud to find a bug?Rubber duck debugging
- Whose team found a real moth in a computer in 1947?Grace Hopper
Plays in
- Quiz Board · The classic review board.
- Mystery Reveal · Guess it before the last clue.
- Tug of War · Every right answer pulls.
- Summit · Play it safe, or go for the steep climb.
- Heist · Steal to win.
- Claim the Grid · Get three in a row before anyone else.
- Board Race · Roll, hop, answer, race to the flag.
- Picture Unveil · What is hiding under the tiles?
- Escape Room · Crack the codes. Get out together.
- Rocket Launch · Fuel up, count down, lift off.
Make one from your own lesson.
Upload a lesson plan, worksheet, or slide deck, and Bellwork writes questions like these for you to check.