*** OFFICIAL 2013 AP Computer Science A Thread***

<p>Cramming for the exam like everyone here haha</p>

<p>This is may have been addressed briefly earlier in the thread, but my question is that: </p>

<p>On AP Free Response Questions are you graded for efficiency?
If your code works to produce the desired result, will the graders mark you down if it is not the simplest answer?</p>

<p>karishma, can you plz pm me the 2009 test plz</p>

<p>the original ChameleonCritter code is:
public void makeMove(Location loc)
51 {
52 setDirection(getLocation().getDirectionToward(loc));
53 super.makeMove(loc);
54 }
55 }</p>

<p>The setDirection (…) changes the direction. Take this line away, and you eliminate the change in direction. (Explains choice I). </p>

<p>The makeMove () moves the ChameleonCritter and changes its direction. However, if you store the original direction, call the makeMove () method, thus changing the direction, but set the changed direction back to the ORIGINAL, stored direction, the direction doesn’t change.</p>

<p>@kitkat:
It’s definitely not I. (should be obvious)
II: yes – say you have a private int member variable. If you ever wanted to be able to run some checks on a value that you want to set to that variable, you would use a function/encapsulation.
III. (read above)</p>

<p>@ smeagleeagle: so sorry i thought it was 2009 test but it was an 2008 test.
@ kitkat8127: thanks.</p>

<p>***!!! I keep scoring well on the in-class stuff we do, but then I go home and take the practice MCs in my review book (Pearson) and my best score as been a 24, and I’ve gotten as low as a 16. Just what I needed before test day, an extra boost of confidence</p>

<p>@karishma6 can you send the test to me?</p>

<p>same as above</p>

<p>does anybody here have the 2009 test on pdf??
I really need to practice…</p>

<p>@smeagleagle I also need practice so send it to me too</p>

<p>@Falwethiel: heres the link POSTED BY compSciKid (page 11 on this tread)
<a href=“http://www.pkwy.k12.mo.us/homepage/jheath/File/Computer_Science/AP_Sample_Exam/CS-A_Test.pdf[/url]”>http://www.pkwy.k12.mo.us/homepage/jheath/File/Computer_Science/AP_Sample_Exam/CS-A_Test.pdf&lt;/a&gt;&lt;/p&gt;

<p>@daneBrick: I couldnt understand why II didnt work and then i realized that you cant call super.super.</p>

<p>So no one has the 2009 exam pdf :(; my teacher ordered it, but it ever came. If anyone has it, please send it my way.
@karishma6
I made that same super.super mistake.</p>

<p>I third that 2009 exam request.
Questions:
Will we have to use the Integer.MAX_VALUE and min at all?
Will we have to use the hashCode() in the Location class?</p>

<p>thank you very much, and good luck tomorrow!</p>

<p>lol we all need the 2009 test!!</p>

<p>can someone please explain to me HOW the answer is 43211234?</p>

<p>Consider the following method.
/** Precondition: x ≥ 0
*/
public void mystery(int x)
{
System.out.print(x % 10);
if ((x / 10) !5 0)
{
mystery(x / 10);
}
System.out.print(x % 10);
}
Which of the following is printed as a result of the call mystery(1234) ?
(a) 1441
(b) 3443
(c) 12344321
(d) 43211234
(e) Many digits are printed due to infinite recursion.</p>

<p>@smeagle, if you go through the method only once, you’ll see that a 4 will already be printed due to the first system.out.p and since you can determine that the recursion is definite, the answer would be the one that starts with a 4.</p>

<p>I know that, and that is how I chose my answer… but I want to know exactly HOW the answer would be 43211234 anyways? Thx for your help!</p>

<p>Just a question about APs in general: What happens if you do poorly on the test?</p>

<p>Can someone explain equals vs == for objects please?</p>