<p>On FRQs, if you don’t know how to do a part of something, can you just put random stuff and assume it’s right so you can continue? And since it always requires that you return something, can you just put “return (w/e)” for the 1/2 - 1 point, even if you have no/little other code?</p>
<p>Anyone have list of what the possible FRQ topics are, in general? So many of them require you to initialize a variable, loop through an array and update variable, and return new variable. Is it ever safe to just write out some code like I just described and hope for some points even if you hardly know what the question’s about? Graders might just give points for initializing a variable, looping, returning, etc.</p>
<p>If you absolutely don’t know how to do a problem, I would put stuff that seems right and then have it return something of the correct type (Ideally what ought to be returned, but if you’re not sure it probably is better to have something than not to finish your code).</p>
<p>I wouldn’t just write random stuff, but if you’re not sure exactly how to get it do one thing in particular, you should definitely finish off the method (and hopefully leave room if it comes back to you).</p>
<p>Oh how bout: can you just put something like “//supposed to choose a random int from 1-4” if you don’t know how to do that in code? Or would it be better to just put something that might be correct and hope that grader knows what you mean? Assuming you just want to continue and finish the class/method/w.e.</p>
<p>Anyone got FRQ predictions? Do you ever have to catch exceptions of FRQs?</p>
<p>Yeah the nest. Also, this has been bugging me for a while, in a while loop, if there is an if statement in the while loop with a return statement in the if loop, will the while loop terminate? For example:</p>
<p>public static boolean isSelfDivisor(int number)
{
int n = number;
while (n > 0)
{
int d = n % 10;
if (d == 0 || number % d != 0)
return false;
n /= 10;
}
return true;
} 1</p>
<p>When false is returned, will the while loop (and also the method) be terminated, because it can only return one thing? (p.s. this is the 2007 frq #1.</p>
<p>I intend to use scrap paper to work out the parts of the code that aren’t completely obvious, so as to avoid error. That is assuming they give us scrap paper.</p>