Solved

Consider the Helper Method ReversePrint, Which Uses Recursion to Display

Question 99

Multiple Choice

Consider the helper method reversePrint, which uses recursion to display in reverse the elements in a section of an array limited by the firstIndex and lastIndex arguments.What statement should be used to complete the recursive method? Consider the helper method reversePrint, which uses recursion to display in reverse the elements in a section of an array limited by the firstIndex and lastIndex arguments.What statement should be used to complete the recursive method?    A) reversePrint(array, firstIndex, lastIndex - 1) ; B) reversePrint(array, firstIndex + 1, lastIndex) ; C) reversePrint(array, firstIndex + 1, lastIndex - 1) ; D) reversePrint(array, firstIndex, lastIndex + 1) ;


A) reversePrint(array, firstIndex, lastIndex - 1) ;
B) reversePrint(array, firstIndex + 1, lastIndex) ;
C) reversePrint(array, firstIndex + 1, lastIndex - 1) ;
D) reversePrint(array, firstIndex, lastIndex + 1) ;

Correct Answer:

verifed

Verified

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

Related Questions