
AP Computer Science Principles Unit 2 Review
Authored by Scott HS]
Computers
9th - 12th Grade
CCSS covered
Used 92+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
About
This quiz covers fundamental programming concepts from AP Computer Science Principles, specifically focusing on Unit 2 topics that include variables, conditional statements, loops, and basic programming logic. The questions are designed for high school students in grades 11-12 who are taking an Advanced Placement computer science course. Students need to understand variable tracking and boundary conditions in programming, as demonstrated through the elevator simulation problem. They must comprehend conditional logic structures and be able to trace through if-else statements to predict program output. The quiz assesses students' ability to analyze loop behavior, including identifying conditions that create infinite loops and predicting the results of iterative processes. Additionally, students need knowledge of proper variable naming conventions, understanding of mathematical operations in programming syntax, and awareness of intellectual property and licensing issues related to code reuse. Created by Scott, a Computer teacher in the US who teaches grades 9-12. This comprehensive review quiz serves multiple instructional purposes in the AP Computer Science Principles classroom, functioning effectively as a formative assessment tool to gauge student understanding before a unit exam or as targeted practice for students who need reinforcement of core programming concepts. Teachers can deploy this quiz as a warm-up activity to activate prior knowledge, assign it as homework to extend learning beyond the classroom, or use it during review sessions to identify areas where students need additional support. The quiz aligns with College Board's AP Computer Science Principles curriculum requirements, particularly addressing Learning Objectives AAP-1.A (representing algorithms with variables), AAP-2.F (expressing conditional logic), and AAP-2.K (expressing iteration in programs), while also incorporating essential topics like IOC-1.F regarding intellectual property in computing that are fundamental to the AP CSP framework.
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A large office building has an elevator that carries occupants between any of the building's 10 floors. The basement is referred to as "Level 0" while the topmost floor is "Level 9." The software for the elevator uses a variable, called level, to track the floor number of the elevator's current position. When a person presses a button requesting the elevator to rise to a higher floor, the above code is executed.
What is displayed if the elevator is currently on the 7th floor (level = 7) and the person on the elevator presses a button that says to go up 3 floors (floors = 3)?
Level 7 Level 8 Level 9
Level 8 Level 9 Cannot go up. Level 9
Level 8 Level 9 Level 10
Cannot go up.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the above code segments designed to find the area of a triangle (A = 1/2 bh).
Which of the following statements about the above programs is true?
Both programs will work as intended, but Program B is more readable.
Program A will work as intended, but Program B will not work as intended.
Program B will work as intended, but Program A will not work as intended.
Neither program will work as intended.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the above code segment, what would be displayed if age were initialized with a value of 18?
group 1
group 2
group 1 group 2
Nothing will be displayed
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following would be the most appropriate name for a variable?
variable1
t
amountOfTimeRemainingInTheGame
time_left
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
While developing a program, you find a similar project that someone has created and posted online. It contains a number of elements (e.g., images, music, code segments, etc.) that you would like to integrate into your own project. Under what conditions may you reuse these elements in your work?
You may never reuse someone else’s work.
You may reuse any elements that are posted publicly online as long as credit is given to their creator.
You may only reuse elements for which the original owner has granted a license to reuse, such as the Creative Commons Share Alike license.
You may always reuse anything that is posted publicly or privately online.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the above code.
Assuming that before this code is run, x = 1. What would be displayed at the end?
210
16
8
1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What condition will make the above an infinite loop?
y = -108
y≠-3
y ≥ 8
y < -53
Tags
CCSS.6.EE.B.6
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
10 questions
สอบย่อย ครั้งที่ 1 (BC.2/2)
Quiz
•
11th Grade
10 questions
=NOW()
Quiz
•
11th Grade
10 questions
HTML & Google Site Seatwork
Quiz
•
12th Grade
10 questions
Lourdes Amaranta Ayala Gracia
Quiz
•
8th Grade - University
12 questions
ICT Computer Basics pt1
Quiz
•
10th - 12th Grade
10 questions
ICT Java programming workshop
Quiz
•
9th Grade
10 questions
ICT as Social Change
Quiz
•
12th Grade
13 questions
Networks
Quiz
•
7th - 9th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Exponent Properties
Quiz
•
9th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade