What is the range of values computed by the hash function Hash( X ) =
X mod 100?
a. 0 to 99
b. 0 to 100
c. 1 to 99
d. 1 to 100
e. none of the above
A
You might also like to view...
To allow for the binding used for a bound multipage report, you should set the left margin to:
A. 2 inches B. 1.15 inches C. 1 inch D. 1.5 inches
Which of the following statements is false?
a. The following code uses a list comprehension to create a list of 600 random die values, then uses NumPy’s unique function to determine the unique roll values (guaranteed to include all six possible face values) and their frequencies: rolls = [random.randrange(1, 7) for i in range(600)] values, frequencies = np.unique(rolls, return_counts=True) b. The NumPy library provides the high-performance ndarray collection, which is typically much faster than lists. c. If you pass a list (like rolls) into np.unique, NumPy converts it to an ndarray for better performance. d. Specifying the keyword argument return_counts=True tells unique to count each unique value’s number of occurrences.