18.4 Reimplementing Class FactorialCalculator
18.4 Q1: Which of the following is false?
a. Since BigInteger is not a primitive type, we can’t use the arithmetic, relational and
equality operators with BigIntegers.
b. BigInteger method compareTo compares the BigInteger number that calls the
method to the method’s BigInteger argument, and returns -1 if the BigInteger that
calls the method is less than the argument, 0 if they’re equal or 1 if the BigInteger that
calls the method is greater than the argument.
c. The value 1 can be implicitly converted to a BigInteger.
d. BigInteger can represent integer values larger than what primitive type long can
represent.
18.5 Example Using Recursion: Fibonacci Series
18.5 Q1: The number of calls to recursively calculate the Fibonacci value of 7 is:
a. 7
b. 13
c. 41
d. 39
18.5 Q2: The operands of an operator are evaluated ________.
a. from right to left.
b. from left to right.
c. at the same time.
d. in an order that is specific to each operator.
18.6 Recursion and the Method Call Stack
18.6 Q1: The current method executing is always the method whose activation record is
________.
a. at the bottom of the stack.
b. at the top of the stack.
c. never placed on the stack.