2024 Sample Prompts  

Set 1      Set 2

1. Program Design, Function, and Purpose 

2024 S1: Programs accept input to achieve their intended functionality. Describe at least one valid input to your program and what your program does with that input.


2024 S2: Identify the expected group of users of your program. Explain how your program addresses at least one concern or interest of the users you identified.

2a. Algorithm Development

2024 S1: Refer to your Personalized Project Reference when answering this question.

(a) Consider the first iteration statement included in the Procedure section of your Personalized Project Reference. Describe what is being accomplished by the code in the body of the iteration statement.


2024 S2: Refer to your Personalized Project Reference when answering this question.

(a) Consider the first conditional statement included in the Procedure section of your Personalized Project Reference. Describe your conditional statement, including its Boolean expression. Describe what the procedure does in general when the Boolean expression of this conditional statement evaluates to false.

2b. Errors and Testing 

2024 S1: Refer to your Personalized Project Reference when answering this question.

(b) Consider the procedure identified in part (i) of the Procedure section of your Personalized Project Reference. Write two calls to your procedure that each cause a different code segment in the procedure to execute. Describe the expected behavior of each call. If it is not possible for two calls to your procedure to cause different code segments to execute, explain why this is the case for your procedure.


2024 S2: Refer to your Personalized Project Reference when answering this question.

(b) Consider the procedure and procedure call identified in parts (i) and (ii) of the Procedure section of your Personalized Project Reference. Describe the outcome that your procedure call is intended to produce. Write a new procedure call with at least one different argument value that will produce the same outcome, if possible, and explain why this procedure call produces the same outcome. If it is not possible to write a new procedure call that produces the same outcome, explain why this is not possible.

2c. Data and Procedural Abstraction 

2024 S1: Refer to your Personalized Project Reference when answering this question.

(c) Suppose another programmer provides you with a procedure called checkValidity(value) that returns true if a value passed as an argument is considered valid by the other programmer and returns false otherwise. Using the list identified in the List section of your Personalized Project Reference, explain in detailed steps an algorithm that uses checkValidity to check whether all elements in your list are considered valid by the other programmer. Your explanation must be detailed enough for someone else to write the program code for the algorithm that uses checkValidity.


2024 S2: Refer to your Personalized Project Reference when answering this question.

(c) Consider the procedure identified in part (i) of the Procedure section of your Personalized Project Reference. Identify the parameter(s) used in this procedure. Explain how your identified parameter(s) use abstraction to manage complexity in your program.