
AP CSP Standard 1 Review
Authored by Kelly Challand
Computers
12th Grade
Used 13+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following cannot be used as a valid condition in an if statement for Karel?
ballsPresent()
frontIsClear()
leftIsBlocked()
putBall()
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Karel starts at a location with one tennis ball. Consider the following code:
for (var i = 0; i < 3; i++) {
if (ballsPresent()) {
takeBall();
} else {
putBall();
putBall();
}
}
After the loop completes, how many tennis balls will be at Karel's starting location?
0
1
2
6
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Karel starts at Street 2, Avenue 1, facing East in a 5x5 world. Carefully observe the sequence of commands below:
move();
putBall();
move();
move();
move();
move();
move();
After executing all the commands, where will Karel end up, or what will happen?
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
Which condition should be placed in the while loop so that Karel continues picking up tennis balls until there are none left at the current location?
while (________) {
takeBall();
noBallsPresent()
ballsPresent()
frontIsClear()
takeBall()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the main reasons programmers 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
What is the correct way to teach Karel new commands so it can perform custom tasks?
Define a new function
While loop
For loop
The Start function
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Karel needs to place exactly 300 tennis balls in a row. Which programming control structure would be most efficient and appropriate for this task?
Nested while loop
For loop
While loop
If Statement
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
28 questions
4QICT12 - Current and Future Trends of Media and Information
Quiz
•
11th - 12th Grade
21 questions
S.Lucia advance
Quiz
•
9th - 12th Grade
21 questions
Cloud Native Computing Foundation Lesson 3
Quiz
•
1st - 12th Grade
22 questions
Unit two CSS and HTML Test
Quiz
•
9th - 12th Grade
25 questions
Python Test
Quiz
•
9th - 12th Grade
25 questions
PRELIM_LONGQUIZ
Quiz
•
12th Grade
23 questions
IT Fun Objective 5 - Database
Quiz
•
11th - 12th Grade
21 questions
CPA MS-Office Hotkeys Quiz
Quiz
•
8th Grade - Professio...
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade