The third Free Response Question (FRQ) of the AP Computer Science A exam will be on arrays or ArrayLists.
There are standard ArrayList algorithms that utilize traversals to:
Insert elements
Delete elements
Determine the minimum or maximum value
Compute a sum, average, or mode of elements
Search for a particular element in the array
Determine if at least one element has a particular property
Determine if all elements have a particular property
Access all consecutive pairs of elements
Determine the presence or absence of duplicate elements
Determine the number of elements meeting a specific criteria
Shift or rotate elements left or right
Reverse the order of the elements
Here are two common ArrayList traversal loops that can be used for these algorithms:
The following is a free response question (FRQ) from 2010.
The getTotalBoxes method computes and returns the sum of the number of boxes of all cookie orders. If there are no cookie orders in the master order, the method returns 0.
Here is my solution to this part of the FRQ:
Here is my solution to this part of the FRQ:
For the FRQ evidence, there is no Google Form.
I printed out the question above as well as TWO additional practice FRQ questions for you to complete.
I have the solution to these practice FRQ questions, so when you think you have the answer, come meet with me and I will show them to you.
RECOMMENDATION: For each question, set a timer for 22 minutes and 30 seconds (to simulate the amount of time that you will actually have) and see how you do! I will show you the answer after with the scoring rubric so you can see how many points you would have received!
PLEASE, don't just search around on Google and copy down the answer.
This grade is for completion, not accuracy, so you would only be hurting yourself.
TREAT THESE PRACTICE FRQ QUESTIONS LIKE GOLD.
Put them somewhere safe until and review them again before the exam.