
Programming with Karel Final
Quiz
•
Computers
•
7th - 8th Grade
•
Hard
Travante James
Used 4+ times
FREE Resource
Student preview

20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands is a valid Karel command?
takeBall
PutBall;
takeBall();
takeBall()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What makes the following command an invalid Karel command?
turnright();
It should end in a colon rather than a semicolon
The r should be a capital R
It should start with a capital T
This command is correct
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to define a moveTwice function in Karel?
function moveTwice() {
turnLeft();
turnLeft();
turnLeft();
}
function moveTwice() {
move();
move();
}
function turnRight() {
turnLeft();
turnLeft();
turnLeft();
}
moveTwice function() {
move();
move();
}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use functions in Karel programs?
Break down our program into more codes to write
Avoid repeating code
Make our program longer and more complicated
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In this code, how many times is the jump function called and how many times is it defined?
function start() {
move();
jump();
move();
move();
jump();
jump();
move();
}
function jump() {
turnLeft();
move();
turnLeft();
turnLeft();
turnLeft();
move();
turnLeft();
turnLeft();
turnLeft();
move();
turnLeft();
}
Called 2 times, defined 1 time
Called 1 time, defined 3 times
Called 4 times, defined 1 time
Called 3 times, defined 1 times
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What’s wrong with this code?
function start() {
move();
slide();
slide();
}
function slide() {
move();
move();
move();
}
function slide() {
move();
move();
move();
}
The slide function is defined twice
The slide function has a syntax error
The slide function has been defined twice
slide is not a command that Karel understands
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many total times will Karel put a ball in this program?
function start() {
move();
for (var i = 0; i < 5; i++) {
move();
putBall();
}
}
1
5
2
7
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade