100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

AP Computer Science Principles Exam- AP Exam ||Latest Exam

Rating
-
Sold
-
Pages
34
Grade
A+
Uploaded on
25-11-2025
Written in
2025/2026

AP Computer Science Principles Exam- AP Exam ||Latest Exam

Institution
Course











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Course

Document information

Uploaded on
November 25, 2025
Number of pages
34
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

AP Computer Science Principles
Exam- AP Exam ||Latest Exam
We want to create an algorithm called swapValues. Given two variables x and y the
result should have the values of x and y swapped. Which of the following algorithms
correctly swaps the values of x and y?


y←x
temp ← x
x←y

x←y
y←x

temp ← x
x←y
y ← temp

temp ← x
y ← temp
y ← x -Answer temp ← x
x←y
y ← temp

The figure below represents a network of physically linked computers labeled A through
F. A line between two computers indicates that the computers can communicate directly
with each other. Any information sent between two computers that are not directly
connected must go through at least one other computer. For example, information can
be sent directly between computers A and B, but information sent between computers A
and C must go through other computers.

Which of the following statements are true about this network:

I - The network is fault tolerant. If a single connection fails, any two devices can still
communicate.
II - Computers B and F need to first communicate with at least one other device in order
to communicate with each other.


I only


II only

,I and II


Neither I nor II -Answer I and II

Computers are often used to search through large sets of data to find useful patterns in
the data.

Which of the following tasks is an example where searching for patterns is needed to
produce useful information?


A high school searching over student GPAs to identify the student with the highest GPA


A grocery store searching over its inventory to determine which items are running low


A music application searching over a user's library to determine if a particular song
exists


An online retail store analyzing customers' viewing habits to suggest other products
based on the purchasing history of other customers -Answer An online retail store
analyzing customers' viewing habits to suggest other products based on the purchasing
history of other customers

A bank uses a computer program during the night to tell if the alarm should be rung.
Sensors in the bank set the following Boolean variables:

vaultClosed: set to true if the bank vault is closed; otherwise false
heardNoise: set to true if a microphone heard noise; otherwise false
sawMovement: set to true if a camera saw movement in the bank; otherwise false

The automatic alarm should notify the police if there is noise and movement in the bank,
or if the bank vault is open. Which of the following boolean expressions can be used in
a selection statement to ring the alarm?


NOT vaultClosed OR (heardNoise AND sawMovement)


heardNoise AND vaultClosed

,NOT vaultClosed AND sawMovement


heardNoise AND sawMovement -Answer NOT vaultClosed OR (heardNoise AND
sawMovement)

Consider the code segment below.

PROCEDURE Mystery (word, list)
{
FOR EACH item IN list
{
IF (item = word)
{
RETURN (true)
}
}
RETURN (false)
}
Which of the following best describes the behavior of the Mystery PROCEDURE?


Return whether or not word is in list


Return the index of word in list


Display true for each occurrence of word in list


Display the index of word in list -Answer Return whether or not word is in list

Biologists are researching the migration patterns of birds. They have attached tracking
collars to several wild birds.

For each bird, the following geolocation data is collected at frequent intervals.

The time
The date
The location of the bird
Which of the following questions about the group of tracked birds COULD be
Answered using only the data collected from the tracking collars?

, How many new birds were born into the group during the month of July?


In what month do the birds tend to travel the farthest?


Do the migration patterns of the birds vary according to weather?


What is the most common cause of death for this group of birds?q -Answer

A program is expressed in a programming language. Which of the following is true of
the program?


The program can also be expressed as binary code, but this increases the likelihood of
errors


The program can also be expressed as binary code, which is what the program will be
translated to in order to execute on the computer


The program cannot be expressed as binary code


Some parts of the program can be expressed as binary code, but most features of
programming languages cannot be translated to binary code. -Answer The program
can also be expressed as binary code, which is what the program will be translated to in
order to execute on the computer

A large data set contains information about all students in colleges across the United
States. The data set contains the following information about each student.

The student's gender
The state in which the student attends college
The student's grade point average on a 4.0 scale
The student's major
Which of the following questions could be Answered by analyzing only information in
the data set?


Which college has the highest number of female computer science majors?
$5.59
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
studymasterstuvia

Get to know the seller

Seller avatar
studymasterstuvia Walden University
Follow You need to be logged in order to follow users or courses
Sold
2
Member since
5 months
Number of followers
0
Documents
657
Last sold
1 week ago
Master Docs | Trusted Source for Real Exam Success

Welcome to MasterDocs Official Store — your ultimate destination for verified exam papers, detailed study guides, and high-quality notes trusted by hundreds of students worldwide. I specialize in providing accurate, well-organized, and up-to-date exam materials that help students study smarter, not harder. Each document is carefully reviewed, clearly formatted, and packed with questions and verified answers from recent exams to ensure top performance and confidence on test day. Whether you're preparing for university finals, nursing boards, accounting tests, healthcare management exams, or TEAS/NCLEX practice, you’ll find the exact material you need — concise, reliable, and results-driven. ✅ Why Students Choose My Docs: Verified answers and updated content Professionally formatted for quick review Guaranteed accuracy and clarity Affordable prices for premium quality 100% student satisfaction

Read more Read less
0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

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

Frequently asked questions