Solved

Suppose You Wish to Write a Method That Returns the Sum

Question 31

Multiple Choice

Suppose you wish to write a method that returns the sum of the elements in partially filled array.Which is the best choice for a method header?


A) public int sum(int[] values)
B) public int sum()
C) public int sum(int[] values, int currSize)
D) public int sum(int[] values, int size, int currSize)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents