Which of the following statements correctly declares and creates an array to hold five double scores values?

A. integer[] scores = new double[5]
B. double[] scores = new integer[5]
C. double[] = new scores[5]
D. double[] scores = new double[5]

Answer: D

Computer Science & Information Technology

You might also like to view...

The Web Page option allows the user to extract data from text or tables on a Web page and imports that data into Access

Indicate whether the statement is true or false

Computer Science & Information Technology

A citation is a note recognizing a source of information or a quoted passage that you used in your paper

Indicate whether the statement is true or false

Computer Science & Information Technology