Welcome to CS1316
Please visit t-square for the updated class website.
Hotspots
Class Schedule
Homework
Pre-Quiz4-Summer 2007
SUMMER_2007_CS1316_UML_PRACTICE_QUESTIONS.pdf
1. UML Diagram 1
Answer the Questions below about the UML diagram here: (Assume that all instance variables have public access +)
A. Instances of which classes have a field (instance variable) named
address
?
B. Do
HourlyEmployee
instance have
Office
s?
C. By what name do instances of the class
Office
know their
Building
instances?
D. REMOVEDst all the fields (instance variables) of a
SalariedEmployee
.
E. REMOVEDst all the classes whose instances can use the method
fire()
.
F. REMOVEDst all of the instance variables in
Person
G. REMOVEDst all of the instance variables in
HourlyEmployee
H. REMOVEDst all of the instance variables in
Office
instances
I. Instances of what classes can use the method
hire()
?
J. How many
Office
s of a
Building
can exist?
K. How many
Building
s are associated with a given
Office
?
2. UML Diagram 2
Answer the questions below about the UML diagram here(Assume that all instance variables have public access +):
A. Which classes understand the method
eat()
?
B. Which classes have a
phoneNumber
?
C. Which classes understand the method
chewToy()
?
D. How many
Dog
s can each
DogOwner
have (min and max)?
E. Which classes have a
name
?
Questions? Answers? Post them on
Questions on Pre-Quiz4-Summer 2007
Links to this Page
Pre-Quizzes-Summer 2007
last edited on 5 July 2007 at 10:01 am by adsl-218-61-137.asm.bellsouth.net
Exam and Quiz Preparation Materials-Summer 2007
last edited on 29 July 2007 at 8:59 pm by adsl-152-219-48.asm.bellsouth.net
Soapbox Archive-Summer 2007
last edited on 13 August 2007 at 10:33 pm by 24-241-99-170.static.stls.mo.charter.com