2024 AP Computer Science Principles Written Response Prompts Set 1
Administrative Overview and Examination Instructions The 2024 AP Computer Science Principles Section II Written Response Prompts, specifically Set 1, are administered by the College Board. The examination duration is exactly 1 hour and consists of 2 questions. Candidates are instructed to write their responses exclusively in the separate Written Response booklet, as no credit is provided for work written in the orange planning booklet. The materials and trademarks, including AP, Advanced Placement, and AP Central, are registered to the College Board. # Question 1: Program Input and Functionality Programs are designed to accept input to achieve specific functionality. Students are required to describe at least one valid input to their program and provide a detailed explanation of what the program does with that input. This response must be recorded on the designated pages of the Written Response booklet, ensuring that if multiple parts are present, each part letter is clearly indicated. # Question 2: In-Depth Analysis of the Personalized Project Reference This question requires students to utilize their Personalized Project Reference to answer three specific parts aimed at demonstrating their understanding of iteration, procedural calls, and algorithmic logic. # Description of Iteration Statement Body In part (a), the student must identify the first iteration statement located in the Procedure section of their Personalized Project Reference. The task is to describe in detail what is being accomplished by the code contained within the body of that specific iteration statement. # Analysis of Procedural Calls and Execution Paths In part (b), students fulfill requirements regarding the procedure identified in part (i) of the Procedure section of their Personalized Project Reference. The student must write two distinct calls to this procedure. Each call is specifically required to cause a different code segment within the procedure to execute. Furthermore, the student must describe the expected behavior of each call. If the procedure is structured such that it is impossible for two calls to cause different code segments to execute, the student must provide a full explanation as to why this is the case for their specific program. # Algorithmic Construction Using External Procedures In part (c), a hypothetical scenario is presented where another programmer provides a procedure called checkValidity(value). This procedure returns true if the argument passed to it is valid according to the other programmer's criteria and returns false otherwise. Students must use the list identified in the List section of their Personalized Project Reference to explain, in detailed steps, an algorithm that employs checkValidity(value) to verify if all elements within their list are considered valid. The explanation provided must be sufficiently detailed to allow another programmer to write the actual program code for the algorithm. All responses for these sections must be written on the designated pages in the Written Response booklet with appropriate part labeling.