YOUR SUBJECT CS304 Object Oriented ProgrammingChange subject ↗
PRACTICE AT YOUR OWN PACE

CS304 practice questions

Think through the options before revealing the answer. Use the term filter to focus your revision.

1 questions
CS304 · Midterm#1

Suppose you have been given the following design, "A person has a name, age, address and sex. You are designing a class to represent a type of person called a patient. This kind of person may be given a diagnosis, have a spouse and may be alive". Given that the person class has already been created, what of the following would be appropriate to include when you design the patient class?

  1. A
    ? registration date and diagnosis
  2. B
    ? age and sex
  3. C
    ? sex and diagnosis
  4. D
    ? diagnosis and age
Show correct answer

Correct answer: A. ? registration date and diagnosis

Check community answers against your course notes.Question permalink ↗