Answers to 1999 SEG 2100 midterm. Note: Since this midterm was more difficult than expected, future midterms should be somewhat easier. Also the material covered may be slightly different. Part A: Multiple choice Q Ans Avg Comment 1 c 1.9 2 d 2.5 3 b 3.4 4 f 0.4 5 b 0.8 Part marks for d 6 a 1.5 7 b 3.1 8 d 3.0 9 f 2.7 Part marks for b and c 10 a 1.8 Part B: Fill in blanks 11 final 2.8 12 public 3.2 13 TCP/IP 3.8 14 Listen for new connections 2.6 15 static / class 1.9 Part C: UML (note the question numbers were duplicated) Common mistakes in this section: Plural class names, missing multiplicity, violation of 'isa' rule, mutting multiplicity on a generalization, not answering a question at all. 12x: All you had to do was to create an inheritance hierarchy whose top class was something like 'SpecificJob', with attributes like 'cost'. Subclasses would be the job types. E.g. 'PaintJob' with attributes 'paint type', 'colour', 'area'. Average: 13.3 / 15 13x: Show a class window with 1-many association to 'WindowJob' Average 3.7 / 5 14x: Show a class Person, with name, phone etc. Attach to this a class Person Role (1-many). Subclasses of person role: Customer and Worker. Both subclasses have associations to Specific job.. Average 8.6 / 15 15x: Create a class JobType. 1-Many association with SpecificJob. Example attributes: laborRate. Average 2.4 / 5 A final UML diagram for part C is available as SEG 2100MidtermOct1999Ans.gif This is a mimalistic answer that would have given you full marks.