AP Computer Science
Principles Practice Exam
Questions And Correct
Answers (Verified Answers)
Plus Rationales 2025/2026
Q&A | Instant Download Pdf
1. Which of the following best describes a computer
program?
A. A set of instructions that only humans can understand
B. A step-by-step procedure written in natural language
C. A set of instructions that a computer can execute
D. A hardware component that stores data
Answer: C
Rationale: A program is a set of instructions written in a
programming language that a computer can execute.
2. What is the primary purpose of abstraction in
programming?
A. To make programs run faster
B. To hide unnecessary details and focus on essentials
,C. To increase memory usage
D. To convert binary into decimal
Answer: B
Rationale: Abstraction simplifies complex systems by hiding
details and showing only what is necessary.
3. Which of the following is an example of a condition in
programming?
A. Looping through a list
B. If temperature > 30, turn on fan
C. Storing data in an array
D. Printing output
Answer: B
Rationale: A condition evaluates true/false to decide what
action to take.
4. What does an algorithm represent?
A. A type of computer hardware
B. A programming language
C. A finite set of step-by-step instructions
D. A database system
Answer: C
Rationale: An algorithm is a clear, step-by-step procedure to
solve a problem.
,5. Which number system do computers use internally?
A. Decimal
B. Hexadecimal
C. Binary
D. Roman
Answer: C
Rationale: Computers use binary (0s and 1s) to represent
data.
6. What is the value of binary 1011 in decimal?
A. 9
B. 10
C. 11
D. 12
Answer: C
Rationale: 1011 = 8 + 0 + 2 + 1 = 11.
7. Which of the following is an example of input?
A. Displaying results on screen
B. Saving a file
C. Typing data into a keyboard
D. Printing a document
Answer: C
Rationale: Input refers to data entered into a system.
, 8. What is a variable used for in programming?
A. To store and change data
B. To execute loops
C. To delete programs
D. To connect to the internet
Answer: A
Rationale: Variables store values that can change during
execution.
9. Which structure repeats a block of code?
A. Conditional
B. Loop
C. Function
D. Array
Answer: B
Rationale: Loops repeat instructions multiple times.
10. What is the internet primarily used for?
A. Running software locally only
B. Connecting devices and sharing data globally
C. Storing only images
D. Powering computers
Answer: B
Rationale: The internet connects devices worldwide for
communication and data sharing.
Principles Practice Exam
Questions And Correct
Answers (Verified Answers)
Plus Rationales 2025/2026
Q&A | Instant Download Pdf
1. Which of the following best describes a computer
program?
A. A set of instructions that only humans can understand
B. A step-by-step procedure written in natural language
C. A set of instructions that a computer can execute
D. A hardware component that stores data
Answer: C
Rationale: A program is a set of instructions written in a
programming language that a computer can execute.
2. What is the primary purpose of abstraction in
programming?
A. To make programs run faster
B. To hide unnecessary details and focus on essentials
,C. To increase memory usage
D. To convert binary into decimal
Answer: B
Rationale: Abstraction simplifies complex systems by hiding
details and showing only what is necessary.
3. Which of the following is an example of a condition in
programming?
A. Looping through a list
B. If temperature > 30, turn on fan
C. Storing data in an array
D. Printing output
Answer: B
Rationale: A condition evaluates true/false to decide what
action to take.
4. What does an algorithm represent?
A. A type of computer hardware
B. A programming language
C. A finite set of step-by-step instructions
D. A database system
Answer: C
Rationale: An algorithm is a clear, step-by-step procedure to
solve a problem.
,5. Which number system do computers use internally?
A. Decimal
B. Hexadecimal
C. Binary
D. Roman
Answer: C
Rationale: Computers use binary (0s and 1s) to represent
data.
6. What is the value of binary 1011 in decimal?
A. 9
B. 10
C. 11
D. 12
Answer: C
Rationale: 1011 = 8 + 0 + 2 + 1 = 11.
7. Which of the following is an example of input?
A. Displaying results on screen
B. Saving a file
C. Typing data into a keyboard
D. Printing a document
Answer: C
Rationale: Input refers to data entered into a system.
, 8. What is a variable used for in programming?
A. To store and change data
B. To execute loops
C. To delete programs
D. To connect to the internet
Answer: A
Rationale: Variables store values that can change during
execution.
9. Which structure repeats a block of code?
A. Conditional
B. Loop
C. Function
D. Array
Answer: B
Rationale: Loops repeat instructions multiple times.
10. What is the internet primarily used for?
A. Running software locally only
B. Connecting devices and sharing data globally
C. Storing only images
D. Powering computers
Answer: B
Rationale: The internet connects devices worldwide for
communication and data sharing.