InsegnantiPer insegnantiStrumentiPrezziAppApp mobile
Accedi
Inizia gratisInizia gratis
Chiedi a Bo
  • Piano di studio IAPianifica ogni giorno fino all'esame
  • Chiedi tutto a BoRisposte prese dalle tue lezioni, con fonti
  • Flashcard con l'IACreami un mazzo per il capitolo 4
  • Image OcclusionCopri le etichette di uno schema
  • Simulazioni d'esameCrea una simulazione da 20 domande
  • Mappe concettualiMostra come si collegano queste idee
  • Guide allo studioRiassumi tutta l'unità
  • Riassunto con l'IARiassumi la lezione di venerdì
  • Quiz con l'IAInterrogami sul capitolo 4
  • BiginiUna pagina per l'esame finale
Inizia gratisInizia gratisAccedi
  • Piano di studio IA
  • Chiedi tutto a Bo
  • Flashcard con l'IA
  • Image Occlusion
  • Simulazioni d'esame
  • Mappe concettuali
  • Guide allo studio
  • Riassunto con l'IA
  • Quiz con l'IA
  • Bigini
Per insegnantiStrumentiPrezziApp
Scuola superiore e ammissione

Test AP Computer Science Principles

  • 15 domande
  • Circa 15 min
  • Gratis

Le domande del test restano in inglese.

Domanda 1 di 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?

Studi con i tuoi appunti? Crea il mio test

Continua a esercitarti

  • Test di esercitazioneTest AP Statistics: unità da 1 a 515 domande
  • Test di esercitazioneTest AP Precalculus: unità da 1 a 315 domande
  • Test di esercitazioneTest di esercitazione APUSH: periodi 1-915 domande
  • Test di esercitazioneTest di esercitazione AP Psychology15 domande
  • Tutti i quiz di Scuola superiore e ammissione46 quiz
  • Sfoglia tutti i quiz gratuiti

Crea il tuo

Carica il tuo libro, le slide o i tuoi appunti, oppure di' a Bo cosa vuoi studiare. Per iniziare non serve nessun documento.

Crea il mio test

Account gratuito, senza carta

Su questo test

Questo è un assaggio gratuito da 15 domande nello stile della sezione a scelta multipla di AP Computer Science Principles, scritto dal team di StudyPDF dalle cinque Big Idea che il College Board pubblica per il corso. Copre lo sviluppo creativo, i dati, gli algoritmi e la programmazione in pseudocodice nello stile dell'esame, i sistemi informatici e le reti e l'impatto dell'informatica, più o meno con i pesi che usa l'esame. Troverai scelta multipla, risposta multipla e completamento di frasi. Rispondi a tutte e 15 le domande, poi guarda il punteggio e leggi la spiegazione di ognuna.

Tutte le 15 domande a colpo d'occhio

Preferisci leggere prima di iniziare? Qui sotto trovi tutte le domande del test. Risposte e spiegazioni restano chiuse finché non le apri.

  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

    Risposta: 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?

    Seleziona tutte le risposte corrette.

    • 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

    Risposta: 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.

    Opzioni per lo spazio 1: 9, 11, 13, 15

    Opzioni per lo spazio 2: 16, 128, 255, 256

    Risposta: 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

    Risposta: 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

    Risposta: 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

    Risposta: 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

    Risposta: 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 _____.

    Opzioni per lo spazio 1: true, false

    Opzioni per lo spazio 2: true, false

    Risposta: 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?

    Seleziona tutte le risposte corrette.

    • 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

    Risposta: 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

    Risposta: 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

    Risposta: 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.

    Opzioni per lo spazio 1: packet, domain name, protocol, password

    Opzioni per lo spazio 2: IP address, bit rate, file format, encryption key

    Risposta: 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

    Risposta: 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?

    Seleziona tutte le risposte corrette.

    • 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

    Risposta: 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

    Risposta: 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.

Com'è fatto l'esame AP CSP e come pesano le Big Idea

