AP® Computer Science Principles Free-Response Questions Past Paper 2025 Solution
Use the released AP CSP prompts to practise explaining an algorithm, a test case and the role of data in your own program.
Quick Answer
The AP CSP written response prompts are unique because they ask you to analyze and reflect on the program you created for the Create Performance Task.

Connect the test input to a specific branch
Imagine a procedure that counts scores at or above a chosen threshold. With scores of four, six and seven and a threshold of six, the expected count is two. A student explains that the test checks whether the program works. Improve the response by naming the boundary. The value six must be counted because equality satisfies the condition. Replacing “at or above” with “above” would change the result to one. Use the names and behavior of your own program when responding to a prompt about a personal project.
Exam documents
Interpret and Apply Negations, Conjunctions, and Disjunctions
Finding the Truth Value of a Negation
- :
- : All horses are mustangs.
- : New Delhi is not the capital of India.
- is true because 3 + 5 does equal 8; therefore, the negation of , , is false.
- is false because there are other types of horses besides mustangs, such as Clydesdales or Arabians; therefore, the negation of , , is true.
- is false because New Delhi is the capital of India; therefore, the negation of , , is true.
Finding the Truth Value of a Conjunction
- is true, and is false. Because one statement is true, and the other statement is false, this makes the complete conjunction false.
- is false, so is true, and is true. Therefore, both statements are true, making the complete conjunction true.
- is false, and is false. Because both statements are false, the complete conjunction is false.
Finding the Truth Value of a Disjunction
- is true, and is false. One statement is true, and one statement is false, which makes the complete disjunction true.
- is false, so is true, and is true. Therefore, one statement is true, and the other statement is true, which makes the complete disjunction true.
- is false, and is false. When all of the component statements are false, the disjunction is false.
Finding the Truth Value of Compound Statements
- Step 1: The statement “” contains three basic logical statements, , , and , and three connectives, When we place parentheses in the statement to indicate the dominance of connectives, the statement becomes Step 2: After we have applied the dominance of connectives, we create a two row table that includes a column for each basic statement that makes up the compound statement, and an additional column for the contents of each parentheses. Because we have three sets of parentheses, we include a column for the innermost parentheses, a column for the next set of parentheses, and in the last column for the third parentheses. Step 3: Once the table is created, we determine the truth value of each statement starting from left to right. The truth values of , , and are true, false, and true, respectively, so we place T, F, and T in the second row of the table. Because is true, is false. Step 4: Next, evaluate from the table: is false, and is also false, so is false, because a conjunction is only true if both of the statements that make it are true. Place an F in the table below its heading. Step 5: Finally, using the table, we understand that is false and is true, so the complete statement is false or true, which is true (because a disjunction is true whenever at least one of the statements that make it is true). Place a T in the last column of the table. The complete statement is true.
T F T F F T - Step 1: Applying the dominance of connectives to the original compound statement , we get
Step 2: The table needs columns for and
Step 3:The truth values of , , , and are the same as in Question 1.
Step 4: Next, is false or false, which is false, so we place an F below this statement in the table. This is the only time that a disjunction is false.
Step 5: Finally, and are the conjunction of the statements, and , and so the expressions evaluate to false and true, which is false. Recall that the only time an "and" statement is true is when both statements that form it are also true. The complete statement is false.
T F T F F F - Step 1: Applying the dominance of connectives to the original statement, we have: .
Step 2: So, the table needs the following columns: and
Step 3: The truth values of , , and are the same as in Questions 1 and 2.
Step 4: From the table it can be seen that is true and true, which is true. So the negation of and is false, because the negation of a statement always has the opposite truth value of the original statement.
Step 5: Finally, is the disjunction of with , and so we have false or false, which makes the complete statement false.
T F T T F F
