ProfesoresPara profesoresHerramientasPreciosAppApp móvil
Iniciar sesión
Empieza gratisEmpieza gratis
Pregunta a Bo
  • Plan de estudio con IAPlanifica cada día hasta el examen
  • Pregúntale a BoRespuestas de tus clases, con citas
  • Tarjetas con IAHazme un mazo para el capítulo 4
  • Image OcclusionTapa las etiquetas de un diagrama
  • Exámenes de prácticaCrea un simulacro de 20 preguntas
  • Mapas mentalesMuestra cómo se conectan estas ideas
  • Guías de estudioResume toda la unidad
  • Resumen con IAResume la clase del viernes
  • Quiz con IAHazme un quiz del capítulo 4
  • ChuletasUna página para el final
Empieza gratisEmpieza gratisIniciar sesión
  • Plan de estudio con IA
  • Pregúntale a Bo
  • Tarjetas con IA
  • Image Occlusion
  • Exámenes de práctica
  • Mapas mentales
  • Guías de estudio
  • Resumen con IA
  • Quiz con IA
  • Chuletas
Para profesoresHerramientasPreciosApp
Instituto y admisión

Test AP Computer Science Principles

  • 15 preguntas
  • Unos 15 min
  • Gratis

Las preguntas del test siguen en inglés.

Pregunta 1 de 15

A student's program that averages three test scores runs without any error message, but it always reports an average that is too high. The code adds the three scores and divides by 2 instead of 3. What kind of error is this?

¿Estudias con tus propios apuntes? Crear mi propio test

Sigue practicando

  • Test de prácticaTest de práctica AP Statistics15 preguntas
  • Test de prácticaTest de práctica AP Precalculus15 preguntas
  • Test de prácticaTest de práctica APUSH: periodos 1 a 915 preguntas
  • Test de prácticaTest de práctica AP Psychology15 preguntas
  • Todos los tests de Instituto y admisión46 tests
  • Ver todos los tests de práctica gratis

Crea el tuyo

Sube tu libro de preparación, tus diapositivas o tus apuntes, o dile a Bo qué quieres estudiar. No necesitas ningún documento para empezar.

Crear mi propio test

Cuenta gratis, sin tarjeta

Sobre este test

Esta es una muestra gratis de 15 preguntas al estilo de la sección de opción múltiple de AP Computer Science Principles, escrita por el equipo de StudyPDF a partir de las cinco Big Ideas que publica el College Board para el curso. Cubre el desarrollo creativo, los datos, los algoritmos y la programación en pseudocódigo al estilo del examen, los sistemas informáticos y las redes, y el impacto de la informática, más o menos con los pesos que usa el examen. La mezcla es de opción múltiple, marcar todas las que correspondan y completar huecos. Responde las 15, después mira tu puntuación y lee la explicación de cada pregunta.

Las 15 preguntas de un vistazo

