Question 53 / 90:  What is the proper way to construct a method named displayImage that accepts two variables as arguments?

The first variable is an array of ints called points, and the second is an Image object called image. This method does not return any variables.

A  displayImage(int[], Image) {…}
B  displayImage(int[] points, Image image) {…}
C  void displayImage(int[], Image) {…}
D  void displayImage(int[] points, Image image) {…}
<< First < Previous Flashcard Next > Last >>
Explanation:

D. This method signature uses the void keyword to signify that there isn’t any data to return, and it contains the proper variable names.

A, B, and C are incorrect.

A is incorrect because it is missing both the void keyword and the variable names.

B is incorrect because it is missing the void keyword, and

C is incorrect because it is missing the variable names.

Exam Home Page
https://www.jobilize.com/quiz-my-oca-mock-exam-by-mike-wolf

My OCA Mock

Author:

Access: Public Instant Grading

Ask
Dionne Mahaffey
Start Quiz
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/quiz-my-oca-mock-exam-by-mike-wolf" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>