Suppose int i = 5, which of the following can be used as an index for array double[] t = new double[100]?

a. i
b. (int)(Math.random() * 100))
c. i + 10
d. i + 6.5
e. Math.random() * 100


a. i
b. (int)(Math.random() * 100))
c. i + 10

Computer Science & Information Technology

You might also like to view...

A ___________ is a constrained version of a linked list in which nodes can be inserted only at the end of the list and deleted only from the start of the list.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Identify the letter of the choice that best matches the phrase or definition.

A. The process of organizing, storing, and saving old documents. B. Any person or company in your Address Book. C. Mail that uses a computer network to send and receive messages. D. Electronic junk mail. E. Specific criteria to search on.

Computer Science & Information Technology

A digital camera is always viewed as an imaging device by Explorer

Indicate whether the statement is true or false

Computer Science & Information Technology

To position a div, the div must have a(n) ____________________ assigned to it.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology