OFFICIAL 2012 AP Computer Science A Thread

<p>Does anyone have the 2009 released test and want to share it with me? Pretty please? :)</p>

<p>Wow, I just took Practice Exam #2 from Barron’s, and got 22/40 MC correct ):
Has anyone else been scoring in this range?</p>

<p>It may be a little late to be asking this, but is it ok to use pencil on the free-response section?</p>

<p>Pencil is allowed for the FRQ for Computer Science A.</p>

<p>Hmmm… I usually miss 6 or 7 on the MC, and like maybe 10-15 points on the FR. This puts me right at the border between 4/5. If I focus and don’t make silly mistakes, hopefully I can get a 5! I just despise the time limits >.<</p>

<p>I also have the official practice test that I got from a former comp sci teacher, and if I calculate the score on that, I would get 60/80 points. Pretty good, huh?</p>

<p>I was wondering the same thing… I actually went out to the store today and bought a fresh new pack of pens in case. Writing the FR in code would be bad, because I tend to mess up sometimes, and going back and rewriting the whole code instead of just erasing seems like a pain…</p>

<p>How many questions are on inheritance and interfaces and abstract classes and stuff like that?</p>

<p>I have to admit, I am only prepared for this test because of my experience with UIL this year (for those of you in Texas who are familiar with it).</p>

<p>Is there anything on the free response that you have to do other than actually writing code? ie. if it says to write a class for a gridworld problem, you have to write only the class and nothing else, correct? I’m asking because the free response instructions always say “SHOW ALL YOUR WORK.”, but there isn’t any “work” per se, just the answer.</p>

<p>good luck everyone!!!</p>

<p>public class Student{
<em>/code/</em>
}</p>

<p>public class GradStudent extends Student{
<em>/code/</em>
}</p>

<p>meanwhile…</p>

<ol>
<li><p>Student a = new GradStudent</p></li>
<li><p>GradStudent a = new GradStudent</p></li>
</ol>

<p>What is the difference between 1 and 2 in terms of inheritance of methods and such?</p>

<p>If you have:
Student a = new GradStudent();
Then “a” cannot I repeat cannot call any methods that are only in GradStudent without downcasting. You would call a method with ((GradStudent)a).method(); If a method is in Student and overriden in GradStudent there is no need for downcasting and it will call the method in GradStudent only.</p>

<p>If you have
GradStudent a = new GradStudent();
Then “a” can call any method in either GradStudent or Student and the decision of which method to be called is made at run time with dynamic binding. Read barrons 129-130 if you still don’t get it!</p>

<p>I know since most people just skip around with GridWorld, make sure you know you have to call the different methods using different objects. Such as the methods given on the Grid page of the reference material, make sure you know you have to call it on grid, so for example </p>

<p>int loc = getGrid().getAdjacentLocation(getLocation());</p>

<p>^ that won’t work without the getGrid() part. And also make sure you guys know all the post conditions for the Critter methods and don’t violate them… Hopefully the test isn’t that hard tomorrow.</p>

<p>The thing I hate about the CS Exam is that it isn’t really about computer science. It is more of a programming test, more specifically a java test. It should be more about the concepts rather than the syntax.</p>

<p>Wait, can the statement:</p>

<p>super.super(method name)</p>

<p>be used for accessing a method of the super class’s super class? Is this allowed in say, partial overriding?</p>

<p>^I don’t think that is available in java.</p>

<p>I just tried it and it looks like it doesn’t work.</p>

<p>

No, the first super will have all of the methods.
Only use this if you have two methods with the same name: one in the current class and one in the super classes. You shouldn’t even get any kind of question like that unless the CB decides to be unconventional.</p>

<p>Yeah you can’t do super.super(), I remember that from a practice test (I think it was Barron’s)</p>

<p>We get the Grid World source code for both the MC and FRQ right?</p>