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...

WordArt styles can be applied to the text in a shape

Indicate whether the statement is true or false

Computer Science & Information Technology

What are the differences? Why might it be necessary to reconsider “time out” periods when serving users who are blind?

This exercise is similar to exercise 20. This test also explores low vision, but instead of using a browser with a large font, user a browser with the normal font size and a screen magnifier. Install a screen magnifier or use the one that comes with the operating system. Recruit four users who did not participate in the testing you performed in exercise 19. Carry out the test as outlined in exercise 20 and answer parts a – d from exercise 20. 2 This exercise is similar to exercise 20, but this test simulates total blindness. Install a screen reader. Verify that the screen reader will recognize and read the text on the test site’s pages. During the test, you will turn off the computer monitor. To prevent users from seeing their hands, construct a cardboard box that’s 24 inches long, 4 inches high and 8 inches deep. During the test, you will place the box over the keyboard and mouse. Leave one of the long sides open so that users can reach inside to the keyboard and mouse. Recruit four people to test. These cannot be the same people who participated in the baseline study. When testing these users, do obtain an informed consent and ask them to fill out the same pre-test questionnaire that you developed for exercise 19. a. Write an orientation script that explains that you will be testing a screen reader and that to simulate blindness, the screen will be turned off and the keyboard covered. b. Write up the results. Give a summary of responses on the pre-test questionnaire. For each task, create a table showing the measures for the four users. c. Create a summary table that compares the average measures for each of the tasks. d. Compare the measures from this group to the measures you collected in exercise 19

Computer Science & Information Technology