• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 3 pages
Exam (elaborations)

AP Computer Science Principles Student Samples from the 2023 Exam 2026/2027 | AP CSP Study Guide, Practice Questions & Exam Review

Document preview thumbnail
Preview 1 out of 3 pages

AP Computer Science Principles Student Samples from the 2023 Exam 2026/2027 | AP CSP Study Guide, Practice Questions & Exam Review

Content preview

mples
nce Principles
from
APthe
Computer
-2023
Student
Exam.pdf~~~!!!!!!!!!!!!!!!!!!!!!!!!!!@#!#@@@@@@@@@@@@@@@@@@@!!!!!!!!!!!!!!!!!!!!!!@@@@@@@@@@@@@@@@@@@@
Science
Samples
Principles
from the -2023StudentExam.pdf~~~!!!!!!!!!!!!!!!!!!!!!!!!!!@#!#@@@@@@@@@@@@@@@@@@@!!!!!!!!!!!!!!!!!!!!!!@@@@@@@@@@@@
Samples from the 2023 Exam.pdf~~AP Computer Science Principles - Student Samples from the 2023 Exam.pdf~~~


3. WRITTEN RESPONSES Create Sample A 1 of 3

3 a.
3.a.i.
The purpose of the program is to entertain and to educate students by deepening knowledge of projectiles through an
accurate physics simulation.

3.a.ii.
A realistic projectile simulation is displayed based on user inputs changing the initial angle and velocity. The projectile
shoots across the screen, and after it goes off the screen, dots trace in with density showing speed. The entire
simulation works to increase knowledge of projectile motion.

3.a.iii.
The user inputs the up and down arrow to increase or decrease the initial angle by 15 degrees each press respectively.
The user can also input the right and left arrow to increase or decrease the starting velocity respectively. When the angle
and velocity are where desired the user can input the enter button to run the simulation. Upon pressing enter, an output of
a black ball animates across the screen with accurate motion; once the ball is off the screen, the program outputs dotted
lines with density of lines showing speed. The user can then input the space bar to clear the screen and reset.

3 b.
3.b.i.




3.b.ii.




3.b.iii.
positions

3.b.iv.
It represents a list of tuples with each tuple representing the position the projectile has been at each frame. All together
the list represents every position the object has been at this run.

3.b.v.
The program utilizes the list by iterating over the list and drawing a dot at the position tuple provided by every fourth index.
This is produced by only drawing a dot when the index modulo 4 is zero. The program only draws the dots once the
object is off the screen, so a list is used to store positions so they can be accessed once the object is off screen.
Without a list it would not be able to iterate over the list drawing a dot at every fourth element in the list once the object is
off the screen. Instead, without a list, the program would have to somehow create a new variable for each tuple at each
frame and create new variables in real time while figuring out how to wait and draw a dot at each of these; this would be
extremely complex and messy if possible.




mples
nce Principles
from
APthe
Computer
-2023
Student
Exam.pdf~~~!!!!!!!!!!!!!!!!!!!!!!!!!!@#!#@@@@@@@@@@@@@@@@@@@!!!!!!!!!!!!!!!!!!!!!!@@@@@@@@@@@@@@@@@@@@
Science
Samples
Principles
from the -2023StudentExam.pdf~~~!!!!!!!!!!!!!!!!!!!!!!!!!!@#!#@@@@@@@@@@@@@@@@@@@!!!!!!!!!!!!!!!!!!!!!!@@@@@@@@@@@@
Samples from the 2023 Exam.pdf~~~!!!!!!!!!!!!!!!!!!!!!!!!!!@#!#@@@@@@@@@@@@@@@@@@@!!!!!!!!!!!!!!!!!!!!!!

Document information

Uploaded on
September 13, 2026
Number of pages
3
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$10.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
newestestbank
4.8
(372)
Sold
2540
Followers
0
Items
510
Last sold
22 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions