CS 2511 Midterm 2 Coverage and Topics
- Text: Chapters 5, 6 and 9
- Chapter 5: Patterns and GUI Programming
- Iterator pattern
- Observer pattern and model-view-controller architecture
- Voice mail system GUI
- Strategy pattern and layout managers
- Composite pattern
- Decorator pattern
- Invoice application
- Chapter 6: Inheritance and Abstract Classes
- Implementing inheritance hierarchies
- Invoking superclass constructors and methods
- Using inheritance to do graphics
- Abstract classes and the SceneEditor example
- Abstract classes and the Template Method pattern
- Inheritance hierarchies in the Java class library
- Chapter 9: Multithreading
- Creating and starting threads
- Synchronizing threads
- Animating with threads
- Lab Exercises:
- Listeners
- Layout managers
- Graphics
- Other:
- Problem Solving Framework (Assignment 3)
- Object-Oriented Client-Server Framework (OCSF)
Here are examples of questions that might be asked:
- Identify design patterns used in given problem solutions.
- Relate design patterns to UML diagrams.
- Define a class that implements a given interface definition.
- Write code that exploits polymorphism by using interface or abstract
class types.
- Write a listener for a GUI component by using an anonymous class.
- Write a listener for a GUI component by extending a Swing library
class.
- Lay out a GUI panel with child components.
- Trace code that has multiple catches for a try block (uses
exception hierarchy).
- Give the advantages of the client-server software architecture.
- Describe the steps of client-server interaction in the OCSF.
- Describe the classes and interfaces necessary to write multithreaded
programs.
- Describe how to avoid race conditions and deadlocks in multithreaded
programs.
Page URL: http://www.d.umn.edu
/~tcolburn/cs2511/exams/midterm2.html
Page Author: Tim Colburn
Last Modified: Thursday, 29-Mar-2007 08:52:06 CDT
Comments to: tcolburn@d.umn.edu