Which of the following is true about a hash function?
a. It has collisions where multiple keys map to the same space
b. It requires unique elements
c. A hash function requires a linked list for each value hashed
d. A hash function is recursive
a. It has collisions where multiple keys map to the same space
You might also like to view...
What will be displayed after the following statements are executed?
``` int ans = 10; int x = 65; int y = 55; if (x >= y) { int ans = x + y; } System.out.println(ans); ``` a. 10 b. 120 c. 100 d. The code contains an error and will not compile.
Given the Java statement int sum = number1 + number2; which of the following statements is false?
a. It’s an assignment statement. b. It calculates the sum of variables number1 and number2 c. The operands of the addition operator are number1 and number2 d. It assigns the value of number1 to sum.
When might a DNS server provide multiple answers to a single name lookup, and why?
What will be an ideal response?
Exceptions that are subject to the catch or declare rule are called:
(a) Checked exceptions (b) Unchecked exceptions (c) Fatal exceptions (d) All of the above