For previous Comp Sci takers Question

<p>So in the AP Computer Science Topic Outline it says to study </p>

<p>VI. Computing in Context
An awareness of the ethical and social implications of computing systems is necessary
for the study of computer science. These topics need not be addressed in detail but
should be considered throughout the course.
A. System reliability
B. Privacy
C. Legal issues and intellectual property
D. Social and ethical ramifications of computer use</p>

<p>However, does this concept actually come up on exams? If so, which key terms do I need to know about it? thanks</p>

<p>There was not a single question related to those topics at all last year (2010), nor in the 2009 released test.</p>

<p>thanks for the confirmation :)</p>

<p>also, in the course description it says that “debugging facilities… will not be tested” what are these? aren’t these the classcastexception things because I’ve seen it on one test…</p>

<p>(lol I might be the only student who reads through this thing…:P)</p>

<p>I’m not quite sure what it means by that. But you should recognize when a few exceptions are thrown. The 5 you are expected to recognize are:</p>

<p>NullPointerException - calling an undeclared object
e.g. ArrayList<string> myList;
myList.add(“word”);</string></p>

<p>ArrayIndexOutOfBoundsException - calling anything not from 0 to length-1 (watch for this in loops)
e.g. int[]arr = new int[10];
arr[10] = 3;</p>

<p>ArithmeticException - trying to do something illegal with arithmetic, just know division by 0 would cause this. (Note : 5.0 / 0.0 would NOT cause this, that would just return NaN, you probably don’t need to know that though)</p>

<p>ClassCastException - Someone posted this in another thread, if the conversion makes no sense it is probably the answer. (I seriously doubt there will be a question on this)</p>

<p>IllegalArgumentException - I can’t think of any method you are responsible for knowing that throws this. Just know it is put in methods when the input can not be appropriate.
Like: making a fibonacci recursive method
The heading would probably be: public int fibonacci(int n)</p>

<p>But you could put numbers < 1 in that.
So you may want something like:</p>

<p>if(n < 1) throws new IllegalArguementException(“Out of the domain of the sequence.”) </p>

<p>at the start.</p>

<p>Don’t stress over these. NullPointer and ArrayIndexOutOfBounds are particularly important though. (You only need to know when they would be printed out)</p>

<p>YOU are GOD thanks</p>