AP Computer Science
Setup
Test Taking Tips
Practice FRQ
Setup Help
Outline
PC or Mac or School Chromebook
Scoring
1-Point Penalty
- Array/collection access confusion ([] get)
- Extraneous code that causes side-effect (e.g., printing to output, incorrect precondition check)
- Local variables used but none declared
- Destruction of persistent data (e.g., changing value referenced by parameter)
- Void method or constructor that returns a value
No Penalty
o Extraneous code with no side-effect (e.g., valid precondition check, no-op)
o Spelling/case discrepancies where there is no ambiguity*
o Local variable not declared provided other variables are declared in some part
o private or public qualifier on a local variable
o Missing public qualifier on class or constructor header
o Keyword used as an identifier
o Common mathematical symbols used for operators (× • ÷ < > <> ≠)
No penalty
[] vs. () vs. <>
o = instead of == and vice versa
o length / size confusion for array, String, List, or ArrayList; with or without ()
o Extraneous [] when referencing entire array
o [i,j] instead of [i][j]
o Extraneous size in array declaration, e.g., int[size] nums = new int[size];
o Missing ; where structure clearly conveys intent
No Penalty
o Missing { } where indentation clearly conveys intent
o Missing ( ) on parameter-less method or constructor invocations
o Missing ( ) around if or while conditions
No Penalty Notes
*Spelling and case discrepancies for identifiers fall under the “No Penalty” category only if the correction can be
unambiguously inferred from context, for example, “ArayList” instead of “ArrayList”. As a counterexample, note that if the code declares “int G=99, g=0;”, then uses “while (G < 10)” instead of
“while (g < 10)”, the context does not allow for the reader to assume the use of the lower-case variable.
Exam Tips
More Tips: Multiple-Choice Questions
Free-Response Questions Make sure you have answered the problem.
Never let the beginning of a problem prevent you from getting points at the end.
Aim for clarity in your programming. �
More Tips
Tips anyone
Don’t forget the Return
How the results translate to scores.
Other notes about scores
Good Luck