CodeHS Intro to Programming - Karel Review

Quiz
•
Computers
•
7th Grade
•
Medium
Stacy Bennett
Used 6+ 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
14 questions
Robotics Quiz

Quiz
•
5th - 9th Grade
12 questions
Kodu 101

Quiz
•
6th - 8th Grade
10 questions
Untitled Quiz

Quiz
•
6th Grade - University
10 questions
Python Alternating Turns

Quiz
•
7th - 12th Grade
15 questions
Code.org Express Course Quiz 2

Quiz
•
6th - 8th Grade
10 questions
Karel Review 1.1-1.4

Quiz
•
6th - 7th Grade
11 questions
Turtle academy (Lessons 4 and 5)

Quiz
•
6th - 8th Grade
14 questions
Interactive Animations and Games from code.org

Quiz
•
7th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade