Page 773 - AP Computer Science A, 7th edition
P. 773

22. (C) As n gets broken down into its digits, nRemaining is the part of n that remains after each digit is stripped off. Thus, nRemaining is a self-documenting name that helps describe what is happening. Choice A is false because every digit can be stripped off using some sequence of integer division and mod. Choice B is false because num is passed by value and therefore will not be altered when the method is exited. Eliminate choice D: When the method is exited, all local variables are destroyed. Choice E is nonsense.


































































































   771   772   773   774   775