Two D or not two D
These are a few of my favorite Strings
Out of sorts
Methods in the Madness
Class act
100
Each row in a two dimensional array of ints is considered this.
What is a one dimensional array of ints or int[]?
100
The number of Strings created with: String [] str = new String[200]; int i = 0; (for i = 0; i < 200; i++); str[ i ] = "String";
What is "one"?
100
This sort algorithm uses recursion.
What is merge sort? or What is quick sort?
100
The method that creates an instance of the class.
What is the Constructor?
100
The class that all objects/classes are derived/inherited from.
What is the Object class?
200
To access each element in a two dimensional array you need to do this.
What is "use nested loops"?
200
A term referring explicitly to the joining of two strings with the + operator.
What is "concatenation"?
200
A sorting algorithm that has n squared big-O.
What is "bubble sort" or "merge sort" or "insertion sort"?
200
The accessor method should be coded with what visibility modifier word?
What is "public"?
200
Write the code to create a new object called "fourth", of a class named myClass.
What is myClass fourth = new myClass();
300
Write code to create a two dimensional array called ray of ints with r rows and c columns.
What is "int [] [] ray = new int [r] [c]"?
300
The two arguments to the relevant overload of the substring function represent these.
What are "start index and end index"?
300
A sorting algorithm in which each value is placed in its final sorted position.
What is Selection Sort?
300
The process of creating a second method with a different number of parameters is called this.
What is "overloading"?
300
The ability to derive a new class from an existing one.
What is "inheritance"?
400
This happens when you try to access an element in the array that is past the last index of the array.
What is "ArrayIndexOutofBounds Exception"?
400
"teach".substring(2) + "foooo".substring(2,4)
What is an "achoo"?
400
A sorting algorithm in which each value is inserted in a sorted subset of the entire list.
What is Insertion Sort?
400
This method has the same name as the class name.
What is the "constructor"?
400
Does the code below declare a primitive, reference, or instance variable?................................. Point p1 = new Point (-2, 1);
What is a reference variable?
500
String str[] = new String[10]; //code not shown that fills the array. Write all the code needed to swap the first and last elements
String temp = str[0]; str[0] = str[9]; str[9] = temp;
500
"adbcefg".substring(1, 3 * "abcd".indexOf("acbcd".substring(2)) + 1)
What is "dbc"?
500
An array search algorithm that requires the array to be sorted first.
What is "binary search"?
500
The derived class can do this to the parent method when it is a teenage rebel.
What is overriding? or What is polymorphism?
500
The class that cannot be instantiated and cannot be used unless another class derived from it is created?
What is an "abstract class"?