What function would you use to generate a random number to simulate the roll of a six-sided die? 

A. nextBooleanInRange(1, 6)
B. nextIntegerFromAToBExclusive(1, 6)
C. nextIntegerInRange(1, 6)
D. nextIntegerFromAToBInclusive(1, 6)

Answer: D

Computer Science & Information Technology

You might also like to view...

[C++11]: To prevent class objects from being copied or assigned, you can:

a. Declare as private the class’s copy constructor and overloaded assignment operator. b. Declare the class’s copy constructor and overloaded assignment operator with with = delete after the parameter list. c. Simply do not declare a copy constructor or assignment operator in the class. d. (a) or (b).

Computer Science & Information Technology

Identify two of the major advocacy resources on the Web that track privacy issues.

What will be an ideal response?

Computer Science & Information Technology