AP CSP Practice Test Program Design

AP CSP Test 1.1: Program Design & Development

Collaboration, iterative development, testing, and documentation

25 Questions ~30 Minutes Instant Scoring
Question 1 Collaboration
A team of four programmers is developing a mobile app. Which of the following is LEAST likely to be a benefit of using a collaborative development process?
Question 2 Iterative Development
A developer creates a minimum viable product, collects user feedback, modifies the design, and then repeats this process. Which development approach does this describe?
Question 3 Testing
A programmer writes a procedure that accepts a test score (0 to 100) and returns a letter grade. Which set of test inputs would BEST verify the procedure works correctly?
Question 4 Program Documentation
Consider the following statements about program documentation:

I. Documentation is useful only for other programmers, not the original developer.
II. Comments in code can help explain the purpose of a section to future readers.
III. Documentation should describe what the program does, not how it does it internally.

Which of the above statements is/are true?
Question 5 Debugging
A student runs a program and receives the correct output for most inputs, but the program produces an incorrect result when the input list is empty. This is an example of a:
Question 6 Development Process
Which of the following is a NOT a benefit of developing a program incrementally rather than writing the entire program before testing?
Question 7 Collaboration
Two students are working on a program together. Student A writes a procedure that accepts a list and returns the average. Student B writes code that calls this procedure. To work effectively, what information does Student B MOST need to know?
Question 8 Testing
A programmer tests a procedure that determines whether a year is a leap year. The procedure returns true for 2000 and true for 2024, which are both correct. Can the programmer conclude the procedure is correct?
Question 9 Program Purpose
A developer creates an app that uses location data to recommend nearby restaurants. Which of the following BEST describes the difference between the program’s purpose and its function?
Question 10 Identifying Errors
A student writes a program and the following message appears: ERROR: unexpected token on line 14. What type of error is this?
Question 11 Iterative Development
A software team releases version 1.0 of an app. Users report that the search feature is too slow. The team optimizes the search algorithm and releases version 1.1. This process BEST illustrates which concept?
Question 12 Collaboration
Which of the following is MOST likely to happen when a programming team does NOT establish clear specifications for shared procedures?
Question 13 Debugging
A student adds print/display statements throughout their code to show variable values at different points during execution. This technique is called:
Question 14 Development Process
Consider the following steps in a development process:

I. Investigate and reflect on the problem
II. Design the program
III. Write the code (prototype)
IV. Test and evaluate

In an iterative development process, what happens after step IV?
Question 15 Program Purpose
A student creates a program that generates a random password of a specified length. The program contains a comment that reads: // Generates a secure random password using uppercase, lowercase, digits, and symbols. This comment describes the program’s:
Question 16 Identifying Errors
A program is supposed to calculate the average of a list of numbers. The programmer writes code that adds all the numbers but divides by 10 instead of the actual list length. The program runs without errors and produces a number. What type of error is this?
Question 17 Testing
A program accepts a string and outputs whether it is a valid email address. Which of the following sets of test cases is MOST comprehensive?
Question 18 Collaboration
A programming team uses version control software (like Git). Which of the following is a primary benefit of using version control?
Question 19 Debugging
A program should display the numbers 1 through 5. Instead, it displays 1 through 4. The programmer suspects an off-by-one error. Which debugging strategy would BEST help locate the problem?
Question 20 Abstraction
A programmer writes a procedure called calculateShipping(weight, distance) that returns a shipping cost. Other parts of the program call this procedure without knowing how the cost is computed internally. This is an example of:
Question 21 Development Process
Which of the following BEST describes why a programmer would create a prototype before building the full program?
Question 22 Identifying Errors
A program compiles and runs but enters an infinite loop, causing it to freeze. What type of error is this?
Question 23 Program Requirements
A school asks a programmer to build a scheduling app. Before writing any code, the programmer interviews teachers and students about their needs. This step is part of which phase of development?
Question 24 Testing
Which of the following is true about testing a program?
Question 25 Collaboration
Consider the following statements about pair programming:

I. One person writes code (the driver) while the other reviews in real time (the navigator).
II. Pair programming typically catches more errors than solo programming.
III. Pair programming doubles the speed of code production compared to one programmer working alone.

Which of the above statements are true?
--

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