Latest Version Already Passed
How do you check if Karel is facing any direction?
✔✔ Combine facing_east(), facing_west(), facing_north(), and facing_south().
How can you make Karel sort balls in ascending order?
✔✔ Use nested loops with comparison checks.
Which command is used to stop Karel's program early?
✔✔ Use return within a function.
How do you make Karel do nothing if a condition is met?
✔✔ Use the pass statement.
How can you make Karel dance in a circle?
✔✔ Combine move(), turn_left(), and put_ball() in a loop.
1
,What is the purpose of a for loop in Karel's programs?
✔✔ To repeat a block of code a specific number of times.
How do you make Karel draw shapes with balls?
✔✔ Use loops and patterns with put_ball().
How can you make Karel find the end of a hallway?
✔✔ Use a while loop with front_is_clear().
How do you make Karel pick up a specific number of balls?
✔✔ Use a counter with pick_ball() inside a loop.
How can you make Karel climb stairs made of walls?
✔✔ Move forward, turn left, move up, turn right, and repeat.
How do you make Karel follow the edge of a wall?
✔✔ Keep the wall on the left or right using conditional turns.
2
,How can you make Karel spell letters using balls?
✔✔ Use precise movements and put_ball() placements.
How do you make Karel check both sides before moving forward?
✔✔ Use left_is_clear() and right_is_clear() together.
How can you make Karel jump over a wall?
✔✔ Turn left, move up, turn right, move forward, turn right, move down, turn left.
How do you organize a complex program for Karel?
✔✔ Break it into smaller functions and use clear comments.
What is the main purpose of the move() command in Karel?
✔✔ It makes Karel move one space forward.
How do you make Karel turn left?
✔✔ Use the turn_left() command.
3
, What command allows Karel to place a ball on the current spot?
✔✔ put_ball()
How can Karel pick up a ball?
✔✔ Use pick_ball().
What happens if Karel tries to move into a wall?
✔✔ An error occurs, and the program stops.
How do you make Karel turn right if there's no turn_right() command?
✔✔ Turn left three times.
Which command checks if Karel is facing east?
✔✔ facing_east()
How can you check if Karel is standing on a ball?
✔✔ on_ball()
4