Scott Grissom
School of Computing & Info Systems
Grand Valley State University
picture

Midterm Exam #2 Study Guide

Preparation

To best prepare for the exam, review the following:

  • the textbook (Ch 4.12, Ch 5.1 - 5.5, 5.11, parts of Ch 11) including all important terms
  • your class notes and group activities
  • quizzes and homework assignments
  • your code for project #3 and project #4
  • previous midterm exam
  • review the Array1 exercises at javabat.com
  • review the String1 and String2 exercises at javabat.com
  • the posted practice problems
  • your code for the lab activities

Objectives

The exam will allow you to demonstrate your ability to:

  • describe the state and behavior of an object
  • describe the differences between classes and objects
  • trace the execution of code that includes: while loops, for loops, for each loops (ArrayLists), do while loops, nested loops, if statements, nested if-else statements, arithmetic calculations, method calls, parameter passing
  • complete a class definition that may include: instance variables, constructors, local variables, public methods, private methods, methods with and without return values
  • write methods to manipulate arrays
  • use objects of type String and Random to solve problems
  • write methods that use loops and conditional statements to solve problems
  • trace the execution of an event driven program
  • describe the differences between local variables and instance variables with respect to their scope and lifetime
  • invoke internal and external methods
  • describe the differences between public and private class members

Grading Criteria

  • notes and books are not permited
  • the exam is worth 15% or your course grade
  • partial credit may be given for reasonable attempts. Never leave a question completly blank.
  • a passing average (60) on all exams is required to pass the course