OFFICIAL 2012 AP Computer Science A Thread

<p>Guys remember that private indicates that the members of a class are accessible only from within other members of the same class. Key word here: MEMBERS. That means different objects of the same class can access each other’s private variable and methods. Yea, I just learned this recently; I’ve been programming in C++ for 7 years. Yes, I am embarrassed by that fact…</p>

<p>What is the best method to tackle a problem like this:</p>

<p>Assume that x and y have been declared and initialized with int values. Consider the following Java expression.</p>

<p>(y > 10000) || (x > 1000 && x < 1500)</p>

<p>Which of the following is equivalent to the expression given above?</p>

<p>The answer is:</p>

<p>(y > 10000 || x > 1000) && (y > 10000 || x < 1500)</p>

<p>Also, if anybody has the AP Audit, on number 17, how come the answer is C and not B? Why is 7 set twice?</p>

<p>That’s straight forward… && returns a 1 or 0; || return 1 or 0. There is no “method” to tackling these type of questions…</p>

<p>For those I just test to see which ones would result in the same value, or I ‘factor’ out stuff like an equation</p>

<p>So for your problem you can ‘factor’ out y > 10000 from both sides so you have </p>

<p>(y > 10000) || (x > 1000 && x < 1500), the original problem.</p>

<p>I hate String recursion.</p>

<p>Consider the following method:</p>

<p>public String goAgain(String str, int index){
if(index >= str.length())
return str;</p>

<pre><code>return str + goAgain(str.substring(index), index + 1);
</code></pre>

<p>}</p>

<p>What is printed as a result of executing the following statement?
System.out.println(goAgain(“today”, 1));</p>

<p>A) today
B) todayto
C) todayoday
D) todayodayay
E) todayodaydayayy</p>

<p>The answer is D, but I have absolutely no idea how to begin tracing through this code</p>

<p>[South</a> Park Bad Time - if you dont know recursion youre gonna have a bad time](<a href=“quickmeme: the funniest page on the internet”>If you don't know recursion You're gonna have a bad time - South Park Bad Time - quickmeme)</p>

<p>Just go step by step. Write down the output of all the “steps” on the side and deal with it. Just like a for loop, go back to the top and keep track of the indices and value passed in the argument.</p>

<p>yeah… I completely crammed through Litvin’s Be prepared in the last 3 week (my course, although not a complete joke wasn’t rigorous enough)… Thought I was doing fine until I went back to the practice tests at the end of the book. </p>

<p>could be that I was tired. I also have no previous experience with programming.
I feel like I’ve studied to much to get a 1 or 2 -____-.</p>

<p>I actually like recursion, but boolean logic still gets me for some reason.</p>

<p>That book’s tests are significantly harder (and more weird) than any test CollegeBoard is going to give.</p>

<p>Do not worry; there are those who went through the whole year of the course and still get a 1 or 2. It’s not the teacher’s fault; it’s just that those kids just do not have the “knack”. [Dilbert</a> - The Knack - YouTube](<a href=“- YouTube”>- YouTube)</p>

<p>Prevalent throughout all CS classes you will go to (except higher division courses), there will always be a “double hump” in the grades. Some just get it, but others can’t do it if their lives depended on it.</p>

<p>Okay, GUYS, WE GOT THIS! LET"S GO IN TOMORROW AND TAKE THAT TEST WITHOUT ANY WORRY!</p>

<p>GOOD LUCK TO YOU ALL! We will do good, just believe in yourself.</p>

<p>Good luck to everyone, glad to finally get this over with.</p>

<p>Anyone still online? Is there any quick review sheet for Grid World?</p>

<p>Good luck guys!</p>

<p>Good luck everybody, take your time, don’t make any dumb mistakes, and just do your best.</p>

<p>Sent from my Galaxy Nexus using Tapatalk 2</p>

<p>Let’s go!!!</p>

<p>Ran out of time on the MC. FRQ was pretty easy.</p>

<p>I also ran out of time… I took 5 practice tests over the course of like 3 weeks and had a good amount of time left over for each. I literally had like 8-10 problems left when time was called… WAY TOO MUCH ITERATION… Hoping that drastically reduces the curve for a 5.</p>

<p>FRQ on the other hand easily got a 9 on all 4 of them. Praying for a 5, if I don’t I’ll be retaking it next year…</p>

<p>Nearly ran out of time on the multiple choice, I thought the FRQ was pretty easy compared to some practice tests I’ve taken.</p>

<p>Well it was interesting…</p>

<p>The general consensus of the kids in my class was that:</p>

<p>-MC was medium-difficulty
-Felt rushed during MC.
-FRQ was much easier than expected.
-Time to spare after the FRQ.</p>

<p>Lots of recursion, and you definitely needed to know your arrays.</p>