Sections Latest Update Already Graded
A
What is the best way to prevent Karel from crashing?
✔✔A) Check conditions before moving
B) Always move forward
C) Ignore walls
D) Avoid using loops
Why are comments useful in Karel programs?
✔✔A) They explain what the code does
B) They make Karel move faster
C) They remove bugs
D) They add extra commands
How can Karel move until it reaches a wall?
A) Use a for loop
✔✔B) Use a while loop with frontIsClear()
1
,C) Move randomly
D) Use a stop function
Which statement allows Karel to make a decision?
✔✔A) if statement
B) move command
C) loop statement
D) beeper function
What happens if Karel is told to place a beeper but has none left?
✔✔A) Karel crashes
B) Karel picks up a beeper instead
C) Karel moves forward
D) Karel skips the command
Which of these is NOT something Karel can do?
✔✔A) Move diagonally
B) Pick up beepers
2
, C) Turn left
D) Follow commands in order
How does Karel know when to stop moving?
A) When it reaches a beeper
B) When the code is too long
✔✔C) When a condition in the code tells it to stop
D) When it turns right
What is a practical way to teach Karel new movements?
A) Writing extra-long code
✔✔B) Defining custom functions
C) Ignoring errors
D) Moving in random directions
What should Karel do first when starting a challenge?
A) Move forward
✔✔B) Analyze the problem and plan a solution
3