No student devices needed. Know more
15 questions
Which of the following commands is a valid
Karel command?
move
move;
move();
move()
What makes the following command an invalid Karel command?
turnleft();
It should end in a colon rather than a semicolon
The l should be a capital L
It should start with a capital T
This command is correct
Why do we use functions in Karel programs?
Break down our program into smaller parts
Avoid repeating code
Make our program more readable
All of the above
Why does a programmer indent their code?
Helps show the structure of the code.
Easier for other people to understand.
A key part of good programming style!
All of the above
How can we teach Karel new commands?
For loop
While loop
Define a new function
The start function
How many times is the start function called?
0
1
2
463
How many times is the start function defined?
0
1
2
As many as is needed
If Karel is facing South and the following code runs:
turnLeft();
turnLeft();
Which direction is Karel facing now?
North
South
East
West
A grid within which Karel lives:
Explore all questions with a free account