Which of the following is not a valid condition to go in an if statement for Karel?
AP CSP Standard 1 Review

Quiz
•
Computers
•
12th Grade
•
Medium
Kelly Challand
Used 8+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ballsPresent()
frontIsClear()
leftIsBlocked()
putBall()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Karel is on a location with one tennis ball. After the following code runs, how many tennis balls will there be at that location?
for (var i = 0; i < 3; i++) {
if (ballsPresent()) {
takeBall();
} else {
putBall();
putBall();
}
}
0
1
2
6
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Karel starts at Street 2, Avenue 1, facing East in a 5x5 world. What will happen after this code runs?
move();
putBall();
move();
move();
move();
move();
move()
Karel will end on Street 1, Avenue 2
Karel will end on Street 1, Avenue 7
This code won’t run because of a syntax error
Karel will crash into a wall
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What condition should be used in this while loop to get Karel to pick up all the tennis balls on the current location?
while (________) {
takeBall();
noBallsPresent()
ballsPresent()
frontIsClear()
takeBall()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why does a programmer indent their code?
Easier for other people to understand.
A key part of good programming style!
Helps show the structure of the code.
All of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can we teach Karel new commands?
Define a new function
While loop
For loop
The Start function
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You want to write a program to have Karel put down 300 tennis balls. Which control structure would you use?
Nested while loop
For loop
While loop
If Statement
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
JavaScript Basics & Graphics Test

Quiz
•
9th - 12th Grade
25 questions
Computer Programming in Python Review

Quiz
•
9th - 12th Grade
27 questions
BJC AP CSP Unit 3 Exam Review

Quiz
•
9th - 12th Grade
25 questions
Code HS 3.19 Intro to Programming w/Karel

Quiz
•
9th - 12th Grade
25 questions
CodeHS CompSci Final Exam

Quiz
•
8th Grade - University
23 questions
Programming with Karel Quiz

Quiz
•
9th - 12th Grade
22 questions
Karel Quiz

Quiz
•
8th - 12th Grade
23 questions
Unit 1 CodeHS Review

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade