Generate random numbers with Math.random() 1

On the AP Computer Science Exam, you will be expected to be familiar with Math.random. You may be asked to use it to generate a random value within a specific range, generate a random valid index in an array or list, or make a conditional statement true with a specific probability. The AP CS Elevens ...

Aquarium free response practice question

Some of the AP Computer Science Free Response Problems require you to manipulate an array or ArrayList in a way that is more complex than just looping through the entire data structure. You may also be required to manipulate the elements inside the structure. This problem is intended as practice with commonly tested manipulations.

CandidatePool free response practice question 1

Many of the AP Computer Science Free Response Problems either explicitly test your ability to work with arrays and lists or implicitly require such ability. This problem is intended as practice with commonly tested techniques.

MyArrayList practice problem

Many multiple choice and free response questions on the AP Computer Science Exam require you to manipulate arrays and lists. The MyArrayList practice problem is intended primarily as practice with arrays, though it also exposes you to list behavior. The project requires you to insert elements into and delete elements from a partially filled array. It also requires you to traverse the ...