CodeHS Intro to Programming - Karel Review

Quiz
•
Computers
•
7th Grade
•
Easy
Stacy Bennett
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands is a valid Karel command?
turnLeft
turnLeft;
turnLeft();
turnLeft()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What makes this command invalid (incorrect)?
Move();
This command is correct.
It has a capital M.
It has ()
It should be a colon : not a semi colon ;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to define a turnRight function in Karel?
function turnRight() { turnLeft(); turnLeft(); turnLeft();
}
function turnRight() { turnRight(); turnRight(); turnRight();
}
function turnRight { turnLeft(); turnLeft(); turnLeft();
}
turnRight function() { turnLeft(); turnLeft(); turnLeft();
}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 these!
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many total times will Karel move in this program?
function start() { move(); for (var i = 0; i < 5; i++) { move(); putBall(); } }
1
5
6
7
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What is wrong with this for loop?
for (var i = 0; i < 10; i + 1) { move(); }
The for loop uses commas instead of semicolons
It should say i++ instead of i + 1
Nothing is wrong with this loop
The "var" should not be there.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can we teach Karel new commands?
For loop
While loop
Define a new function
The start function
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Karel Review 1.1-1.4

Quiz
•
6th - 7th Grade
14 questions
Hour of Code ESL

Quiz
•
6th - 8th Grade
15 questions
CodeHS - Java - Karel (Sec 1-3)

Quiz
•
7th - 10th Grade
12 questions
CodeMonkey Coding Vocabulary

Quiz
•
3rd - 7th Grade
15 questions
CodeHS Quiz

Quiz
•
7th Grade
14 questions
Interactive Animations and Games from code.org

Quiz
•
7th - 12th Grade
10 questions
Collecting Treasure with Laurel: Lesson 3

Quiz
•
6th Grade - University
10 questions
Universal Tools

Quiz
•
7th - 8th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade