Yarmouk University Hijjawi Faculty for Engineering Technology Computer Engineering Department CPE-350: Object Oriented Modeling and Applications First Midterm Exam: B Date: 27/11/12 Student Name :------------------------------------------------------------------------------------- Student Number:------------------------------------------------------------------------------------- INSTRUCTIONS (please read carefully) 1. 2. 3. 4. 5. TURN OFF YOUR CELL PHONE NOW Time allowed 60 minutes Provide your answers on this page. Answers elsewhere will not be looked at. Return all pages. Provide only one answer to each question. Giving more than one answer for the same question will result in zero credit for that question. 6. Mark the right answer with (×). A 1|4 B C D E A 1 2 3 11 12 13 4 5 14 15 6 7 16 17 8 9 18 19 10 20 B C D E 1. How can you fix the diagram below? a. By adding notes b. This diagram is correct and does not need any further modification c. By numbering messages d. By adding arrows e. By numbering messages and adding arrows 2. What kind is the following diagram? 3. What are the two kinds of interaction diagrams? a. Sequence diagrams and Statechart diagrams b. Collaboration diagrams and Sequence diagrams c. Statechart diagrams and Collaboration diagrams d. Activity diagrams and Statechart diagrams e. Activity diagrams and Sequence diagrams 4. What does this UML notation represent? a. Asynchronous communication b. Boundary object c. Control object d. Entity object e. None of the given choices 5. What does this UML notation represent? a. b. c. d. e. 2|4 Statechart diagram Collaboration diagram Activity diagram Path diagram Sequence diagram a. A named object of unspecified class b. A named object of a specified class c. An unnamed object of unspecified class d. An unnamed object of a specified class e. None of the given choices 6. In developing use case models, textual analysis is applied for: a. Creating an initial use case diagram b. Describing briefly the use cases c. Refining the use case model d. Developing the problem statement e. Identifying actors and use cases 7. In developing use case models, textual analysis is applied for: a. Developing instance scenarios b. Developing base use case descriptions c. Prioritizing use cases d. Identifying/refining candidate business (domain) classes e. Iteratively elaborating on the base use case descriptions and determining the extend, include and generalization relationships 8. ___________ is an instance of ______________. a. Use case, scenario b. Actor, use case c. Use case, actor d. Actor, super use case e. Scenario, use case 9. Only _________ use cases may be invoked directly by an actor, while __________ use cases can only be instantiated by base use cases. a. base, include b. base, abstract c. base, extend d. abstract, extend e. abstract, include 3|4 10. The ___________ is an important field in the use case template, which is a step-by-step description of the interactions between the actor(s) and the system, and the functions that must be performed in the specified sequence to achieve a user goal. a. non-behavioral requirement b. flow of events c. brief description d. source e. priority Use the figure below for answering questions (11-13): 11. What kind of diagram is this? a. Activity diagram b. Statechart diagram c. Collaboration diagram d. Sequence diagram e. None of the given choices 12. Identify the message with duration: a. Press lock button b. lock c. beep d. Process key message e. None of the given choices 13. Identify the message that is performed repeatedly: a. lock b. Press lock button c. Process key message d. blink lights e. None of the given choices Consider the following problem statement for answering questions (14-17): Students use the library system to reserve a book, borrow a book, return a book, or extend loaning of a book. When borrowing a book, the student has to locate the book. Sometimes, a student cannot extend loaning of a book because limits are exceeded. The librarian updates catalog and sets borrowing limits for different user categories. 14. Which of the following uses cases is possibly an extension use case? a. Set borrowing limits b. Borrow a book c. Exceed limits d. Update catalog e. extend loaning of a book 15. Which of the following uses cases is possibly an inclusion use case? a. Reserve a book b. Extend loaning of a book c. Locate a book d. Exceed limits e. Borrow a book 16. How many actors would you identify in this problem statement? a. 5 b. 4 c. 3 d. 2 e. 1 17. Assume that borrow a book has been identified as a base use case. What priority rank would you give to this use case? Assume that rank 1 represents the highest priority and rank 5 represents the lowest priority. a. 5 b. 4 c. 3 4|4 d. 2 e. 1 Use the figure below for answering questions (18-20): 18. Identify the generalization use case in this diagram: a. Eat Food b. Serve Food c. Prepare Food d. Pay for Food e. None of the given choices 19. What does the construct indicated by the letter C in the diagram represents? a. Association b. System boundary c. Instance scenario d. Include e. None of the given choices 20. How many packages does this use case diagram have? a. 0 b. 1 c. 2 d. 3 e. 4
© Copyright 2026 Paperzz