Suppose you have the following declaration.

double[] salesData = new double[500];Which of the following range is valid for the index of the array salesData.(i)  0 through 500(ii) 0 through 499

A. Only (i)
B. Only (ii)
C. Both are invalid
D. None of these


Answer: B

Computer Science & Information Technology

You might also like to view...

A server is a computer that provides shared resources, such as files or printers, to network users

Indicate whether the statement is true or false

Computer Science & Information Technology

Since a GPU does not have to do general-purpose computing, only image processing, its instruction set can be optimized to perform the specific operations needed by CGI. _________________________

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Cloud storage

What will be an ideal response?

Computer Science & Information Technology

Port scanning provides the state for all but which of the following ports?

a. Closed b. Open c. Filtered d. Buffered

Computer Science & Information Technology