wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Unit 1 Code HS Adventures with Karel Javascript

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.
What command is used to make Karel move forward?
a)
A) moveForward()
b)
B) go()
c)
C) move()
d)
D) step()
2.

Which of the following commands places a ball at Karel's current location?

a)

A) putBall()

b)

B) dropBall()

c)

C) addBall()

d)

D) createBall()

3.
What is the purpose of the turnLeft() command?
a)
A) To face north
b)
B) To rotate Karel 90 degrees to the left
c)
C) To make Karel jump
d)
D) To move Karel to the left
4.
How does Karel know when to stop a program?
a)
A) When there are no more commands
b)
B) When it reaches a wall
c)
C) When it finds a beeper
d)
D) There is no stopping condition
5.
In Karel’s world, which direction does Karel face by default?
a)
A) East
b)
B) South
c)
C) North
d)
D) West
6.
What is the effect of the move() function if Karel is facing a wall?
a)
A) Karel moves backward
b)
B) Karel turns left
c)
C) Karel waits for a command
d)
D) Karel will crash
7.
To create a sequence of commands that Karel executes in order, which structure can you use?
a)
A) Array
b)
B) Loop
c)
C) Function
d)
D) Class
8.

What command would you use to turn Karel to the right?

a)

D) turnAround()

b)

C) rightTurn()

c)

B) rotateRight()

d)

A) turnRight()

9.

Which command allows Karel to pick up a ball from its current location?

a)

A) takeBall()

b)

B) pickBall()

c)

C) getBall()

d)

D) collectBall()

10.

What is the result of the command turnAround() in Karel's programming?

a)

A) Karel turns 90 degrees to the left

b)

B) Karel turns 180 degrees

c)

C) Karel turns 90 degrees to the right

d)

D) Karel does not turn