¿Prefieres leer antes de jugar? Abajo están todas las preguntas de la muestra. Las respuestas y explicaciones quedan plegadas hasta que las abras.

  1. 1.A student's program that averages three test scores runs without any error message, but it always reports an average that is too high. The code adds the three scores and divides by 2 instead of 3. What kind of error is this?
    • A. Syntax error
    • B. Logic error
    • C. Overflow error
    • D. Run-time error

    Respuesta: B. Logic error

    A logic error is a mistake in the algorithm: the program runs and produces a result, but the result is wrong. A syntax error breaks the rules of the language, so the program will not run at all. A run-time error stops the program while it is running, for example by dividing by zero, and an overflow error happens when a value is too large for the number of bits the computer uses to store it. Logic errors are the hardest to find because nothing crashes, which is why testing with inputs whose answer you already know matters.

  2. 2.Which practices are part of an iterative, collaborative way to develop a program?

    Marca todas las que correspondan.

    • A. Building a small working version, testing it with users and revising it
    • B. Having teammates review each other's code to catch errors and bring different perspectives
    • C. Writing the whole program before running it even once, so nothing half-finished confuses the team
    • D. Writing comments and documentation that explain what a code segment is for
    • E. Keeping the design secret from users until the final version is done

    Respuesta: A. Building a small working version, testing it with users and revising it, B. Having teammates review each other's code to catch errors and bring different perspectives, D. Writing comments and documentation that explain what a code segment is for

    Iterative development means building, testing and refining in small steps, so mistakes show up early and feedback shapes the next version. Collaboration brings in other viewpoints, and people with different backgrounds notice different problems and needs. Documentation helps teammates, and your future self, understand what code was meant to do. Writing everything before the first run lets errors pile up, and hiding the design from users removes the feedback the process depends on.

  3. 3.Complete the sentence.

    In binary, the number 1011 equals _____ in decimal, and a sequence of 8 bits can represent _____ different values.

    Opciones para el hueco 1: 9, 11, 13, 15

    Opciones para el hueco 2: 16, 128, 255, 256

    Respuesta: 11, 256

    Each binary place is worth twice the one to its right: 8, 4, 2, 1. So 1011 is 8 + 0 + 2 + 1 = 11. With n bits there are 2 to the power n different patterns, and 2^8 = 256, so 8 bits can represent 256 different values, from 0 through 255. The 255 option is the largest number that fits in 8 bits, not the count of values, and that off-by-one is a classic trap.

  4. 4.A museum is compressing scans of old documents and must be able to rebuild every original pixel exactly. Which approach should it use?
    • A. Lossless compression
    • B. Lossy compression with the quality set to high
    • C. Lossy compression after deleting every second row of pixels
    • D. Any compression, since a rebuilt file always matches the original

    Respuesta: A. Lossless compression

    Lossless compression reduces file size in a way that lets the original data be reconstructed exactly, which is what an archive needs. Lossy compression gets smaller files by throwing information away for good, and even at high quality the original cannot be rebuilt. Lossy is a sensible trade for streaming video or casual photos, where small differences are hard to see. The cost of lossless is that files stay larger.

  5. 5.A phone photo file includes the date, the GPS location and the camera model along with the image itself. Which statement is correct?
    • A. Metadata is the part of the image that is lost when the photo is compressed
    • B. Metadata can only be created by the person who views the file
    • C. Metadata changes the pixels of the image every time the photo is copied
    • D. Metadata is data about other data, and it can reveal private details even if you only share the photo

    Respuesta: D. Metadata is data about other data, and it can reveal private details even if you only share the photo

    Metadata describes a piece of data without being the data itself: when a photo was taken, where, with what device. It helps people organize and search large collections, and it can be changed or deleted without changing the image. It can also expose things the sender never meant to share, such as a home location, so many apps remove it on upload. Metadata is not lost by compression and does not alter the pixels.

  6. 6.total ← 0. FOR EACH item IN [3, 8, 12, 5, 10], IF (item MOD 2 = 0), then total ← total + item. After the loop, DISPLAY(total). What is displayed?
    • A. 8
    • B. 10
    • C. 30
    • D. 38

    Respuesta: C. 30

    item MOD 2 is the remainder when item is divided by 2, so the test is true only for even numbers. The even items are 8, 12 and 10, and 8 + 12 + 10 = 30. The 38 answer adds every item, as if the test were missing, and 8 is the sum of the odd items, 3 + 5. When you trace a loop, write the value of total after each pass, so the one skipped odd number is easy to see.

  7. 7.nums ← [4, 8, 15, 16]. Then INSERT(nums, 2, 23), REMOVE(nums, 1) and APPEND(nums, 42) run in that order. List positions start at 1. What does DISPLAY(nums[3]) show?
    • A. 8
    • B. 15
    • C. 16
    • D. 23

    Respuesta: B. 15

    Trace the list after each step. Start with [4, 8, 15, 16]. INSERT at position 2 puts 23 there and shifts the rest right: [4, 23, 8, 15, 16]. REMOVE position 1 deletes the 4: [23, 8, 15, 16]. APPEND adds 42 at the end: [23, 8, 15, 16, 42]. Position 3 holds 15. The 8 answer comes from forgetting that INSERT shifts items, and 16 comes from counting positions from 0 instead of 1.

  8. 8.Complete the sentence.

    Suppose p is true and q is false. Then p AND (NOT q) evaluates to _____, and NOT (p OR q) evaluates to _____.

    Opciones para el hueco 1: true, false

    Opciones para el hueco 2: true, false

    Respuesta: true, false

    Work from the inside out. NOT q is true because q is false, so p AND (NOT q) is true AND true, which is true. For the second one, p OR q is true OR false, which is true, and NOT true is false. AND is true only when both sides are true, OR is true when at least one side is, and NOT flips the value. Writing each sub-result on its own line prevents most mistakes.

  9. 9.Which statements about algorithms are true?

    Marca todas las que correspondan.

    • A. Every algorithm can be built from sequencing, selection and iteration
    • B. A faster computer can make any undecidable problem solvable
    • C. Two different algorithms can solve the same problem while using very different numbers of steps
    • D. A heuristic can be used when finding the best solution would take an unreasonable amount of time
    • E. An algorithm whose steps double with every added input is the best choice for very large inputs

    Respuesta: A. Every algorithm can be built from sequencing, selection and iteration, C. Two different algorithms can solve the same problem while using very different numbers of steps, D. A heuristic can be used when finding the best solution would take an unreasonable amount of time

    Sequencing, selection and iteration are enough to express any algorithm. Different algorithms for one problem can differ hugely in efficiency, which is why comparing step counts matters. A heuristic gives a good-enough answer in reasonable time when the exact answer is out of reach. An undecidable problem has no algorithm that works for every input, however fast the machine, and a step count that doubles with each added input quickly becomes unusable, since it is not a reasonable-time algorithm.

  10. 10.A city engineer uses a computer simulation of rush-hour traffic to test new traffic light timing before changing the real intersection. Which statement about the simulation is accurate?
    • A. It is always more reliable than watching the real intersection, because a simulation never leaves anything out
    • B. It cannot be used until the real intersection has been rebuilt
    • C. It removes the need for any data about real traffic
    • D. It lets the city test changes without cost or risk, but the results depend on what the model left out

    Respuesta: D. It lets the city test changes without cost or risk, but the results depend on what the model left out

    A simulation is an abstraction: it keeps the details that matter for the question and leaves the rest out. That makes it cheap and safe to try ideas, such as many timings in an afternoon, which would be impractical on a real street. The limit is that the results are only as good as the model and the data behind it, so a factor left out, such as a road closure, can make the real outcome differ. That is why simulation results are checked against real observations.

  11. 11.A school network connects each building to at least two others, so students can still reach the Internet if one cable is cut. Which statement best describes this design?
    • A. It is fault tolerant, because redundant paths keep the network working after a failure
    • B. It has higher bandwidth, because each cable carries more data
    • C. It has lower latency, because messages always take the shortest path
    • D. It is encrypted, because messages cannot be read in transit

    Respuesta: A. It is fault tolerant, because redundant paths keep the network working after a failure

    The Internet is built to be fault tolerant: there are usually several paths between two points, so routing can send data around a broken link. Extra connections do not by themselves raise bandwidth, which is how much data can move per second, and an alternate path can even be longer. Encryption is about privacy, not about surviving a failure. Redundancy is the key word for this kind of question.

  12. 12.Complete the sentence.

    The Domain Name System (DNS) looks up a _____ such as example.org and returns the matching _____, which routers use to deliver packets.

    Opciones para el hueco 1: packet, domain name, protocol, password

    Opciones para el hueco 2: IP address, bit rate, file format, encryption key

    Respuesta: domain name, IP address

    People use names such as example.org because they are easy to remember, but routers move data by IP address. DNS is the lookup service that translates a domain name into the IP address of the server. Without it you would have to type numbers to visit a site. A packet is a small chunk of data that travels the Internet, and a protocol is an agreed set of rules, such as TCP and IP.

  13. 13.A company trains a program to screen job applications using the records of people it hired over the past 20 years, most of whom came from a few similar backgrounds. Which concern is most likely?
    • A. The program will be fair, because computers cannot have bias
    • B. The program cannot run, because applications are not binary data
    • C. The program may repeat the pattern in the old hiring data, which is a form of computing bias
    • D. The program will only improve if the old records are deleted after training

    Respuesta: C. The program may repeat the pattern in the old hiring data, which is a form of computing bias

    Computing bias can come from the data a program learns from or from choices its designers make. A model trained on past decisions can copy their patterns, including unfair ones, and it can do so at scale and with an air of objectivity. Computers do not make bias impossible, and all digital data, including text, is stored in binary. Reducing bias takes steps such as checking results across groups and using more representative data, not deleting records.

  14. 14.Which actions help protect an online account from being taken over?

    Marca todas las que correspondan.

    • A. Turning on multifactor authentication
    • B. Reusing one strong password on every site so it is easy to remember
    • C. Treating a message that asks you to log in through a link with suspicion, since phishing tries to trick you into giving up your login
    • D. Using a different, long password for each account, ideally with a password manager
    • E. Sharing the one-time login code with anyone who says they work for support

    Respuesta: A. Turning on multifactor authentication, C. Treating a message that asks you to log in through a link with suspicion, since phishing tries to trick you into giving up your login, D. Using a different, long password for each account, ideally with a password manager

    Multifactor authentication requires a second proof besides the password, so a stolen password alone is not enough. Phishing is an attempt to trick people into entering credentials on a fake page, so going to the site directly beats clicking a link in a message. Unique passwords limit the damage if one site is breached, and a password manager makes them practical. Reusing a password lets one breach open many accounts, and a one-time code is meant for you alone, so no legitimate support team asks for it.

  15. 15.Maria publishes her public key. Devon wants to send her a message that only she can read, using public-key encryption. Which key does Devon use to encrypt it?
    • A. Devon's private key
    • B. Devon's public key
    • C. Maria's private key
    • D. Maria's public key

    Respuesta: D. Maria's public key

    In public-key encryption each person has a pair of keys. Anyone can use Maria's public key to encrypt a message to her, but only her private key can decrypt it, so only she can read it. Devon's own keys are not involved in this direction. The private key must never be shared, which is the whole point of the pair. Public keys are what let a browser start a secure connection with a site it has never met.

