(1) Which of the following would be a valid state for a CourseSection class in a
ID: 3836422 • Letter: #
Question
(1) Which of the following would be a valid state for a CourseSection class in a university course registration system?
(a) Add the section to the student's schedule
(b) Open for registration
(c) Check if seats are available
(d) Entity
(2) States are represented by:
(a) messages that go between objects in a sequence diagram.
(b) the values of one or more attributes in the object for which you are creating the state diagram. (c) associations between classes in the class diagram.
(d) activities that depict steps in the main flow of a use case.
(3) State diagrams represent
(a) the various activities needed to complete a particular use case.
(b) the various messages that objects send to each other to complete the main flow of a particular use case.
(c) the various states that an object may be in and transition between those states.
(d) the various classes that we have in our system and how these classes are connected to one another.
(4) "Use figure 11.11 from your textbook for this question. There is a transition from the state of 'Open for enrolllment' going to the same state. The transition is described as 'student enrolled[seat available]addStudent()'. In this, [seat available] refers to:"
(a) An activity
(b) A trigger
(c) A state
(d) A guard condition
(5) You would need to create a state diagram for a class if:
(a) if the class is an abstract class or not.
(b) if the class is associated with any other class or not.
(c) the class exhibits different behavior depending on its state.
(d) if the class is a superclass or not.
Explanation / Answer
(1) Which of the following would be a valid state for a CourseSection class in a university course registration system?
(a) Add the section to the student's schedule
(b) Open for registration
(c) Check if seats are available
(d) Entity
Ans: Entity - this state can represent a particulat course
(2) States are represented by:
(a) messages that go between objects in a sequence diagram.
(b) the values of one or more attributes in the object for which you are creating the state diagram. (c) associations between classes in the class diagram.
(d) activities that depict steps in the main flow of a use case.
Ans: (b) the values of one or more attributes in the object for which you are creating the state diagram.
(3) State diagrams represent
(a) the various activities needed to complete a particular use case.
(b) the various messages that objects send to each other to complete the main flow of a particular use case.
(c) the various states that an object may be in and transition between those states.
(d) the various classes that we have in our system and how these classes are connected to one another.
Ans: (c) the various states that an object may be in and transition between those states.
(4) "Use figure 11.11 from your textbook for this question. There is a transition from the state of 'Open for enrolllment' going to the same state. The transition is described as 'student enrolled[seat available]addStudent()'. In this, [seat available] refers to:"
(a) An activity
(b) A trigger
(c) A state
(d) A guard condition
I do NOT have figure 11.11
(5) You would need to create a state diagram for a class if:
(a) if the class is an abstract class or not.
(b) if the class is associated with any other class or not.
(c) the class exhibits different behavior depending on its state.
(d) if the class is a superclass or not.
Ans: (c) the class exhibits different behavior depending on its state.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.