by BlastRoom
Practice tracing Karel programs and selecting commands, functions, and control flow.
#computer_science

25 questions
One question set, multiple game modes. Tap any game to see it in action. Not sure which to pick?
Answer to place stones and capture territory.
Outrun the snow together.
Earn blasts, then hunt the other team.
Answer to earn energy, then climb.

The class blasts through walls together.
Bid on mystery lots. Most money wins.
Sell tours. Nice, standard, or a total scam.
Answer, restock, and serve the rush.
More correct answers pulls the rope your way.
Answer, then shoot down the alien wave.
Answer, then tap to leap the frozen ridge.
Karel starts on the square and facing shown in the figure. Karel runs: move(); move(); turnLeft(); move(); Where does Karel finish?

Use the world in the figure. Karel runs: move(); turnLeft(); move(); turnLeft(); move(); What is Karel's final position?

Starting as shown, Karel runs: move(); turnLeft(); move(); turnLeft(); turnLeft(); turnLeft(); move(); Where does Karel end?

Trace this program on the shown world: move(); move(); turnLeft(); move(); What square and direction result?

Karel follows this program in the pictured world: move(); turnLeft(); move(); move(); Where does Karel finish?

In the figure, Karel runs: move(); move(); turnLeft(); turnLeft(); turnLeft(); move(); What is the final position?

The figure shows Karel, a ball, and a wall. What is the smallest number of move() commands Karel needs to reach the ball?

Look at the shown grid. What is the fewest move() commands Karel needs to reach the ball's square?

Karel must reach the ball shown in the figure. What is the smallest possible number of move() commands?

From Karel's starting square in the figure, what is the fewest move() commands needed to reach the ball?

Karel must finish on the ball's square facing north. Which program completes the shown task?

Karel must stand on the ball facing west. Which program works in the pictured world?

Choose the program that gets Karel to the ball and leaves Karel facing east.

Which program places Karel on the ball and facing west in the shown world?

Karel must reach the ball and finish facing south. Which program does that?

What does move() do when the square directly in front of Karel is clear?
Karel is facing east. After turnLeft(); which direction is Karel facing?
A student runs putBall(); while Karel stands on an empty square. What happens?
A student runs takeBall(); on a square with no ball. What happens?
A program needs a right turn in many places. A student defines turnRight() once using three turnLeft() calls. What is the main benefit?
What happens when a Karel program calls a function that has been defined earlier in that program?
Why can a function such as turnRight() make a Karel program easier to revise?
Karel should keep moving until a wall is directly ahead. Which control structure fits this job?
Karel is on a square that may contain at most one ball. Which control structure removes the ball only when one is present?
Karel must turn left exactly three times to make a right turn. Which structure best expresses the repeated action?
Crack the passcode before the zombies get in.
Answer, then swat bugs for bonus points.
Race through questions at your own speed.
Same question on every screen. Fastest wins.

Pick a tile, answer, hit bonuses and steals.
Data Types: Integers, Floats, Strings and Booleans
50 questions