100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

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

Puntuación
-
Vendido
-
Páginas
34
Grado
A+
Subido en
25-11-2025
Escrito en
2025/2026

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

Institución
Grado











Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Grado

Información del documento

Subido en
25 de noviembre de 2025
Número de páginas
34
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

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
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor
Seller avatar
studymasterstuvia

Conoce al vendedor

Seller avatar
studymasterstuvia Walden University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
2
Miembro desde
5 meses
Número de seguidores
0
Documentos
657
Última venta
1 semana hace
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

Lee mas Leer menos
0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes