Sample Exam Questions
To elicit evidence of student achievement of the course learning objectives, exam
questions assess both the application of the computational thinking practices
and an understanding of the big ideas. Exam questions may assess achievement
of multiple learning objectives. They may also address content from more than
one essential knowledge statement. Exam questions may be accompanied
by nontextual stimulus material such as diagrams, charts, or other graphical
illustrations. The sample questions that follow illustrate the relationship between
the curriculum framework and the AP Computer Science Principles Exam and serve
as examples of the types of questions that will appear on the exam. Each question
is accompanied by a table containing the enduring understandings, learning
objectives, computational thinking practices, and essential knowledge statements
that the question addresses. Note that in cases where multiple learning objectives
are provided for a question, the primary learning objective is listed first, along
with the associated computational thinking practice and essential knowledge
statement(s).
1. A video-streaming Web site uses 32-bit integers to count the number of times each video has
been played. In anticipation of some videos being played more times than can be represented
with 32 bits, the Web site is planning to change to 64-bit integers for the counter. Which of the
following best describes the result of using 64-bit integers instead of 32-bit integers?
(A) 2 times as many values can be represented.
(B) 32 times as many values can be represented.
(C) 232 times as many values can be represented.
(D) 322 times as many values can be represented.
2.1 A variety of 2.1.1 Describe the variety of P3 Abstracting 2.1.1A
abstractions built upon abstractions used to represent
2.1.1B
binary sequences can data. [P3]
be used to represent 2.1.1E
all digital data.
2. A programmer completes the user manual for a video game she has developed and realizes she
has reversed the roles of goats and sheep throughout the text. Consider the programmer’s goal
of changing all occurrences of “goats” to “sheep” and all occurrences of “sheep” to “goats.” The
programmer will use the fact that the word “foxes” does not appear anywhere in the original text.
Which of the following algorithms can be used to accomplish the programmer’s goal?
(A) First, change all occurrences of “goats” to “sheep.”
Then, change all occurrences of “sheep” to “goats.”
(B) First, change all occurrences of “goats” to “sheep.”
Then, change all occurrences of “sheep” to “goats.”
Last, change all occurrences of “foxes” to “sheep.”
(C) First, change all occurrences of “goats” to “foxes.”
Then, change all occurrences of “sheep” to “goats.”
SAMPLE EXAM QUESTIONS
Last, change all occurrences of “foxes” to “sheep.”
(D) First, change all occurrences of “goats” to “foxes.”
Then, change all occurrences of “foxes” to “sheep.”
Last, change all occurrences of “sheep” to “goats.”
4.1 Algorithms are 4.1.1 Develop an algorithm for P2 Creating 4.1.1A
precise sequences implementation in a program. [P2] computational artifacts
4.1.1B
of instructions for
processes that can be
executed by a computer
and are implemented
using programming
languages.
3. ASCII is a character-encoding scheme that uses a numeric value to represent each character.
For example, the uppercase letter “G” is represented by the decimal (base 10) value 71. A partial
list of characters and their corresponding ASCII values are shown in the table below.
ASCII characters can also be represented by hexadecimal numbers. According to ASCII
character encoding, which of the following letters is represented by the hexadecimal (base 16)
number 56?
(A) A
(B) L
(C) V
(D) Y
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller TGUARD. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.99. You're not tied to anything after your purchase.