Cómo es el examen de AP CSP y cuánto pesa cada Big Idea

El examen de AP Computer Science Principles se puntúa de 1 a 5 y tiene dos partes. Según el College Board, el examen de fin de curso es totalmente digital y se hace en la app Bluebook. La Sección I son 70 preguntas de opción múltiple en 120 minutos y vale el 70 por ciento de tu nota, con cuatro opciones de respuesta cada una: 57 son de respuesta única, 5 son de respuesta única sobre un texto acerca de una innovación informática y 8 son de respuesta múltiple, en las que eliges 2 respuestas. La Sección II vale el otro 30 por ciento. Combina la tarea de rendimiento Create con 2 preguntas de respuesta escrita, 4 enunciados en total, que contestas en una parte de 60 minutos del día del examen y que preguntan por tu propio programa.

El College Board divide el curso en cinco Big Ideas y publica cuánto de la nota del examen aporta cada una. Algoritmos y programación es la más pesada, con el 30 al 35 por ciento. El impacto de la informática es el 21 al 26 por ciento, los datos el 17 al 22 por ciento, los sistemas informáticos y las redes el 11 al 15 por ciento, y el desarrollo creativo el 10 al 13 por ciento. Así que cerca de un tercio del examen es algoritmos y programación, en buena parte leer y seguir código, y cerca de un cuarto es el impacto de la informática en las personas, que es la parte que los estudiantes más suelen dejar para el final.

