AP CSP Practice Test Programming Fundamentals

Big Idea 3 Practice Test - Part 1

Programming Fundamentals

25 Multiple-Choice Questions

⏱ 30 minutes recommended 📊 25 questions 🎯 Big Idea 3 Focus

Test Instructions

  • This test focuses on Big Idea 3: Variables, data types, expressions, assignment, and basic programming concepts
  • Select one answer for each question
  • You can change your answers before submitting
  • Click "Submit Test" when finished to see your score and explanations
  • For AP exam practice, try to complete the test in 30 minutes
Question 1
Which data type is MOST appropriate for storing a person's age in years?
Question 2
Which data type should be used to indicate whether a store is currently open or closed?
Question 3
Consider the following code segment:
x ← 10
y ← x * 2
x ← 15
What are the values of x and y after this code executes?
Question 4
Which of the following expressions evaluates to true?
Question 5
What value is displayed after executing the following code?
a ← 7
b ← 3
c ← a MOD b
DISPLAY(c)
Question 6
What is displayed by the following code?
num ← 15
result ← num / 4
DISPLAY(result)
Question 7
Which Boolean expression is equivalent to NOT (a AND b)?
Question 8
Consider this code:
score ← 85
grade ← "B"
score ← 92
What is the final value of score?
Question 9
What does the following expression evaluate to?
(true OR false) AND (NOT false)
Question 10
Which operation produces the remainder when dividing two numbers?
Question 11
What value is displayed?
x ← 20
y ← x / 5
z ← y + 3
DISPLAY(z)
Question 12
Which expression evaluates to false?
Question 13
After this code executes, what is the value of result?
a ← 12
b ← 5
result ← a - b * 2
Question 14
What is 17 MOD 5?
Question 15
Which Boolean expression is true when x is between 10 and 20 (inclusive)?
Question 16
What does this code display?
temp ← 8
temp ← temp + 4
DISPLAY(temp)
Question 17
Which expression is NOT equivalent to the others?
Question 18
What value is assigned to answer?
num ← 25
answer ← num MOD 7
Question 19
Which data type is BEST for storing a student's name?
Question 20
What is the result of this expression?
NOT (true AND false)
Question 21
After this code, what is the value of total?
price ← 50
tax ← price * 0.08
total ← price + tax
Question 22
Which Boolean expression is true when x is NOT equal to 10?
Question 23
What does this code display?
value ← 18
value ← value / 3
value ← value * 2
DISPLAY(value)
Question 24
Which expression is true?
Question 25
What is 100 MOD 9?
--

out of 25

--

Answer Review

Get in Touch

Whether you're a student, parent, or teacher — I'd love to hear from you.

Just want free AP CS resources?

Enter your email below and check the subscribe box — no message needed. Students get daily practice questions and study tips. Teachers get curriculum resources and teaching strategies.

Typically responds within 24 hours

Message Sent!

Thanks for reaching out. I'll get back to you within 24 hours.

🏫 Welcome, fellow educator!

I offer curriculum resources, practice materials, and study guides designed for AP CS teachers. Let me know what you're looking for — whether it's classroom materials, a guest speaker, or Teachers Pay Teachers resources.

Email

tanner@apcsexamprep.com

📚

Courses

AP CSA, CSP, & Cybersecurity

Response Time

Within 24 hours

Prefer email? Reach me directly at tanner@apcsexamprep.com