This method is required in all Java programs: public static void ______ (String[] args) { ... }
What is main?
"c" is an example of this data type
What is String?
This method is used to access the length of an Arraylist
What is list.size()?
012 in Base 10
What is 110?
This search involves looking at each value in order
What is sequential search?
use this visibility keyword to protect your data fields
What is private?
The boolean add(E obj) method does...
What is this adds the object to the end of a list and returns true if the object is of the correct type?
256 to Base 10
What is 1710?
this prints out something to the console
What is System.out.println (or System.out.print)?
This method splits the array values into halves recursively until each half has one element, and then combines values in the halves (in order) to sort the list.
What is merge sort?
The main method always returns
What is void?
To access the length of an array, no arguments are needed
What is the length of an array is considered to be a field or attribute?
213 to Base 4
What is 134?
The maximum number of iterations required to find an element in an ordered array of size 500 with binary search
What is 9?
b in the following code
boolean[] b = new boolean[3];
What is an boolean array of size 3?
name 2 differences between an array and array list
What are ArrayLists are resizable, can only accept objects (not primitives), and use the .size() method instead of .length field?
The shortcut for converting from Base 2 to Base 8
What is grouping by threes and converting each group into a Base 8 digit (0-7)?
Name at least 3 primitive data types
What is short/int/long/float/double/boolean?
If there are N data values in a list, for how many iterations will a binary search run?
What is log2N?
a function calls itself
What is recursion?
Declare an Arraylist of Integers that is an instance variable, assume the College Board standard for visibility applies
What is...
private ArrayList<Integer> nums = new ArrayList<Integer>(); OR
private ArrayList<Integer> nums = new ArrayList<>();?
101000102 in Base 8
What is 2428?