El College Board fija el examen de 2027 para el viernes 14 de mayo, en la Sesión 1, y la tarea de rendimiento Create se entrega como definitiva en el AP Digital Portfolio antes de las 11:59 p. m. (hora del Este) del viernes 30 de abril. Las fechas cambian de un año a otro, así que consulta la página del College Board para tu año de examen. Lo que vale una nota lo decide cada universidad, así que busca la política de las que te interesan.

Cómo usar esta muestra y qué deja fuera

Las 15 preguntas se reparten entre las Big Ideas más o menos en las mismas proporciones que el examen: cinco de algoritmos y programación, tres de datos, tres de impacto de la informática, dos de sistemas informáticos y redes y dos de desarrollo creativo. Piden el razonamiento detrás de una respuesta más que un término memorizado: por qué un programa que se ejecuta puede estar mal, por qué la compresión sin pérdida es la herramienta adecuada cuando cada píxel importa, por qué una simulación es útil y aun así limitada, por qué un modelo entrenado con datos viejos puede repetir injusticias viejas.

Las preguntas de código usan pseudocódigo en texto plano al estilo del examen. Una flecha significa asignar, así que x ← 3 guarda 3 en x. Las listas empiezan en la posición 1, no en la 0, y MOD da el resto de una división. El examen usa su propio pseudocódigo, no Python ni Java, así que puedes practicarlo aunque en tu clase trabajéis con otro lenguaje. Hazla de una sentada con papel de borrador, sigue cada programa apuntando el valor de cada variable después de cada línea, y después lee la explicación de todas las preguntas, también de las que acertaste.

Esta muestra no practica la tarea de rendimiento Create. Es el programa que construyes en clase durante unas 9 horas, con el código, un vídeo corto de él funcionando y una Personalized Project Reference, y tus respuestas escritas del día del examen tratan de ese mismo programa. Trabájala con tu profesor y con los materiales para estudiantes del College Board, y usa las preguntas de aquí solo como práctica de la sección de opción múltiple. Las preguntas son originales y están escritas a partir del esquema publicado del curso. No son preguntas de exámenes publicados.

