Exercise index of this lecture   Alphabetic index   Course home   

Exercises
Introduction to Object-oriented Programming


1.1   How did you program the Hangman game?  

This is an exercise for students who have a practical experience with the development of the Hangman program, or a similar game.

Recall how you carried out the development of the program.

To which degree did you adhere to top-down development by stepwise refinement?

If you did not use this development approach, then please try to characterize how you actually did it.

 


1.2   Aggregated Concepts  

Take a look at the concepts which are represented by the phenomena in the room where you are located. Identify at least four aggregated concepts. Enumerate the concepts of the decomposition.

 


1.3   Concepts and Phenomena  

The purpose of this exercise is to train your abilities to distinguish between concepts and phenomena.

Decide in each of the following cases if the mentioned item is a concept or a phenomena:

  1. The door used to enter this room.
  2. Todays issue of your favorite newspaper.
  3. Your copy of today's issue of your favorite newspaper.
  4. The collection of all copies of today's newpapers
  5. Denmark.
  6. European country.
  7. The integer 7.
  8. The set of integers between 1 and 10.
  9. The set of all students who attend this course.
  10. The oldest student who attend this course.

For an item considered as a phenomenon, identify the underlying concept.

 

Solution


1.4   University Concepts  

In a university study, the study activities are usually structured in a number of semesters. There are two kinds of study activitities: projects and courses. At Aalborg University, there are currently two kinds of courses: Study courses (dk: studieenhedskurser) and project courses (dk: projektenhedskurser).

Characterize the concepts of university study, study activity, semester, project, course, study course, and project course relative to Aggregation/Decomposition and Generalization/Specialization.

 

Solution


Generated: Monday February 7, 2011, 12:11:54