User Tools

Site Tools


qtr_1_study_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
qtr_1_study_guide [2022/10/01 10:07] frchrisqtr_1_study_guide [2022/10/01 10:08] frchris
Line 23: Line 23:
   - Remember method names should use () for the parameter list, even if there are no parameters   - Remember method names should use () for the parameter list, even if there are no parameters
   - Watch for dangling else statements (p 148) - without brackets, the last ''else'' belongs to the previous ''if''   - Watch for dangling else statements (p 148) - without brackets, the last ''else'' belongs to the previous ''if''
-  - **Do not** add a ''System.out.print'' when no printing is requested (This can be a 1 or 2 point **Extraneous code that causes side effect** [[https://mathorama.com/wiki/doku.php?ns=%3A&image=%3Aapcs_penalty_points.png&do=media|penalty on the AP Exam]]) +  - **Do not** add a ''System.out.print'' when no printing is requested (This can be a 1 or 2 point **Extraneous code that causes side effect** [[https://mathorama.com/wiki/lib/exe/detail.php?id=qtr_1_study_guide&media=apcs_penalty_points.png|penalty on the AP Exam]]) 
-  - **Do not** use local variables before first declaring them ( also a [[https://mathorama.com/wiki/doku.php?ns=%3A&image=%3Aapcs_penalty_points.png&do=media|AP scoring penalty]]).  +  - **Do not** use local variables before first declaring them ( also a [[https://mathorama.com/wiki/lib/exe/detail.php?id=qtr_1_study_guide&media=apcs_penalty_points.png|AP scoring penalty]]).  
   - Variables are declared ONLY ONCE, not every time.   - Variables are declared ONLY ONCE, not every time.
-  - **Do not** assign a value to a parameter inside a method unless you are asked to (also a [[https://mathorama.com/wiki/doku.php?ns=%3A&image=%3Aapcs_penalty_points.png&do=media|AP scoring penalty]] called **Destruction of data**)+  - **Do not** assign a value to a parameter inside a method unless you are asked to (also a [[https://mathorama.com/wiki/lib/exe/detail.php?id=qtr_1_study_guide&media=apcs_penalty_points.png|AP scoring penalty]] called **Destruction of data**)
   - **Never** use ''return'' in a constructor   - **Never** use ''return'' in a constructor
   - Remember to ''return'' something of the same type as a method's header.    - Remember to ''return'' something of the same type as a method's header. 
qtr_1_study_guide.txt · Last modified: 2023/10/09 09:23 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki