Latest Version Graded A+
How do you make Karel move forward one space?
✔✔ Use the move() command.
Which command is used to turn Karel to the left?
✔✔ turn_left()
How can you make Karel pick up a beeper?
✔✔ Use pick_beeper().
Which command makes Karel place a beeper on the current spot?
✔✔ put_beeper()
How can you check if there is a beeper on Karel's current position?
✔✔ Use the front_is_clear() condition.
1
,What happens if Karel tries to move into a wall?
✔✔ An error occurs because the front is not clear.
How do you make Karel turn right?
✔✔ Use turn_left() three times or define a custom function.
How can you repeat a set of commands multiple times?
✔✔ Use a for loop.
How do you make Karel move until it hits a wall?
✔✔ Use a while loop with the front_is_clear() condition.
Which command checks if Karel's front is blocked?
✔✔ front_is_blocked()
How do you make Karel turn around?
✔✔ Use turn_left() twice.
2
, How can you check if Karel is standing on a beeper?
✔✔ Use beepers_present().
How do you stop Karel from moving when a condition is met?
✔✔ Use a break statement inside a loop.
How can you define a new action for Karel to repeat later?
✔✔ Create a custom function.
How do you make Karel place multiple beepers in a line?
✔✔ Use a loop with put_beeper() and move().
Which condition checks if the left side is clear for Karel?
✔✔ left_is_clear()
How do you check if Karel's right side is blocked?
✔✔ Use right_is_blocked().
3