L'esame AP Computer Science Principles ha un punteggio da 1 a 5 e due parti. Secondo il College Board, l'esame di fine corso è completamente digitale nell'app Bluebook. La Sezione I ha 70 domande a scelta multipla in 120 minuti e vale il 70 per cento del punteggio, ciascuna con quattro opzioni: 57 sono a risposta singola, 5 sono a risposta singola basate su un brano su un'innovazione informatica e 8 sono a risposta multipla in cui scegli 2 risposte. La Sezione II vale il restante 30 per cento. Combina il Create performance task con 2 domande a risposta scritta, in tutto 4 richieste, a cui rispondi in una parte di 60 minuti del giorno dell'esame e che riguardano il tuo programma.

Il College Board divide il corso in cinque Big Idea e pubblica quanto ciascuna pesa sul punteggio dell'esame. Algoritmi e programmazione è la più pesante, dal 30 al 35 per cento. L'impatto dell'informatica va dal 21 al 26 per cento, i dati dal 17 al 22, i sistemi informatici e le reti dall'11 al 15 e lo sviluppo creativo dal 10 al 13. Quindi circa un terzo dell'esame riguarda algoritmi e programmazione, in gran parte leggere e seguire il codice, e circa un quarto riguarda l'impatto dell'informatica sulle persone, la parte che gli studenti lasciano più spesso per ultima.

Il College Board indica l'esame del 2027 per venerdì 14 maggio, nella Sessione 1, e il Create performance task va consegnato come versione finale nell'AP Digital Portfolio entro le 11:59 p.m. ET di venerdì 30 aprile. Le date cambiano da un anno all'altro, quindi controlla la pagina del College Board per il tuo anno d'esame. Cosa vale un punteggio lo decide ogni college, quindi cerca la politica delle università che ti interessano.

Come usare questo assaggio e cosa lascia fuori

Le 15 domande sono distribuite sulle Big Idea più o meno nelle stesse proporzioni dell'esame: cinque su algoritmi e programmazione, tre sui dati, tre sull'impatto dell'informatica, due su sistemi informatici e reti e due sullo sviluppo creativo. Chiedono il ragionamento dietro una risposta più che un termine imparato a memoria: perché un programma che gira può comunque essere sbagliato, perché la compressione senza perdita è lo strumento giusto quando conta ogni pixel, perché una simulazione è utile ma limitata, perché un modello addestrato su dati vecchi può ripetere vecchie ingiustizie.

Le domande di codice usano uno pseudocodice in formato testo nello stile dell'esame. Una freccia significa assegnare, quindi x ← 3 salva 3 in x. Le liste partono dalla posizione 1, non da 0, e MOD dà il resto di una divisione. L'esame usa un suo pseudocodice, non Python né Java, quindi puoi esercitarti anche se la tua classe lavora con un altro linguaggio. Fallo in una sola seduta con un foglio di brutta, segui ogni programma scrivendo il valore di ogni variabile dopo ogni riga, poi leggi la spiegazione di ogni domanda, comprese quelle che hai azzeccato.

Questo assaggio non esercita il Create performance task. È il programma che costruisci in classe in circa 9 ore, con il codice, un breve video che lo mostra in esecuzione e un Personalized Project Reference, e le tue risposte scritte il giorno dell'esame riguardano quello stesso programma. Lavoraci con il tuo insegnante e con le dispense per studenti del College Board, e considera le domande qui come esercitazione solo per la sezione a scelta multipla. Le domande sono originali e scritte sul quadro del corso pubblicato. Non sono domande d'esame rilasciate.

Come StudyPDF crea test di AP CSP dai tuoi appunti di classe

Quindici domande ti mostrano quale Big Idea è fragile. Da sole non bastano per arrivare pronto, e una banca generica raramente corrisponde al vocabolario, agli esempi e allo pseudocodice che usa davvero il tuo insegnante.

