
AP CSP Sample Exam Questions - Part 1
Quiz
•
Computers
•
10th - 12th Grade
•
Hard
Slawomir Surowiec
Used 14+ times
FREE Resource
Student preview

12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
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.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
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.” 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.”
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
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 above.
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
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
4. The figure above shows a circuit composed of two logic gates. The output of the circuit is true.
Which of the following is a true statement about input A?
(A) Input A must be true.
(B) Input A must be false.
(C) Input A can be either true or false.
(D) There is no possible value of input A that will cause the circuit to have the output true.
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
5. The following question uses a robot in a grid of squares. The robot is represented as a triangle,
which is initially in the bottom left square of the grid and facing right.
Which of the following shows the location of the robot after running the code segment?
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
6. Which of the following statements describes a limitation of using a computer simulation to
model a real-world object or system?
(A) Computer simulations can only be built after the real-world object or system has been
created.
(B) Computer simulations only run on very powerful computers that are not available to the
general public.
(C) Computer simulations usually make some simplifying assumptions about the real-world
object or system being modeled.
(D) It is difficult to change input parameters or conditions when using computer simulations.
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
7. A certain social media Web site allows users to post messages and to comment on other messages that have been posted. When a user posts a message, the message itself is considered data. In addition to the data, the site stores the following metadata.
▪ The time the message was posted
▪ The name of the user who posted the message
▪ The names of any users who comment on the message and the times the comments were made
For which of the following goals would it be more useful to analyze the data instead of the metadata?
(A) To determine the users who post messages most frequently
(B) To determine the time of day that the site is most active
(C) To determine the topics that many users are posting about
(D) To determine which posts from a particular user have received the greatest number of comments
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade