Which of the following commands is a valid Karel command?

Advanced WPD Exam

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Tina Mickens
Used 10+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
move
move;
move();
move()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is the following command an invalid Karel command?
turnleft();
It should end in a colon rather than a semicolon
The l should be a capital L
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 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 the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In this code, how many times is the dance function called and how many times is it defined?
function start() {
move();
dance();
move();
move();
turnLeft();
dance();
dance();
}
function dance() {
turnLeft();
move();
turnLeft(); t
urnLeft();
move();
turnLeft();
}
Called 1 time, defined 1 time
Called 1 time, defined 3 times
Called 3 times, defined 1 time
Called 3 times, defined 3 times
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the proper format for a single line comment in Karel?
This is a comment
// This is a comment
This is a comment
/* This is a comment
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the mystery function do?
function mystery() {
while (noBallsPresent()) {
move();
}
}
Karel moves until it is on a ball
Karel moves once if there is no ball present
Karel moves until it puts down a ball
Karel checks if there is no ball on the current spot and then moves once
Create a free account and access millions of resources
Similar Resources on Quizizz
27 questions
Turtle Python Quiz 1

Quiz
•
10th - 12th Grade
30 questions
Algorithms, Flowcharts, Scratch & Python

Quiz
•
10th Grade
25 questions
Arduino coding language

Quiz
•
9th Grade - University
27 questions
Unit 2 Computer Science Review

Quiz
•
10th - 12th Grade
32 questions
class 11 PYTHON BASICS quiz -1

Quiz
•
11th Grade
31 questions
Ass2-Quiz2-Programming

Quiz
•
11th Grade
27 questions
Java Script BASICS

Quiz
•
9th - 12th Grade
25 questions
Library Classes

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University