What to review for the midterm (11/30)
- The midterm covers what we discussed in class but no javafx, no switch statement, no conditional operator (?) but you are responsible for knowing conditional statements (if statement, if-else, nested-if also known as cascaded-if), no enumerated types, no loops.
- Format: Short answer questions, plus one long programming problem. Question types are: questions like those on quiz 1 and 2, review questions that we discuss in class, codelab/lab/hw (especially those that we discuss in class). Let me know if you do not understand solutions to quiz 2 problems (posted on examples link).
- The material in this course is cumulative, i.e. each new topic builds on previous topics. The midterm topics correspond to the following sections of the text (and slides posted on the slides link):
- Chapter 1: Introduction
- Chapter 2: Data and Expressions
- Chapter 3: Using Classes and Objects
- Sections 1 through 5. Given the documentation that the Java Standard Library provides for using a predefined method of a predefined class (e.g. String, Math), write code that uses that method, as you did for Quiz 2 and in lab (e.g. labs 11, 13, 14, 16) when you used predefined classes such as Math, String and Random.
- Chapter 4: Writing Classes
- Sections 1 through 5. Given a description of a Blueprint class aka data class (with attributes (aka instance-data aka state-variables aka properties), constructor, and at least one method that computes something) and Driver code to test it, implement/define these (e.g. lab exercises 21 to 24, and examples we discussed, e.g. RollingDice is a Driver class which uses Die, a Blueprint class).
- Chapter 5: Conditionals
- Sections 1 through 3. These sections cover boolean expressions, the if statement, and comparing data.