Update 2026/2027 |A Comprehensive Sample of
210 Multichoice Questions Covering Full Scope
of the Title| Each Question Includes the Correct
Answer with a Detailed Rationale| Guaranteed
Pass
Introduction
This question bank is generated directly from the AP CSP Code HS Exam
Review content you provided. It contains 210 unique multiple-choice
questions covering every major topic in the source material: algorithms,
abstraction, programming constructs, data types, lists, procedures, the Internet,
protocols, cybersecurity, encryption, data compression, digital divide, and more.
Section 1: Algorithms, Abstraction, and Programming Fundamentals
1. What is an algorithm?
A. A random guess used to solve a problem
B. A precise sequence of instructions for processes that can be executed by a
computer
C. A type of computer hardware
D. A programming language
Correct Answer: B
Rationale: The review defines an algorithm as "a precise sequence of instructions
for processes that can be executed by a computer."
2. What does abstraction involve?
A. Making a problem more complicated
B. Pulling out specific differences to make one solution work for multiple
,problems
C. Deleting all unnecessary code
D. Converting code to binary
Correct Answer: B
Rationale: Abstraction is described as "pulling out specific differences to make
one solution work for multiple problems."
3. A piece of code that you can easily call over and over again and that returns
a value is called a:
A. Loop
B. Variable
C. Function
D. Boolean
Correct Answer: C
Rationale: A function is defined as "a piece of code that you can easily call over
and over again; returns a value."
4. What is a parameter?
A. A type of loop
B. An extra piece of information passed to a function to customize it for a specific
need
C. A binary digit
D. A file extension
Correct Answer: B
Rationale: A parameter is "an extra piece of information that you pass to the
function to customize it for a specific need."
5. Which loop defines a counting variable that is checked and incremented on
each iteration?
A. While loop
B. For loop
,C. Infinite loop
D. Nested loop
Correct Answer: B
Rationale: A for loop is "a particular kind of looping construct... this type of
iteration defines a counting variable that is checked and incremented on each
iteration."
6. What is the action of doing something over and over again called?
A. Abstraction
B. Iteration
C. Selection
D. Sequencing
Correct Answer: B
Rationale: A loop is "the action of doing something over and over again;
iteration."
7. How many bits are in a byte?
A. 4
B. 8
C. 16
D. 32
Correct Answer: B
Rationale: A byte is the "technical term for 8 bits of data."
8. How many bytes are in a kilobyte (KB)?
A. 100
B. 1000
C. 1024
D. 2048
, Correct Answer: C
Rationale: A kilobyte is defined as 1024 bytes.
9. How many kilobytes are in a megabyte (MB)?
A. 100
B. 1000
C. 1024
D. 512
Correct Answer: C
Rationale: A megabyte is 1,024 kilobytes.
10. How many megabytes are in a gigabyte (GB)?
A. 100
B. 1000
C. 1024
D. 2048
Correct Answer: C
Rationale: A gigabyte is 1,024 megabytes.
11. How many gigabytes are in a terabyte (TB)?
A. 100
B. 1000
C. 1024
D. 512
Correct Answer: C
Rationale: A terabyte is 1,024 gigabytes.
12. Which file format is a bitmap image file used to store digital images?
A. .gif
B. .bmp