CodeHS Intro to Programming - Karel Review

Quiz
•
Computers
•
7th Grade
•
Medium
Stacy Bennett
Used 5+ 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
15 questions
Blockly Assessment

Quiz
•
6th - 9th Grade
15 questions
Coding Pre-quiz

Quiz
•
6th - 9th Grade
10 questions
Explore Scratch 3: Motion and Pen

Quiz
•
3rd Grade - University
14 questions
Scratch Basics Term 3 Final

Quiz
•
KG - University
10 questions
MineCraft

Quiz
•
7th Grade
10 questions
Programming - Iteration, Basic Programming Constructs & Loop

Quiz
•
2nd - 12th Grade
12 questions
S1 code.org Knowledge Check 1

Quiz
•
7th Grade
15 questions
Google Blockly

Quiz
•
1st Grade - Professio...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
21 questions
Input Output Storage Device

Quiz
•
5th - 8th Grade