• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 3 fuera de 18 páginas
Examen

AP Computer Science Exam with Verified Answers

Document preview thumbnail
Vista previa 3 fuera de 18 páginas

Which of the following is true of algorithms? - C. Every algorithm can be constructed using combinations of sequencing, selection, and iteration The following algorithm is followed by a person every morning when they get up from bed to go to school Wake up Brush teeth Put on shirt Put on pants Put on socks Put on shoes Tie shoes - A. Sequencing 3. Which of these algorithms will move the robot along the same path as the algorithm below? REPEAT 2 TIMES { REPEAT 3 TIMES { MOVE_FORWARD() } ROTATE_LEFT() MOVE_FORWARD()

Vista previa del contenido

AP Computer Science Exam with
Verified Answers
Which of the following is true of algorithms? - ✔✔C. Every algorithm can be constructed using
combinations of sequencing, selection, and iteration


The following algorithm is followed by a person every morning when they get up from bed to go
to school
Wake up
Brush teeth
Put on shirt
Put on pants
Put on socks
Put on shoes

Tie shoes - ✔✔A.

Sequencing


3.
Which of these algorithms will move the robot along the same path as the algorithm below?


REPEAT 2 TIMES { REPEAT 3 TIMES { MOVE_FORWARD() } ROTATE_LEFT() MOVE_FORWARD()
ROTATE_RIGHT() } - ✔✔Repeat 2 times

{
Move_forward()
Move_forward()
Move_forward()
Rotate_left()

,Move_forward()
rotate_right()
}


A town government is designing a new bus system and are deciding where to put the different
bus stops. They want to pick the collection of locations that minimizes the distance anyone
needs to walk in order to get to at least one bus stop. What term best defines the kind of
problem? - ✔✔B. An optimization problem


The algorithm below is used to find the largest element in a list of numbers.
By modifying one of the lines in the program it is possible to make the algorithm find the
SMALLEST element. Which line would need to be modified and how?
01 target <- list[1] 02 FOR EACH num IN list 03 { 04 IF(num > target) 05 { 06 target <- num 07 }
08 } 09 DISPLAY(target) - ✔✔B.

Line 04 becomes IF (num < target)



Which of the following algorithms is the same as the flowchart shown below? - ✔✔myNum <--
Random(1,10)
Repeat Until (myNum > 8)
{
Display (myNum)
myNum <-- RANDOM(1,10)
}
Display("Done")


This graph shows the efficiencies of two different algorithms that solve the same problem.
Which of the following is most efficient? - ✔✔D.

The algorithms have different efficiencies depending on the input size

, A school is creating class schedules for its students. The students submit their requested
courses and then a program will be designed to find the optimal schedule for all students.
The school has determined that finding the absolute best schedule cannot be solved in a
reasonable time. Instead they have decided to use a simpler algorithm that produces a good
but non-optimal schedule in a more reasonable amount of time.

Which principle does this decision best demonstrate? - ✔✔B.

Heuristics can be used to solve some problems for which no reasonable algorithm exists



Which of the following algorithmic efficiencies would be considered LEAST efficient? - ✔✔D.

Exponential



Which of the following best describes the existence of undecidable problems? - ✔✔D.
An undecidable problem is a problem for which no algorithm can be constructed that always
produces a correct output


A group of students writes their names and unique student ID numbers on sheets of paper. The
sheets are then randomly placed in a stack.
Their teacher is looking to see if a specific ID number is included in the stack. Which of the
following best describes whether their teacher should use a linear or a binary search? - ✔✔D.

Only the linear search will work since the data has not been sorted


A computer is performing a binary search on the sorted list of 7 numbers below. What is the
maximum number of iterations needed to find the item?

[1, 5, 20, 50, 51, 80, 99] - ✔✔B. 3


Which of the following are benefits of parallel and distributed computing?
I. Distributed computing improves the speed at which an individual computer executes a
program
II. Parallel computing scales more effectively than sequential computing

Información del documento

Subido en
5 de octubre de 2025
Número de páginas
18
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$11.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Vendido
12
Seguidores
0
Artículos
12590
Última venta
3 meses hace




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