Multiple Choice
Consider the recursive method shown below: public static int strangeCalc(int bottom, int top)
{
If (bottom > top)
{
Return -1;
}
Else if (bottom == top)
{
Return 1;
}
Else
{
Return bottom * strangeCalc(bottom + 1, top) ;
}
}
What value will be returned with a call to strangeCalc(4,7) ?
A) 1
B) -1
C) 120
D) 840
Correct Answer:

Verified
Correct Answer:
Verified
Q100: Consider the fib method from the textbook
Q101: Recursion will take place if any of
Q102: Consider the fib method from the textbook
Q103: Consider the recursive square method shown below.
Q104: Consider the helper method reversePrint, which uses
Q105: Consider the mutually recursive methods below. Select
Q106: Consider the recursive method myPrint in this
Q107: Given the following class code: public class
Q109: Consider the iterative version of the fib
Q110: If a recursive method does not simplify