ArrayList Basics
Methods of an ArrayList
Traversing through an ArrayList
Searching Algorithms
Sorting Algorithms
100

This value is the size of an ArrayList when it is first created.

What is 0?

100

The ArrayList method that returns the size of an ArrayList.

What is .size()?

100

These loops can be used to traverse through an ArrayList.

What are for loops, while loops, and for-each loops?

100

This value of a desired element is usually returned by a searching algorithm.

What is an index value?

100

These two iterative sorting algorithms are discussed in Unit 7 of APCSA.

What are Selection Sort and Insertion Sort?

200

This represents the correct declaration for a String ArrayList called example.

What is ArrayList<String> example = new ArrayList<String>();?

200

The ArrayList method that removes an element from the list, taking the index of the element as a parameter.

What is .remove(int index)?

200

This code statement will yield the last element of an ArrayList (called example).

What is example.get(example.size()-1)?

200

This searching algorithm checks every component in a data set (starting at the first element) until the value is found or all components in the data set have been checked.

What is linear search?

200

This is an approximation of the duration of the algorithm given N input elements.

What is Big O (Order of N)?

300

This is a re-sizable data structures that permits adding and expelling things to change its size during runtime.

What is an ArrayList?

300

The ArrayList method for attaining an element of an ArrayList, taking the index of this element as a paramter.

What is .get(int index)?

300

This arithmetic expression (or an equivalent one) must be present in an ArrayList traversal when adding an element from an ArrayList (int i is declared at start of traversal).

What is i++?

300

This searching algorithm disposes half of the data set in every iteration until the value is found or all the elements have been checked.

What is binary search?

300

This searching algorithm finds the smallest element in a data set and moves it to the beginning of the data set by swapping with the front element.

What is Selection Sort?

400

ArrayLists use these special kinds of classes so they can hold primitive data types like ints or doubles.

What are wrapper classes?

400

The ArrayList method to change an element of an ArrayList, taking the index of this element and what it will be changed to as parameters.

What is .set(int index, E obj)?

400

This arithmetic expression (or an equivalent one) must be present in an ArrayList traversal when removing an element from an ArrayList (int i is declared at start of traversal).

What is i--?

400

A binary search begins at this position of a data set.

What is the center/middle?

400

This sorting algorithm works by shifting each element in a data set one at a time, iterating through the input elements and expanding the sorted data set each time by comparing the current element to the sorted data set's greatest value.

What is Insertion Sort?
500

An ArrayList class is in this Java package.

What is java.util?

500

The overloaded ArrayList method.

What is .add(E obj)/.add(int index, E obj)?

500

Accessing an index value outside the given range of an ArrayList will yield this error.

What is an ArrayIndexOutOfBoundsException?

500

A data set must be this in order for binary search to be applied.

What is sorted?

500

Students must be familiar with this sorting algorithm, while not from Unit 7 of APCSA, which uses recursion to sort a data set.

What is merge sort?