Exam #2 Topics List
This is a study-guide for the second midterm exam. In addition to reviewing the topics below, I recommend that you go back and make sure you understand the code covered in class, in the labs, and on the homework assignments. The textbook is also useful for studying: make sure you've done the reading and use the book problems for practice. Our second exam will cover the material in Sections 6.3-6.5, 4.1-4.10 (though reading 4.13-4.15 wouldn't hurt), 7.1-7.4 (Section 7.5 is good practice). And, while the focus will be on this most recent material, you should still make sure you're comfortable with the key topics from earlier in the semester (e.g. methods, constructors, fields, return values, declaring and initializing variables, conditional statements, etc).
Terms and Topics
Be prepared to define and/or write code examples using the following:
- Object references
- Importing, declaring, and creating
Random
instances
- Using
Random
methods to create values in particular ranges
- Working with the
String
class
- Importing, declaring, and creating
ArrayList
s
- Adding and removing items from an
ArrayList
- Casting values from one type to another
- Local variables vs. Instance variables (fields)
- Declaring, creating, and using 1D arrays
- Understanding code that uses 2D arrays
- for-each loops for processing collections
- count-controlled for loops
- event-controlled while loops