Question & Answer

Which is a valid Karel command?

Which is a valid Karel command?
move;
MOVE
move();
move()

1 Answer

Verified archive
Quizzma TeamMarch 29, 2025

The valid Karel command is `move();`.

Explanation: In Karel programming, commands are typically functions that need to be called. The correct syntax includes parentheses, so `move();` is the correct way to indicate that Karel should execute the move command. The options `move;` and `MOVE` would not be recognized since `move;` lacks parentheses and `MOVE` is not case-sensitive in this context. `move()` is missing a semicolon, which is typically used to end the command in Karel programming.