<p>The first thing the segment does is print a 4. (1234%10=4)
Then, it recursively calls itself. We need not worry about what is printed as a result to the recursion for now.
Then it prints another 4.</p>
<p>Based on that alone, we know the answer will be 4 followed by something else and it will end with a 4. With that alone we can choose D as the correct answer. We do not even need to take time to evaluate the result of the recursive call.</p>
<p>@tbradsworth - Do you the get the quick reference for the MC as well as the free response or just the free response?</p>
<p>our class was given a copy of the reference sheet during any test because our teacher told us that we’d have that during the exam so I assume it is for both portions</p>
<p>@Elyvine Thanks for heads up!</p>
<p>One last thing: Can someone explain the difference between an Abstract Class and an Interface (especially in regards to variables, methods, and constructors)?</p>
<p>Matthew5, an abstract class can have everything a class has, it just cannot be turned into an object. This means it can have full method bodies, rather than just method declarations like an interface. Both can have instance variables, both can have constructors. The key difference is in the fact that abstract classes can and often do fully declare their methods. Also, when it comes to class hierarchy and inheritance, a class can implement many interfaces, but it can only extend one class, making interfaces often more versatile.</p>
<p>Hi,</p>
<p>Why does #15 implementation 1 not work? </p>
<p>Here is the question : [Q15</a> | Flickr - Photo Sharing!](<a href=“http://www.■■■■■■■■■■/photos/95548641@N06/8715081453/]Q15”>Q15 | Reese Pathak | Flickr)</p>
<p>-Thanks!</p>
<p>@cagg333 Alright thanks, I appreciate it. This exam is going to be rough compared to the Psychology exam I took today lol.</p>
<p>is barron’s harder than the real thing?</p>
<p>@nsquared2 I may be reading that wrong, but appears to me I is the only one that would work, because III would return true prematurely, and II would always cause an ArrayOutOfBoundsException</p>
<p>@cagg33 same here, I thought I actually worked, because II would cause an out of bounds and III is flawed</p>
<p>@nsquared2:
Are you sure I doesn’t work? It seems the answer is (A) to me.</p>
<p>@binga, yes, very hard compared to the actual test. Barron’s is more conceptual whereas the AP exam is more applied based although Barron’s has applied based aswell but they’re too hard. I found the MC in the princeton book to be very similar to the ones in the AP exam, so i’m ditching barrons for princeton ^.^.</p>
<p>@binatang Yes Barron’s is definitely harder.</p>
<p>On Barron’s, I have been getting like 23/40 multiple choice right and like 5-6’s/9 on the FRQs. I think that is equivalent to around a 4 on the real thing?</p>
<p>Sorry! I meant why was III wrong … but I see now…it would return true prematurely…</p>
<p>Thanks all!</p>
<p>@nsquared2 Don’t put me into a panic like that LOL! I just got done studying for this exam, I don’t want to second guess myself</p>
<p>Just wanted to put this out there, but for the FRQ, the graders are not looking to type your code and compile it on a computer. As long as the code fits the algorithm/pseudocode stated in the question, you will do fine unless you completely forget how to get the size of an arrayList or something. So basically, you won’t get penalized if your code can’t compile irl, it just has to look like plausible code to a human grader.</p>
<p>@elyvine To add to your point, to get a fair amount of points, it doesn’t even have to do what the question asks. If there’s an array, access all of its elements without going out of bounds. Return the correct type. Utilize already written methods. All of these score points from nowhere.</p>
<p>On the FRQ, can you use the statement “this” with a dot operator after it only if “this” represents an instance of the class or does it have to be the class itself?</p>
<p>Why is the Answer to #25 on the 2008 Exam … A?</p>