User Tools

Site Tools


qtr_1_study_guide

This is an old revision of the document!


The first quarter exam will be in Room 405 (tentatively) on Monday October 9, 2023 (90 min). The average of the two quarter exams is worth 20% of your grade. The exam will be similar to the chapter tests that we have had. You have an hour to answer around 40 questions which are a combination of true/false, multiple choice, and short answer questions. You will then have 30 minutes to answer 2 Free Response questions. The first question will ask you to write a method (much like a codingbat.com warmup exercise), and the second question will ask you to write a complete class from scratch. I will give you a choice of methods and classes, and you just need select one of each to write.

The first quarter exam is a cumulative exam that covers

  1. Classroom labs (including the Runestone exercises)
  2. AP Classroom
  3. Chapters 3 through 5 of the Litvin textbook.

Links to Practice Problems

Things to watch out for:

  1. Constructors should initialize the class's fields (fields are private, to encapsulate)
  2. When initialzing fields in a constructor, Do not mention its type- this accidentally makes a local variable instead of initializing the classes field that has the same name.
  3. Remember to make fields private and methods public,
  4. Remember local variables are never public nor private
  5. Remember method names should use () for the parameter list, even if there are no parameters
  6. Watch for dangling else statements (p 148) - without brackets, the last else belongs to the previous if
  7. 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 penalty on the AP Exam)
  8. Do not use local variables before first declaring them ( also a AP scoring penalty).
  9. Variables are declared ONLY ONCE, not every time.
  10. Do not assign a value to a parameter inside a method unless you are asked to (also a AP scoring penalty called Destruction of data)
  11. Never use return in a constructor
  12. Remember to return something of the same type as a method's header.
  13. Do not return something when writing a void method ( a method that isn't supposed to return something (This too has a AP scoring penalty)

Finally, please remember to get a good night's rest and a healthy breakfast! Good Luck!

qtr_1_study_guide.1695672632.txt.gz · Last modified: 2023/09/25 16:10 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki