What to review for quiz #2 on Friday November 16, 2018
- Quiz #2 covers what we discussed in class except javafx, focusing on the material (and corresponding lab exercises) since the first quiz. This includes conditional statements (if statement, if-else, nested-if also known as cascaded-if).
- Format: Short answer questions, plus one long programming problem. Try to complete at least through lab exercise 24 to prepare for the long programming problem, and at least through lab exercise 25 to prepare for the short answer questions.
- The material in this course is cumulative, i.e. each new topic builds on previous topics. The quiz 2 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 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 2. These sections cover boolean expressions, and the if statement.