ap15_compsci a_q2.pdf - AP® COMPUTER SCIENCE A 2015 GENERAL...

This preview shows page 1 - 2 out of 9 pages.

AP®COMPUTER SCIENCE A2015 GENERAL SCORING GUIDELINES© 2015 The College Board.Visit the College Board on the Web: .Apply the question assessment rubric first, which always takes precedence. Penalty points can only bededucted in a part of the question that has earned credit via the question rubric. No part of a question(a, b, c) may have a negative point total. A given penalty can be assessed only once for a question, evenif it occurs multiple times, or in multiple parts of that question. A maximum of 3 penalty points may beassessed per question.1-Point Penalty(v) Array/collection access confusion ([] get)(w) Extraneous code that causes side effect (e.g., writing to output, failure to compile)(x) Local variables used but none declared(y) Destruction of persistent data (e.g., changing value referenced by parameter)(z) Void method or constructor that returns a valueNo PenaltyoExtraneous code with no side effect (e.g., precondition check, no-op)oSpelling/case discrepancies where there is no ambiguity*oLocal variable not declared provided other variables are declared in some partoprivateorpublicqualifier on a local variableoMissingpublicqualifier on class or constructor headeroKeyword used as an identifieroCommon mathematical symbols used for operators (×÷<><> ≠)o[]vs.()vs.<>o=instead of==and vice versaolength/sizeconfusion for array,String,List,orArrayList,with or without( )oExtraneous[]when referencing entire arrayo[i,j]instead of[i][j]oExtraneous size in array declaration (e.g.,int[size] nums = new int[size];)oMissing;where structure clearly conveys intentoMissing{ }where indentation clearly conveys intentoMissing( )on parameter-less method or constructor invocationsoMissing( )aroundiforwhileconditions*Spelling and case discrepancies for identifiers fall under the “No Penalty” category only if the correction canbeunambiguouslyinferred from context; for example,ArayListinstead ofArrayList.As acounterexample, note that if the code declaresBug bug;,then usesBug.move()insteadofbug.move(),the context doesnotallow for the reader to assume the object instead of the class.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 9 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
NoProfessor
Tags

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture