AP CSP Practice Test
97 exam-style multiple choice questions with explanations, on all five Big Ideas. Practice one Big Idea, or take a timed 70-question exam like the real one.
Big Idea 1: Creative Development (10-13% of the exam)
Collaboration, program design and the development process, syntax, logic and run-time errors, testing and debugging.
Question 2
Big Idea 1 · Creative DevelopmentWhat happens when the code segment below runs?
nums ← [1, 2, 3] DISPLAY (nums[0])
Show the answer
AP CSP list indexes go from 1 to LENGTH (nums). Index 0 is outside that range, which is a runtime error.
Question 3
Big Idea 1 · Creative DevelopmentA program to average 5 test scores adds them correctly but divides the total by 4. It runs without stopping and shows a number. What kind of error is this?
Show the answer
The program runs but gives the wrong result because of a mistake in the algorithm, which is a logic error.
Question 4
Big Idea 1 · Creative DevelopmentA procedure should return true when age is 13 or more. Which set of test values is the best choice to check it?
Show the answer
Testing just below, at and just above the boundary catches the most likely mistake, using > instead of ≥.
Question 5
Big Idea 1 · Creative DevelopmentWhich of the following best describes the purpose of comments in a program?
Show the answer
Comments are documentation for people. The computer ignores them when the program runs.
Question 6
Big Idea 1 · Creative DevelopmentWhich is a benefit of developing a program with a team of people who have different backgrounds?
Show the answer
Collaboration with diverse perspectives helps catch errors and avoid designs that only work for some users.
Question 7
Big Idea 1 · Creative DevelopmentWhich describes an iterative development process?
Show the answer
Iterative development cycles through design, implementation and testing many times, refining the program after each round.
Question 8
Big Idea 1 · Creative DevelopmentIn an event-driven program, when does a piece of code run?
Show the answer
Event-driven code waits for events like clicks, key presses or timers and runs the matching handler when they occur.
Question 9
Big Idea 1 · Creative DevelopmentWhat does a program's specification describe?
Show the answer
A specification describes the expected behavior and requirements, before deciding how to write the code.
Question 10
Big Idea 1 · Creative DevelopmentA program runs correctly for most inputs but stops with an error when the user enters 0, because it divides by the number entered. What kind of error is this?
Show the answer
The program is written correctly enough to start, but it fails while running on one input. That is a run-time error. A syntax error stops a program from running at all.
Question 11
Big Idea 1 · Creative DevelopmentA programmer forgets the closing brace } of a loop, and the program does not run at all. What kind of error is this?
Show the answer
A missing brace breaks the rules of the language, so the program cannot be translated and run. That is a syntax error.
Question 12
Big Idea 1 · Creative DevelopmentA team has built a first version of an app for ordering school lunches. Which is the best way to find out whether the app is easy to use?
Show the answer
Feedback from the people the app is for shows where they get stuck. The programmers already know how it works, so they cannot judge how easy it is for a new user.
Question 13
Big Idea 1 · Creative DevelopmentBefore writing any code, a student draws the screens of their app and writes down what each button should do. What is the main benefit of this step?
Show the answer
Design work such as sketches, diagrams and written plans helps find missing features and confusing parts early, when they are cheap to change. The program still has to be tested.
Question 14
Big Idea 1 · Creative DevelopmentA student uses a procedure they found on a programming forum in their own program. What should the student do?
Show the answer
Code written by someone else, including code from forums, libraries or AI tools, should be acknowledged. Using it is often allowed, but presenting it as your own is not.
Question 15
Big Idea 1 · Creative Development Select two answersA procedure returns the wrong value for some lists. Which two strategies are most useful for finding the error? Select two answers.
Show the answer
Showing intermediate values and hand-tracing a small test case both show where the actual behavior starts to differ from the expected one. Comments do not change how the code runs, and running the same test again gives the same wrong result.
Big Idea 2: Data (17-22% of the exam)
Binary numbers and bits, overflow and round-off, analog data and sampling, compression, metadata, cleaning and analyzing data.
Question 3
Big Idea 2 · DataWhat is the decimal value of the binary number 1011?
Show the answer
1011 is 8 + 0 + 2 + 1 = 11.
Question 4
Big Idea 2 · DataWhich binary number represents the decimal number 25?
Show the answer
25 = 16 + 8 + 1, so the bits for 16, 8 and 1 are set, giving 11001.
Question 5
Big Idea 2 · DataHow many different values can be represented with 6 bits?
Show the answer
Each bit doubles the number of possible values, so 6 bits give 2 to the 6th power, 64 values.
Question 6
Big Idea 2 · DataWhat is the smallest number of bits needed to give each of 100 students a different ID number?
Show the answer
6 bits give 64 values, which is not enough. 7 bits give 128, which is enough for 100.
Question 7
Big Idea 2 · DataA program stores whole numbers with a fixed number of bits. Adding two large numbers gives a result that is too big to store. What is this called?
Show the answer
An overflow error happens when a value needs more bits than the fixed number available.
Question 8
Big Idea 2 · DataA program shows 0.30000000000000004 for 0.1 + 0.2. What is the best explanation?
Show the answer
Real numbers are stored in a fixed number of bits, so values like 0.1 are approximations and small round-off errors appear.
Question 9
Big Idea 2 · DataWhich statement about lossless compression is true?
Show the answer
Lossless compression keeps all information, so decompressing gives back exactly the original. Lossy compression usually makes files smaller by throwing details away.
Question 10
Big Idea 2 · DataIn which situation is lossy compression the better choice?
Show the answer
Lossy compression gives much smaller files at the cost of some quality, which is acceptable for video but not for data that must stay exact.
Question 11
Big Idea 2 · Data Select two answersWhich two of the following must use lossless compression? Select two answers.
Show the answer
A changed character in a document or a changed byte in a program would break it, so these must be restored exactly. Music and photos can lose a little detail.
Question 12
Big Idea 2 · DataA digital photo includes the date it was taken and the location. What are these details an example of?
Show the answer
Metadata is data about data. Changing it does not change the picture itself.
Question 13
Big Idea 2 · DataA survey file has the values "NY", "New York" and "new york" for the same state. Making them all the same before analysis is called...
Show the answer
Cleaning data makes it uniform and correct so that it can be processed and compared reliably.
Question 14
Big Idea 2 · DataA city asks residents about bus service using a survey that is only available on its smartphone app. Which is the biggest concern about the results?
Show the answer
If the sample leaves out groups of people, conclusions from the data may not represent the whole population.
Question 15
Big Idea 2 · DataData shows that students who sleep more also have higher grades. Which conclusion is supported by this data alone?
Show the answer
A correlation shows two things change together. Other factors could explain both, so it does not prove causation.
Question 16
Big Idea 2 · DataWhich of the following has the largest value?
Show the answer
Binary 1100 is 12 and binary 1110 is 14, which is larger than 13 and 10.
Question 17
Big Idea 2 · DataWhich task is most likely to need a computer program instead of a person reading the data?
Show the answer
Programs can process very large data sets to find patterns that people could not find by hand.
Question 18
Big Idea 2 · DataA program keeps only the rows of a data set where the city is "Boston" and then counts them. What is this process an example of?
Show the answer
Filtering selects the rows that meet a condition so they can be counted or analyzed further.
Question 19
Big Idea 2 · DataSound is recorded by measuring the sound wave many times per second (sampling). What happens when the number of samples per second is increased?
Show the answer
Analog data is approximated by taking samples. More samples give a closer approximation, but each sample has to be stored, so the file grows. A digital recording is never an exact copy of the analog wave.
Question 20
Big Idea 2 · DataThe same sequence of bits, 01000001, is stored in two different files. Which statement is true?
Show the answer
Bits are an abstraction. The same pattern can stand for the number 65, the letter "A", part of a color or part of a sound, depending on how the data is used.
Question 21
Big Idea 2 · Data Select two answersWhich two changes make a digital sound recording more accurate, but also make the file larger? Select two answers.
Show the answer
More samples per second and more bits per sample both keep more detail of the original wave, and both add data. Lossy compression makes the file smaller by removing detail.
Big Idea 3: Algorithms and Programming (30-35% of the exam)
Variables, lists, conditionals, loops, procedures and parameters, strings, libraries, searching, algorithm efficiency, simulations.
Question 4
Big Idea 3 · Algorithms and ProgrammingWhat is displayed as a result of running the code segment below?
a ← 3 b ← 7 REPEAT 2 TIMES { a ← a + b } DISPLAY (a)
Show the answer
The loop body runs twice. After the first pass a is 3 + 7 = 10, after the second it is 10 + 7 = 17. Answer 10 stops after one pass.
Question 5
Big Idea 3 · Algorithms and ProgrammingWhat is displayed as a result of running the code segment below?
x ← 10 y ← x x ← 20 DISPLAY (y)
Show the answer
y ← x copies the value 10 into y at that moment. Changing x afterwards does not change y, so 10 is displayed.
Question 6
Big Idea 3 · Algorithms and ProgrammingWhat is displayed as a result of running the code segment below?
values ← [5, 10, 15, 20] DISPLAY (values[2])
Show the answer
In AP CSP the first element of a list is at index 1, so values[2] is the second element, 10.
Question 7
Big Idea 3 · Algorithms and ProgrammingWhat is displayed as a result of running the code segment below?
nums ← [2, 4, 6] APPEND (nums, 8) REMOVE (nums, 1) DISPLAY (nums)
Show the answer
APPEND adds 8 at the end, giving [2, 4, 6, 8]. REMOVE (nums, 1) removes the element at index 1, the 2, leaving [4, 6, 8].
Question 8
Big Idea 3 · Algorithms and ProgrammingWhat is displayed as a result of running the code segment below?
count ← 0 n ← 1 REPEAT UNTIL (n > 20) { n ← n * 3 count ← count + 1 } DISPLAY (count)
Show the answer
n goes 1 → 3 → 9 → 27. After the third pass n is 27, which is greater than 20, so the loop stops with count equal to 3.
Question 9
Big Idea 3 · Algorithms and ProgrammingWhat is displayed by DISPLAY (17 MOD 5)?
DISPLAY (17 MOD 5)
Show the answer
17 divided by 5 is 3 with a remainder of 2. MOD gives the remainder, 2.
Question 10
Big Idea 3 · Algorithms and ProgrammingWhat is displayed as a result of running the code segment below?
a ← true b ← false DISPLAY ((a AND NOT b) OR b)
Show the answer
NOT b is true, so a AND NOT b is true. true OR anything is true.
Question 11
Big Idea 3 · Algorithms and ProgrammingWhat is displayed as a result of running the code segment below?
PROCEDURE mystery (n) { result ← 0 REPEAT n TIMES { result ← result + n } RETURN (result) } DISPLAY (mystery (4))
Show the answer
The loop adds n to result n times, which computes n × n. For n = 4 the result is 16.
Question 12
Big Idea 3 · Algorithms and ProgrammingWhat is displayed as a result of running the code segment below?
total ← 0 FOR EACH item IN [3, 8, 5, 6] { IF (item MOD 2 = 0) { total ← total + item } } DISPLAY (total)
Show the answer
Only the even items, 8 and 6, are added. 8 + 6 = 14.
Question 13
Big Idea 3 · Algorithms and ProgrammingWhat is displayed as a result of running the code segment below?
letters ← ["a", "c"] INSERT (letters, 2, "b") DISPLAY (letters)
Show the answer
INSERT (letters, 2, "b") shifts the elements from index 2 on to the right and puts "b" at index 2.
Question 14
Big Idea 3 · Algorithms and ProgrammingWhich code segment swaps the values of the variables x and y?
Show the answer
A third variable keeps the old value of x. Without it, x ← y loses the original value of x and both variables end up equal.
Question 15
Big Idea 3 · Algorithms and ProgrammingA robot starts in a grid facing up, with no walls nearby. Where is the robot after the code segment below runs, compared with its starting square?
ROTATE_RIGHT () MOVE_FORWARD () MOVE_FORWARD () ROTATE_LEFT () MOVE_FORWARD ()
Show the answer
After ROTATE_RIGHT the robot faces right and moves two squares. ROTATE_LEFT turns it back to face up, and it moves one square up.
Question 16
Big Idea 3 · Algorithms and ProgrammingA sorted list contains 1,000 numbers. About how many values does a binary search need to check, at most, to find a number or decide that it is not in the list?
Show the answer
Each check halves the part of the list that is left. 2 to the 10th power is 1,024, so about 10 checks are enough for 1,000 values. A linear search may need 1,000.
Question 17
Big Idea 3 · Algorithms and ProgrammingWhich of the following best describes an undecidable problem?
Show the answer
An undecidable problem is one where no algorithm can correctly answer every instance. Slow problems can still be decidable.
Question 18
Big Idea 3 · Algorithms and ProgrammingA delivery company wants the shortest route through 200 stops, but checking every possible route would take far too long. It uses a method that quickly finds a route that is usually close to the shortest. What is this method called?
Show the answer
A heuristic gives a good-enough answer when finding the best answer exactly is impractical.
Question 19
Big Idea 3 · Algorithms and ProgrammingFor an algorithm, the number of steps doubles every time one element is added to the input. Which statement is true?
Show the answer
Steps that double with each element grow exponentially, which is unreasonable time. Polynomial growth (like n or n²) counts as reasonable.
Question 20
Big Idea 3 · Algorithms and ProgrammingWhich of the following is a benefit of using a computer simulation?
Show the answer
Simulations let you try scenarios safely and cheaply, but they rely on simplifications and assumptions, so they can differ from reality.
Question 21
Big Idea 3 · Algorithms and ProgrammingWhat is displayed as a result of running the code segment below?
x ← 15 IF (x > 10) { IF (x > 20) { DISPLAY ("A") } ELSE { DISPLAY ("B") } } ELSE { DISPLAY ("C") }
Show the answer
15 > 10 is true, so the inner IF runs. 15 > 20 is false, so its ELSE displays B. The outer ELSE is skipped.
Question 22
Big Idea 3 · Algorithms and Programming Select two answersx has the value 7. Which two expressions evaluate to true? Select two answers.
Show the answer
7 is between 5 and 10, and 7 ≥ 7 is true, which makes the OR true. 7 is odd, so x MOD 2 is 1, and NOT (x = 7) is false.
Question 23
Big Idea 3 · Algorithms and ProgrammingWhat is displayed as a result of running the code segment below?
n ← 10 REPEAT UNTIL (n > 5) { n ← n - 1 } DISPLAY (n)
Show the answer
REPEAT UNTIL checks its condition before each pass. 10 > 5 is already true, so the body never runs and n stays 10.
Question 24
Big Idea 3 · Algorithms and ProgrammingWhat happens when the code segment below runs?
n ← 1 REPEAT UNTIL (n = 10) { n ← n + 2 } DISPLAY (n)
Show the answer
n takes only odd values (1, 3, 5, 7, 9, 11, ...) and never equals 10, so the condition is never true.
Question 25
Big Idea 3 · Algorithms and ProgrammingWhat is displayed as a result of running the code segment below?
PROCEDURE double (x) { RETURN (x * 2) } y ← double (double (3)) DISPLAY (y)
Show the answer
The inner call returns 6, and double (6) returns 12.
Question 26
Big Idea 3 · Algorithms and ProgrammingWhich value can NOT be displayed by the code segment below?
DISPLAY (RANDOM (1, 3) + RANDOM (1, 3))
Show the answer
Each call returns 1, 2 or 3, so the sum is between 2 and 6. 1 is impossible.
Question 27
Big Idea 3 · Algorithms and ProgrammingThe procedure below is meant to return the smallest value in a list. For which list does it NOT return the smallest value?
PROCEDURE findMin (aList) { minVal ← 0 FOR EACH item IN aList { IF (item < minVal) { minVal ← item } } RETURN (minVal) }
Show the answer
minVal starts at 0, so for a list of only positive numbers no item is smaller and the procedure returns 0 instead of 2. Starting with minVal ← aList[1] fixes it.
Question 28
Big Idea 3 · Algorithms and ProgrammingWhat is displayed as a result of running the code segment below?
nums ← [4, 7, 1] temp ← nums[1] nums[1] ← nums[3] nums[3] ← temp DISPLAY (nums)
Show the answer
temp keeps 4, the first element is replaced with the third (1), and the third is set to 4.
Question 29
Big Idea 3 · Algorithms and ProgrammingWhat is displayed as a result of running the code segment below?
PROCEDURE addTax (price, rate) { RETURN (price + price * rate / 100) } DISPLAY (addTax (200, 10))
Show the answer
The arguments 200 and 10 are given to the parameters price and rate. The procedure returns 200 + 200 * 10 / 100 = 200 + 20 = 220.
Question 30
Big Idea 3 · Algorithms and ProgrammingWhat is displayed as a result of running the code segment below?
nums ← [4, 9, 2, 7] count ← 0 i ← 1 REPEAT UNTIL (i > LENGTH (nums)) { IF (nums[i] > 5) { count ← count + 1 } i ← i + 1 } DISPLAY (count)
Show the answer
The loop visits indexes 1 to 4. Only 9 and 7 are greater than 5, so count ends at 2. Using LENGTH (nums) makes the loop work for a list of any size.
Question 31
Big Idea 3 · Algorithms and ProgrammingThe procedure concat (str1, str2) returns str1 followed by str2. The procedure substring (str, start, length) returns length characters of str beginning at position start, where the first character is at position 1. What does substring (concat ("data", "base"), 3, 4) return?
Show the answer
concat ("data", "base") returns "database". Starting at position 3 (the letter t) and taking 4 characters gives "taba".
Question 32
Big Idea 3 · Algorithms and ProgrammingWhich condition must be true for a binary search to work correctly on a list?
Show the answer
Binary search checks the middle element and throws away the half that cannot contain the target. That only works if the list is in order. A linear search works on any list.
Question 33
Big Idea 3 · Algorithms and ProgrammingA program calls the procedure sortScores (scoreList) in several places. Which is a benefit of using this procedure?
Show the answer
A procedure is an abstraction. Callers only need to know what it does, not how, so its code can be improved in one place and every call benefits. It also avoids repeating the same code.
Question 34
Big Idea 3 · Algorithms and ProgrammingA programmer wants to use a library of map procedures in an app. What does the library's API (application program interface) documentation provide?
Show the answer
An API describes how to use the procedures of a library: their names, parameters and results. Programmers can use them without reading or copying the code inside.
Big Idea 4: Computer Systems and Networks (11-15% of the exam)
How the Internet works (packets, IP, TCP, DNS, routing), fault tolerance, parallel and distributed computing.
Question 5
Big Idea 4 · Computer Systems and NetworksWhich protocol makes sure that the packets of a message are delivered reliably and put back in the right order?
Show the answer
TCP numbers the packets, asks for missing ones to be sent again and reassembles them in order. IP handles addressing and routing.
Question 6
Big Idea 4 · Computer Systems and NetworksWhich statement about packets sent over the Internet is true?
Show the answer
Routers send each packet on whatever path works at that moment, so packets may arrive in a different order.
Question 7
Big Idea 4 · Computer Systems and NetworksData still reaches its destination when one connection in a network fails. Which property makes this possible?
Show the answer
Having more than one path between devices makes a network fault tolerant, because traffic can go around a failure.
Question 8
Big Idea 4 · Computer Systems and NetworksWhat does bandwidth measure?
Show the answer
Bandwidth is the maximum data transfer rate, usually measured in bits per second.
Question 9
Big Idea 4 · Computer Systems and NetworksThree independent tasks take 30, 40 and 50 seconds on one processor. What is the shortest time to finish all three with two processors running in parallel?
Show the answer
Put the 50-second task on one processor and the 30- and 40-second tasks on the other. The second processor takes 70 seconds, so everything is done after 70 seconds.
Question 10
Big Idea 4 · Computer Systems and NetworksWhich is the main advantage of distributed computing?
Show the answer
Distributed computing splits work across many devices, allowing problems that need more time or storage than one computer has.
Question 11
Big Idea 4 · Computer Systems and NetworksWhat does the Domain Name System (DNS) do?
Show the answer
DNS looks up the IP address for a domain name so that devices can connect to the right server.
Question 12
Big Idea 4 · Computer Systems and Networks Select two answersWhich two statements about routing on the Internet are true? Select two answers.
Show the answer
Routing is dynamic and has no central computer, which lets packets use different paths and avoid failed routers.
Question 13
Big Idea 4 · Computer Systems and NetworksThe Internet has grown from a few computers to billions of devices. Which design feature made this growth possible?
Show the answer
Open, shared protocols like TCP/IP let any device join without central approval, which makes the Internet scalable.
Question 14
Big Idea 4 · Computer Systems and NetworksA task takes 60 seconds on one processor. Run in parallel on several processors, the same task takes 20 seconds. What is the speedup?
Show the answer
Speedup is the time of the sequential solution divided by the time of the parallel solution, so 60 / 20 = 3.
Question 15
Big Idea 4 · Computer Systems and NetworksFour computers are connected in a ring, A to B, B to C, C to D and D to A. What is the smallest number of connections that must fail before A can no longer send data to C?
Show the answer
A can reach C through B or through D. One failed connection still leaves the other path, so two connections must fail (one on each path). Having more than one path is what makes a network fault tolerant.
Question 16
Big Idea 4 · Computer Systems and NetworksWhy was IPv6 introduced to replace IPv4 on the Internet?
Show the answer
IPv4 addresses use 32 bits, about 4.3 billion addresses, which is not enough for all devices. IPv6 uses 128 bits, giving far more addresses.
Big Idea 5: Impact of Computing (21-26% of the exam)
Beneficial and harmful effects, the digital divide, bias, crowdsourcing, legal and ethical issues, privacy and safe computing.
Question 6
Big Idea 5 · Impact of ComputingWhich is an example of the digital divide?
Show the answer
The digital divide is unequal access to computing and the Internet, often linked to income, location or age.
Question 7
Big Idea 5 · Impact of ComputingAn email that looks like it comes from a bank asks you to click a link and enter your password. What is this?
Show the answer
Phishing tricks people into giving personal information by pretending to be a trusted source.
Question 8
Big Idea 5 · Impact of ComputingIn public key encryption, which statement is true?
Show the answer
The public key can be shared freely to encrypt messages. Only the owner of the matching private key can decrypt them.
Question 9
Big Idea 5 · Impact of ComputingWhich is an example of multifactor authentication?
Show the answer
Multifactor authentication combines different kinds of evidence, such as something you know (a password) and something you have (a phone).
Question 10
Big Idea 5 · Impact of ComputingWhat does a Creative Commons license let a creator do?
Show the answer
Creative Commons licenses let creators share their work while choosing conditions such as giving credit or non-commercial use.
Question 11
Big Idea 5 · Impact of ComputingA map app asks thousands of drivers to report traffic jams. What is this an example of?
Show the answer
Crowdsourcing gets information or work from a large number of people, usually over the Internet.
Question 12
Big Idea 5 · Impact of ComputingVolunteers count birds in their gardens and upload the numbers for researchers. What is this called?
Show the answer
In citizen science, members of the public help collect or analyze data for scientific research.
Question 13
Big Idea 5 · Impact of ComputingA hiring program is trained on past hiring decisions that favored one group. What is the most likely result?
Show the answer
Programs that learn from biased data can repeat or even amplify that bias.
Question 14
Big Idea 5 · Impact of ComputingSoftware secretly records every key a user presses to steal passwords. What is it called?
Show the answer
Keylogging software is a type of malware that records keystrokes to capture passwords and other private data.
Question 15
Big Idea 5 · Impact of ComputingAn attacker sets up a free Wi-Fi network named like a café's network to read the traffic of people who connect. What is this?
Show the answer
A rogue access point is a wireless network that gives an attacker unauthorized access to the data sent through it.
Question 16
Big Idea 5 · Impact of ComputingWhich of the following is personally identifiable information (PII)?
Show the answer
PII is information that can identify a specific person, such as a name with a home address, a phone number or a social security number.
Question 17
Big Idea 5 · Impact of ComputingWhy do many websites store cookies in your browser?
Show the answer
Cookies store small pieces of data that let sites remember you, which can also be used to track your browsing.
Question 18
Big Idea 5 · Impact of ComputingWhat is open source software?
Show the answer
Open source software makes its code available so that people can study, change and share it under its license.
Question 19
Big Idea 5 · Impact of Computing Select two answersWhich two actions best reduce the risk of someone getting into your accounts? Select two answers.
Show the answer
Multifactor authentication stops attackers who only know your password, and updates fix security holes. Reused or shared passwords make accounts easier to break into.
Question 20
Big Idea 5 · Impact of ComputingA student finds a photo on a website and wants to use it in a public app. Which statement is true?
Show the answer
Work found online is usually still protected by copyright. Use it only with permission, a license such as Creative Commons, or another legal basis.
Question 21
Big Idea 5 · Impact of ComputingWhich statement best describes the effects of a computing innovation such as social media?
Show the answer
Computing innovations often have effects their creators did not plan, both good and bad, and the same effect can be seen differently by different people.
Question 22
Big Idea 5 · Impact of ComputingWhat is the main purpose of encryption?
Show the answer
Encryption encodes data so that only someone with the right key can read it, protecting it from people who intercept it.
Question 23
Big Idea 5 · Impact of ComputingWhich statement describes symmetric encryption?
Show the answer
In symmetric encryption both sides use one shared secret key. Public key (asymmetric) encryption uses a pair of keys, a public one for encrypting and a private one for decrypting.
Question 24
Big Idea 5 · Impact of ComputingA program attaches itself to other files and spreads to other computers when those files are shared, without the users knowing. What is it called?
Show the answer
A virus is malware that copies itself into other programs or files and spreads when they are run or shared. Keeping software updated and not opening unknown files reduce the risk.
Question 25
Big Idea 5 · Impact of ComputingWhen you visit a website that uses HTTPS, what does a certificate authority do?
Show the answer
A certificate authority issues digital certificates that confirm a website's identity and its public key, so the browser knows it is talking to the real site before encrypting the connection.
Question 26
Big Idea 5 · Impact of ComputingA fitness app shares its users' running routes publicly without their names. Which is the most likely privacy risk?
Show the answer
Removing names is not enough. Routes that start and end at the same place, at the same times each day, can reveal a person's home and routine. Combining data sets can identify people.
Frequently asked questions
How many questions are on the AP CSP exam?
70 multiple choice questions in 120 minutes: most have one correct answer, some ask you to select two, and a few are about a reading passage on a computing innovation.
Which Big Idea has the most questions?
Big Idea 3, Algorithms and Programming, with 30-35% of the exam. Then Impact of Computing (21-26%), Data (17-22%), Computer Systems and Networks (11-15%) and Creative Development (10-13%).
Are my answers saved?
Your progress is saved in this browser, so you can close the page and continue later.
Can I run the code in a question?
Yes. In practice mode, Run this code opens the question's code in the AP CSP pseudocode runner. It is hidden during a timed exam.
The questions are written by CodeUtility in the style of the exam; they are not College Board questions. AP is a trademark registered by the College Board, which is not affiliated with, and does not endorse, this site.