In general, a class’s data fields should be declared as _______.
The keyword ________ is used in the class declaration of a s…
The keyword ________ is used in the class declaration of a subclass to indicate its superclass.
With a hash method like: public int hash1(int key) { ret…
With a hash method like: public int hash1(int key) { return key % 13;} Which is invoked in the statement: slot = hash1(789); What is the value of the slot variable after hash1 is invoked with the argument 789?
If a problem of size n requires time that is directly propor…
If a problem of size n requires time that is directly proportional to n, the problem is ________.
Using the formula for converting Strings to large numbers sh…
Using the formula for converting Strings to large numbers shown in Professor Ferguson’s video, what large number does the String “abc” convert to?
A Hash Table __________ the location of the data to store o…
A Hash Table __________ the location of the data to store or retrieve.
Write the code segment that is used to insert a new Node, re…
Write the code segment that is used to insert a new Node, referenced by the reference variable newNode, at the beginning of a linear linked list which is not empty. (5 points)
The base case for a recursive definition of the factorial of…
The base case for a recursive definition of the factorial of n is ______.
The item that is removed first from a stack is called the __…
The item that is removed first from a stack is called the ____ of the stack.
What are the three high-level steps to delete a Node from a…
What are the three high-level steps to delete a Node from a linear linked list? (3 points) [Hint: Do not answer this question by writing Java code}