Submit your responses to prompts 3a – 3d, which are described below. Your response to all prompts combined must not exceed 750 words (program code is not included in the word count). Collaboration is not allowed on the written responses.
Instructions for submitting your written responses are available on the AP Computer Science Principles Exam Page on AP Central. See (Detailed Create Task information below for more information)
contains 6 rows, each worth 1 point
sometimes several rows apply to one written response to pick out specific aspects
Approx. 150 words (for all subparts of 3a combined)
i. Describes the overall purpose of the program
ii. Describes what functionality of the program is demonstrated in the video
iii. Describes the input and output of the program demonstrated in the video
Approx. 200 words (for all subparts of 3b combined, exclusive of program code)
i. The first program code segment must show how data have been stored in the list.
ii. The second program code segment must show the data in the same list being used, such as creating new data from the existing data or accessing multiple elements in the list, as part of fulfilling the program’s purpose.
Then, provide a written response that does all three of the following:
iii. Identifies the name of the list being used in this response
iv. Describes what the data contained in the list represent in your program
v. Explains how the selected list manages complexity in your program code by explaining why your program code could not be written, or how it would be written differently, if you did not use the list
Approx. 200 words (for all subparts of 3c combined, exclusive of program code)
i. The first program code segment must be a student-developed procedure that:
Defines the procedure’s name and return type (if necessary)
Contains and uses one or more parameters that have an effect on the functionality of the procedure
Implements an algorithm that includes sequencing, selection, and iteration
ii. The second program code segment must show where your student-developed procedure is being called in your program.
Then, provide a written response that does both of the following:
iii. Describes in general what the identified procedure does and how it contributes to the overall functionality of the program
iv. Explains in detailed steps how the algorithm implemented in the identified procedure works. Your explanation must be detailed enough for someone else to recreate it
This procedure will output menu options. It can be called anywhere in the program using its identifier (name), including the brackets.
A function must be called as part of an expression, so that the return value is assigned to a variable. In this example, the function is called from main and the return value is assigned to a variable named result, which is then displayed to the user.
Approx. 200 words (for all subparts of 3d combined)
i. Describes two calls to the procedure identified in written response
3c. Each call must pass a different argument(s) that causes a different segment of code in the algorithm to execute.
First call:
Second call:
ii. Describes what condition(s) is being tested by each call to the procedure
Condition(s) tested by the first call:
Condition(s) tested by the second call:
iii. Identifies the result of each call
Result of the first call:
Result of the second call: