Y9 Java (Karel the dog)
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
matthew dallimore
Used 18+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Why do we use functions in programming?
Makes the code more efficient
Functions take less time to write
The program reads functions at a faster pace
Easier to debug/problem solve a program
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
for(var i = 1; i < 6; i++){
putBall();
How many times will a ball be placed?
5
6
7
8
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
for(var i = 0; i < 8; i++){
move();
How many times will Karel move?
5
6
7
8
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
function example() {
for(var i = 0; i < 3; i++){
turnLeft();
}
Karel starts facing East and finishes facing East
Karel starts facing East and finishes facing South
Karel starts facing East and finishes facing West
Karel starts facing East and finishes facing North
5.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Why do we use a for loop in programming
Easier to read
It's more efficient
To repeat an action a number of times
It helps with sequencing
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which code is correct? Karel starts at 0,0.
for(var i = 0; i < 4; i++){
move();
}
putBall();
for(var i = 0; i < 2; i++){
move();
}
putBall();
for(var i = 0; i < 3; i++){
move();
}
putBall();
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
which code is correct? Karel starts at 0,0
for(var i = 0; i < 2; i++){
move();
turnLeft();
move();
}
putBall();
for(var i = 0; i < 3; i++){
move();
turnLeft();
move();
}
putBall();
for(var i = 0; i < 1; i++){
move();
turnLeft();
move();
}
putBall();
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?
Similar Resources on Wayground
12 questions
Web II: CSS Positioning
Quiz
•
9th - 12th Grade
11 questions
Програмне забезпечення та операційна система
Quiz
•
9th Grade
12 questions
Tabele HTML
Quiz
•
9th Grade
10 questions
Cutting - Edge Technology
Quiz
•
7th - 10th Grade
12 questions
HTML & Java
Quiz
•
9th Grade
14 questions
Taylor Chess Quiz
Quiz
•
4th - 12th Grade
10 questions
Bài 10 - Cấu trúc rẽ nhánh
Quiz
•
5th Grade - University
10 questions
Diagramas de Flujo
Quiz
•
7th - 10th Grade
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