StudyPDF parte invece dal tuo materiale. Carica gli appunti di classe, le slide del tuo insegnante, un set di esercizi svolti o il tuo fascicolo di ripasso, premi Nuovo materiale, e StudyPDF crea test da quelle pagine esatte. Ogni domanda nasce dal tuo materiale e ogni spiegazione cita da dove viene la risposta, così puoi tornare subito alla pagina quando un passaggio non ti torna.

Per iniziare non devi caricare niente. Indica un argomento, per esempio Internet e DNS, oppure liste e iterazione, e Bo lo prepara con i suoi concetti chiave, così puoi creare quiz e flashcard su di esso. I tuoi risultati tengono traccia dei concetti che continui a sbagliare, così il prossimo test può puntare su quelli. Iniziare è gratis.

Scritto dal team di StudyPDF. Ultimo aggiornamento 19 agosto 2026.

Buono a sapersi

Questo test di AP Computer Science Principles è davvero gratuito?

Sì. Tutte e 15 le domande, la schermata del punteggio e ogni spiegazione sono gratuite da giocare nel browser, e in questa pagina non c'è nessun paywall.

Com'è strutturato l'esame AP CSP?

Secondo il College Board, la Sezione I ha 70 domande a scelta multipla in 120 minuti e vale il 70 per cento del punteggio. La Sezione II vale il 30 per cento e combina il Create performance task, che costruisci in classe in circa 9 ore, con 2 domande a risposta scritta in una parte di 60 minuti del giorno dell'esame. L'esame si svolge nell'app Bluebook. Controlla la pagina del College Board per la data attuale dell'esame.

Chi ha scritto queste domande, e coprono il Create task?

Il team di StudyPDF ha scritto ogni domanda e ogni spiegazione dalle Big Idea che il College Board pubblica per il corso. Non sono domande d'esame rilasciate e non vengono dalla banca di nessun fornitore di preparazione. Il Create performance task qui non si esercita, perché è un programma che costruisci tu. StudyPDF non è affiliata al College Board, e AP è un marchio del College Board.

Posso avere altre domande come queste dai miei appunti di classe?

Sì. Carica su StudyPDF i tuoi appunti di classe, le slide o il fascicolo di ripasso, e Bo crea test completi da quelle pagine esatte, con spiegazioni che citano da dove viene ogni risposta. Se hai solo una copia cartacea, indica un argomento, per esempio liste e iterazione, e Bo scrive un test su quello.

Ti serve più di un assaggio?

Carica il tuo libro di preparazione, le slide o gli appunti e Bo crea test completi dai tuoi materiali esatti, tiene traccia dei concetti che sbagli e ti fa lavorare sui punti deboli. Inizi gratis.

Crea il mio test
Crea il mio test

Il tuo corso, non internet.

Funzionalità

  • Piano di studio IA
  • Chiedi a Bo
  • Flashcard con l'IA
  • Image Occlusion
  • Esami con l'IA
  • Mappe concettuali
  • Guide allo studio
  • Riassunto con l'IA
  • Quiz con l'IA
  • Bigini

Strumenti gratuiti

  • Tutti i quiz
  • Quiz TEAS scienze
  • Flashcard di farmacologia
  • Flashcard dalle slide

Confronti

  • vs ChatGPT
  • vs Quizlet
  • vs Anki
  • vs YouLearn
  • Tutti i confronti
  • Alternative
  • Strumenti a confronto
  • Migliore IA per corso

Risorse

  • Glossario
  • Risposte
  • Modelli
  • Come funziona Bo
  • Perché StudyPDF
  • Casi d'uso

Azienda

  • Prezzi
  • FAQ
  • Missione
  • Programma creator
  • Per insegnanti
  • Per docenti universitari
  • Enterprise
  • Contatti
  • Registro modifiche

Note legali

  • Privacy
  • Termini
  • Note legali
  • Elimina account
© 2026 StudyPDFInizia gratis. Senza carta.