Cómo StudyPDF crea tests de AP CSP con tus apuntes de clase

Quince preguntas te pueden enseñar qué Big Idea anda floja. Por sí solas no te preparan para el examen, y un banco genérico rara vez coincide con el vocabulario, los ejemplos y el pseudocódigo que usa tu profesor de verdad.

StudyPDF va por otro camino y parte de tu material. Subes tus apuntes de clase, las diapositivas de tu profesor, una hoja de problemas resueltos o tu cuadernillo de repaso, pulsas Nuevo material, y StudyPDF crea tests de práctica con esas páginas exactas. Cada pregunta sale de tu material y cada explicación cita de dónde viene la respuesta, así que puedes volver directo a la página cuando un paso no te cuadre.

No hace falta que subas nada para empezar. Di un tema, por ejemplo Internet y el DNS, o las listas y la iteración, y Bo lo prepara con sus conceptos clave para que puedas crear cuestionarios y tarjetas sobre él. Tus resultados siguen qué conceptos sigues fallando, para que el próximo test de práctica vaya a por ellos. Empezar es gratis.

Escrito por el equipo de StudyPDF. Actualizado el 19 de agosto de 2026.

Bueno saberlo

¿Este test de práctica de AP Computer Science Principles es de verdad gratis?

Sí. Las 15 preguntas, la pantalla de puntuación y todas las explicaciones son gratis y se juegan en tu navegador. En esta página no hay ningún muro de pago.

¿Cómo es la estructura del examen de AP CSP?

Según el College Board, la Sección I son 70 preguntas de opción múltiple en 120 minutos y vale el 70 por ciento de tu nota. La Sección II vale el 30 por ciento y combina la tarea de rendimiento Create, que construyes en clase durante unas 9 horas, con 2 preguntas de respuesta escrita en una parte de 60 minutos del día del examen. El examen se hace en la app Bluebook. Consulta la página del College Board para la fecha actual del examen.

¿Quién escribió estas preguntas y cubren la tarea Create?

El equipo de StudyPDF escribió cada pregunta y cada explicación a partir de las Big Ideas que publica el College Board para el curso. No son preguntas de exámenes publicados ni salen del banco de ningún proveedor de preparación. La tarea de rendimiento Create no se practica aquí, porque es un programa que construyes tú. StudyPDF no está afiliada al College Board, y AP es una marca registrada del College Board.

¿Puedo sacar más preguntas así de mis propios apuntes de clase?

Sí. Sube tus apuntes de clase, las diapositivas o el cuadernillo de repaso a StudyPDF y Bo crea tests de práctica completos con esas páginas exactas, con explicaciones que citan de dónde sale cada respuesta. Si solo tienes una copia en papel, di un tema, por ejemplo las listas y la iteración, y Bo escribe un test con él.

¿Necesitas más que una muestra?

Sube tu propio libro de preparación, diapositivas o apuntes y Bo crea tests de práctica completos con tu material, sigue qué conceptos sigues fallando y apunta a tus puntos débiles. Gratis para empezar.

Crear mi propio test
Crear mi propio test

Tu curso, no internet.

Funciones

  • Plan de estudio con IA
  • Pregunta a Bo
  • Tarjetas con IA
  • Image Occlusion
  • Exámenes con IA
  • Mapas mentales
  • Guías de estudio
  • Resumen con IA
  • Quiz con IA
  • Chuletas

Gratis

  • Todos los tests
  • Test TEAS de ciencias
  • Fichas de farmacología
  • Tarjetas de diapositivas

Comparativas

  • vs ChatGPT
  • vs Quizlet
  • vs Anki
  • vs YouLearn
  • Todas las comparativas
  • Alternativas
  • Ver comparativas
  • Mejor IA por carrera

Recursos

  • Glosario
  • Respuestas
  • Plantillas
  • Cómo funciona Bo
  • Por qué StudyPDF
  • Casos de uso

Empresa

  • Precios
  • Preguntas frecuentes
  • Misión
  • Programa de creadores
  • Para profesores
  • Profesorado
  • Enterprise
  • Contacto
  • Registro de cambios

Legal

  • Privacidad
  • Términos
  • Aviso legal
  • Eliminar cuenta
© 2026 StudyPDFEmpieza gratis. Sin tarjeta.