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
Digital Design Final

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

Quiz
•
9th - 12th Grade
28 questions
Introduction to Programming in Java with Karel the Dog

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

Quiz
•
9th - 12th Grade
22 questions
Premiere Pro Tools

Quiz
•
9th - 12th Grade
25 questions
Python

Quiz
•
9th - 12th Grade
25 questions
Tracy not Karel Review Quiz

Quiz
•
12th Grade
26 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Quiz
•
9th - 12th 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