2. Refer to your Personalized Project Reference when answering this question.
Consider the first iteration statement appearing in the Procedure section of your Personalized Project Reference. Identify the specific number of times the body of this iteration statement executes. Describe a condition or input scenario that would prevent the loop from terminating, resulting in an infinite loop. If the current code cannot produce an infinite loop, explain how the loop structure could be modified to cause one.
Consider the code segment in part (ii) of the List section of your Personalized Project Reference. Suppose another programmer modifies this code segment. Describe a specific change the programmer could make to the code that would result in a logic error. Explain the reason why this specific change would cause the program to produce unintended results.
Consider the procedure identified in part (i) of the Procedure section of your Personalized Project Reference. Identify the parameter(s) defined within this procedure. Explain how utilizing these parameter(s) allows your program to manage complexity effectively.
Your Program Code
For the AP CSP Create Performance Task, you need to submit your program code along with your written responses. Generate sample code to practice with, or paste your own code here.
00:00