Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 16 pages
Exam (elaborations)

2026 AP CSP Exam MCQ with all Correct & 100% Verified Answers |Actual Complete Exam |Already Graded A+

Document preview thumbnail
Preview 3 out of 16 pages

2026 AP CSP Exam MCQ with all Correct & 100% Verified Answers |Actual Complete Exam |Already Graded A+

Content preview

2026 AP CSP Exam MCQ with all Correct & 100% Verified
Answers |Actual Complete Exam |Already Graded A+

Which of the following is an example of a phishing attack? ✔Correct Answer-Using fraudulent
e-mails in order to trick a user into voluntarily providing sensitive information

To be eligible for a particular ride at an amusement park, a person must be at least 12 years old
and must be between 50 and 80 inches tall, inclusive.

Let age represent a person's age, in years, and let height represent the person's height, in
inches. Which of the following expressions evaluates to true if and only if the person is eligible
for the ride? ✔Correct Answer-(age ≥ 12) AND ((height ≥ 50) AND (height ≤ 80))

Consider the following code segment.

What are the values of first and second as a result of executing the code segment? ✔Correct
Answer-first = 100, second = 100

Which of the following best explains the relationship between the Internet and the World Wide
Web? ✔Correct Answer-The Internet is a network of interconnected networks, and the World
Wide Web is a system of linked pages, programs, and files that is accessed via the Internet.

A code segment is intended to display the following output.

up down down down up down down down

Which of the following code segments can be used to display the intended output? ✔Correct
Answer-Answer: A

Which of the following best exemplifies the use of multifactor authentication to protect an
online banking system? ✔Correct Answer-After entering a password for an online bank
account, a user must also enter a code that is sent to the user's phone via text message.

A game is played by moving a game piece left or right along a horizontal game board. The board
consists of spaces of various colors, as shown. The circle represents the initial location of the
game piece.

YellowBlackGreenGreenRedYellowBlackBlackYellowBlack ●

The following algorithm indicates how the game is played. The game continues until the game is
either won by landing on the red space or lost when the piece moves off either end of the
board.

,Step 1:Place a game piece on a space that is not red and set a counter to 0.Step 2:If the game
piece is on a yellow space, move the game piece 3 positions to the left and go to step 3.
Otherwise, if the game piece is on a black space, move the game piece 1 position to the left and
go to step 3. Otherwise, if the game piece is on a green space, move the game piece 2 positions
to the right and go to step 3.Step 3:Increase the value of the counter by 1.Step 4:If game piece
✔Correct Answer-4

Which of the following best describes a direct benefit in using redundant routing on the
Internet? ✔Correct Answer-Redundancy often allows messages to be sent on the network
even if some network devices or connections have failed.

Which of the following best explains how an analog audio signal is typically represented by a
computer? ✔Correct Answer-An analog audio signal is measured at regular intervals. Each
measurement is stored as a sample, which is represented at the lowest level as a sequence of
bits.

The player controls in a particular video game are represented by numbers. The controls and
their corresponding binary values are shown in the following table.

ControlBinary
Value←01000↑01001→01011↓01111Jump11000Run11001Pause11011Reset11111

The numeric values for the controls can also be represented in decimal (base 10).

What is the decimal value for the jump control? ✔Correct Answer-24

The player controls in a particular video game are represented by numbers. The controls and
their corresponding binary values are shown in the following table.

ControlBinary
Value←01000↑01001→01011↓01111Jump11000Run11001Pause11011Reset11111
The numeric values for the controls can also be represented in decimal (base 10).

What control is represented by the decimal value 15 ? ✔Correct Answer-Down arrow

The grid below contains a robot represented as a triangle, initially facing toward the top of the
grid. The robot can move into a white or gray square but cannot move into a black region.

The code segment below uses the procedure goalReached, which evaluates to true if the robot
is in the gray square and evaluates to false otherwise.
REPEAT UNTIL(goalReached())
{
<MISSING CODE>

, }
Which of the following replacements for <MISSING CODE> can be used to move the robot to the
gray square? ✔Correct Answer-IF(CAN_MOVE(left))
{
ROTATE_LEFT()
}
MOVE_FORWARD()

Which of the following is NOT a benefit of collaborating to develop a computing innovation?
✔Correct Answer-Collaboration eliminates the need to resolve differences of opinion.

A list of numbers is considered increasing if each value after the first is greater than or equal to
the preceding value. The following procedure is intended to return true if numberList is
increasing and return false otherwise. Assume that numberList contains at least two elements.
Line 1: PROCEDURE isIncreasing(numberList)
Line 2: {
Line 3: count ←← 2
Line 4: REPEAT UNTIL(count > LENGTH(numberList))
Line 5: {
Line 6: IF(numberList[count] < numberList[count - 1])
Line 7: {
Line 8: RETURN(true)
Line 9: }
Line 10: count ←← count + 1
Line 11: }
Line 12: RETURN(false)
Line 13: }
Which of the following changes is needed for the program to work as intended? ✔Correct
Answer-Lines 8 and 12 should be interchanged.

Consider the following procedure.

Procedure CallExplanationdrawLine(x1, y1, x2, y2)Draws a line segment on a coordinate grid
with endpoints at coordinates (x1, y1) and (x2, y2)

The drawLine procedure is to be used to draw the following figure on a coordinate grid.
✔Correct Answer-xVal ←← 1
yVal ←← 0
len ←← 1
REPEAT 5 TIMES
{
drawLine(xVal, yVal, xVal, yVal + len)
xVal ←← xVal + 1
len ←← len + 1

Document information

Uploaded on
July 18, 2026
Number of pages
16
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$21.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.
Studyclub
3.6
(14)
Sold
60
Followers
1
Items
12284
Last sold
1 week 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