UML Review Questions
from bparanj

51. What is WRONG with the following analysis use case? Use case : Purchase Ticket Actors : Customer Preconditions: The customer is logged onto the systeem. The customer profile already exists. Postconditions: The ticket is sold and the seats are assigned to the customer and the system is updated. Primary Flow : 1. The use case begins when the customer selects the option to view flight information. 2. The system prompts for the departure and destination cities and the departure and return dates. 3. The user enters the departure and destination city, departure date, and return date. 4. The system displays a list of available flights, including the fare. 5. The user selects the flight they would like to reserve. 6. The system displays all available fare options for that flight. 7. The user selects the fare option they would like to reserve. 8. The system displays the fare that the user will pay. 9. The user confirms the rate. 10. The system prompts for a credit card type, number, name and expiration date. 11. The user enters the card type, number,name, and expiration date. 12. The system sends the request to the credit processor which interfaces to the external credit system to confirm customer's credit. 13. The system reserves a seat on the plane for the user. 14. The system generates and displays a confirmation code to the user. 15. The user confirms receipt of the code. 16. The use case ends.

  1. There is nothing wrong with the use case
  2. There are design details intermixed with the requirements.
  3. "Purchase Ticket" is too broad to be a use case.
  4. The actor's action and system responses are not separated.
Answer This question has 1 correct answer.



52. Which of the following statements are true about Use Case Diagrams?

  1. Use case diagrams fulfill a specific purpose : to document the actors (everything outside the system scope), the use cases (everything inside the system scope), and their relationships.
  2. Generalizations as well as other types of associations can be modelled between actors.
  3. Includes, Extends and other types of associations can be drawn directly between two use cases.
  4. Every use case must be initiated by an actor. The exception here is an includes or extends relationship.
Answer This question has 2 correct answers.



53. Objects R Us Inc is in the process of automating their business with Objects R Us e-business system. Identify the Business Use Cases of this system.

  1. Purchase Items, Purchase Inventory, Stock Inventory
  2. Determine Items to Sell, Fulfill Order
  3. Browse Iterms for sale, Ship Order
  4. Purchase Inventory, Stock Inventory, Provide Feedback
  5. Return Item to Stock, Add New Item for Sale, View Details of Items
Answer This question has 2 correct answers.



54. Refer to the diagram to answer the question. Given that some items will not be kept in the inventory and if requested by the customer, it will be obtained from suppliers at that time. If there is a new requirement to re-stock the system automatically as catalog items are sold, how is the new requirement BEST handled?

  1. Add reStock() method to the Order class to automatically re-stock the inventory.
  2. Design O1
  3. Design O2
Answer This question has 1 correct answer.

View Attachment - Order Processing



55. Refer the diagrams Account Figure A and Account Figure B to answer the question. In order to accomplish what is shown in Account Figure B, which design is the BEST solution?

  1. Design : Account A1 Figure
  2. Design : Account A2 Figure
  3. There is nothing wrong with the design. No change is necessary.
  4. This problem cannot be solved.
Answer This question has 1 correct answer.

View Attachment - Account Figure A
View Attachment - Account Figure B
View Attachment - Account A1 Figure
View Attachment - Account A2 Figure



56. Which of the following is the BEST list of classes for the following application? The Next Generation Vending Machine Foods R Us is considering the development of a futuristic vending machine. The machine will have capabilities not found in current vending machines. The goals of this project are : a) Reduce the amount of labor necessary to stock a machine. b) Improve the quality of the delivered product c) Reduce the amount of time the machine has to wait for re-stock d) Reduce the down-time of the machine. e) Reduce the possibility of someone tampering with a product. The NexGen Vending Machine (NGVM) will be very similar in appearance to the existing low-tech vending machines. There will be rotatable trays divided into compartments. There will be a door associated with each tray. The user pushes a button to rotate her selection to the position behind the door. After the correct amount of money has been deposited, the machine will allow the door to be opened and the food removed. The way in which the NGVM operates will be very different from that of the current machines. Stockers will carry a portable bar code reader. This reader will plug into a receptacle in the NGVM. Each compartment will have its own bar code label, as will each food package. The compartment bar code will provide a unique identification for the compartment. The package bar code will contain the item description code, price and the expiration date, if any. The service technician will scan each item and the compartment label as the machine is stocked. The use of the bar code has several advantages. * Expired food will not be sold * The stocker will not have to ensure that all of the items on a particular tray have the same price * We will be able to give a real time inventory to the main office over a network connection The machine will be connected to the main office computer over a phone line. The machine will automatically inform the computer of any of the following conditions: * Food has passed the expiration date * Food supplies in the machine are low * The amount of money in the machine passes a pre-set limit or * Self-test fails The machine will also be able to respond to inquiries from the host computer.

  1. food, tray, compartments, money, NexGenVending Machine, button
  2. Service Technician, NexGenVending Machine, button, money
  3. Stockers, NexGenVending Machine, button, tray
  4. Stockers, NexGenVending Machine, inventory
  5. Stockers, NexGenVending Machine, inventory, product
Answer This question has 1 correct answer.



57. Which of the following represents the packages of the NexGen Vending Machine described above?

  1. Food, NexGen Vending Machine, User Input Devices, User Output Devices, Containers
  2. Inventory Items, NexGen Vending Machine, Servicing, Containers
  3. Inventory Items, NexGen Vending Machine, User Input Devices, User Output Devices, Containers
  4. Inventory Items, NexGen Vending Machine, User Input Devices, User Output Devices, Utility
Answer This question has 1 correct answer.



58. Refer to the diagram to answer the question. Which of the following is the packages representing the Point of Sale system in the class diagram?

  1. Point of Sale, Transaction, Payment, Store, Personnel
  2. Employee, Transaction, Payment, Store
  3. Station, Transaction, Payment, Store, Personnel
  4. Station, Transaction, Payment, Store, Employee
Answer This question has 1 correct answer.

View Attachment - POS



59. Which of the following statement is false?

  1. Bi-directional associations CANNOT be implemented as two uni-directional associations
  2. A reference can be used to implement a unidirectional 1-to-1 relationship. For instance, a Car owned by a Person.
  3. A Container object (Map, Vector etc) can be used to implement a unidirectional 1-to-N relationship. For instance, Person owning multiple Books.
  4. A qualifier can be used to implement a unidirectional 1-to-N relationship. For instance, Person owning multiple Cars, identified by Vehicle ID as the qualifier
  5. N-ary association with multiplicity N-to-N can be modeled by using a relational class to break up the N-ary association. For example, Students taking
Answer This question has 1 correct answer.



60. Find the use cases for the following Catalog Ordering System. Customers can place orders for good and perform various activities as described below : * A single order can be placed for multiple line items. ( For example, customer can place a single order for a sun glasses, hat and a belt) * Customers can cancel both entire orders and individual items in orders. Canceling an order results in canceling all items in the order. * An item can be canceled if it has not already been shipped or previously canceled. * Customers can also return items they do not want. A customer may have any number of orders pending at any time. The Catalogs R Us system must generate a unique order number for each order. This number serves as the a key the customer can use to identify the order. Catalogs R Us system maintains an inventory of goods. Order items are allocated from that inventory. When its inventory is exhausted, an item will be back-ordered from a supplier. Customer orders are paid using either credit or debit cards. Hence, each order must include a credit or debit card number. Catalogs R Us obtains funds from that card when the order is placed. Catalogs R Us ships only complete orders. If one or more items in an order are currently unavailable, the shipment of the other parts of the order will be delayed until those items become available. The order processing system must also interact with legacy software. Catalogs R Us has a product warehouse legacy system that handles inventory management (including ordering goods from suppliers). It also has a legacy shipping system that handles shipping (including tracking the progress of the shipment).

  1. Place Order, Cancel Order, Cancel Order Item
  2. Place Order, Cancel Order, Return Order Item
  3. Place Order, Cancel Order, Cancel Order Item, Return Order Item
  4. Place Order, Cancel Order
Answer This question has 1 correct answer.



61. Which model represents the following code generated by a modeling tool? class Order { private Customer recipient; // ... }

  1. Design A
  2. Design B
  3. Design C
Answer This question has 1 correct answer.

View Attachment - Design A
View Attachment - Design B
View Attachment - Design C



62. Which of the following is the BEST list of candidate classes for the Library System described below? Libraries R Us Inc is developing code to handle checkout duties at a library. Library members may check out books and videos from the library. The system must keep track of which books and videos each member currently has checked out. Each book and video has a unique item number that is used by the system to index that book or video. A clerk may check the status of a book or video (in the library, checked out, checked out and overdue) by supplying the item number. A clerk may also check either on a book by supplying the title and author, or on a video by supplying only the title. Each library member has a library card that includes their membership number. When a member checks out a book or video, a clerk enters the membership number and the item number of the book or video. If the borrower has fewer than ten borrowed books or videos (in total), and if the borrower has no overdue books or videos, the book or video is loaned to the borrower. The conditions of the loan include a due date (two weeks for books and three days for videotapes)

  1. Library, Library Member, Book, Video, Clerk, Checkout Transaction
  2. Library Card, Book, Video, Clerk
  3. Borrower, Member, Book, Video, Title
  4. Library, Library Member, Book, Video, System
  5. Library, Library Member, Book, Video, Author
Answer This question has 1 correct answer.



63. Which of the following statement is true about the following sequence of activities? 1. Identify the use cases of system behaviour. 2. Specify and refine each use case. 3. Define a scenario for each "interesting path" through the use case. 4. Draw an interaction diagram for each scenario. 5. Identify object models from object interactions in the interaction diagrams. 6. Define each state-based object's behavior with a state transition diagram using interaction diagrams for guidance. Typically, any events consumed or produced by the state transition diagram are messages to and from that object in the interaction diagrams.

  1. This describes the System Dynamics of Bottom-Up Design approach.
  2. This describes the System Dynamics of Top-Down Design approach.
Answer This question has 1 correct answer.



64. Which of the following statement is true about the following sequence of activities? 1. Identify the classes in the system. You can use noun phrases or abstraction to do this. 2. Make a list of the responsibilities of the objects of each class. An object's responsibilities are what it must know and do (i.e, its state and behavior - CRC cards are helpful). 3. Identify interesting scenarios that you will use to validate your enumeration of responsibilities. To do this, you can first identify and model the use cases. 4. Draw an interaction diagram for each scenario, validating that you have all necessary responsibilities. Add (or rearrange) responsibilities as necessary. ( GRASP patterns can be used). 5. Repeat : Identify responsibilities, draw interaction diagrams, add responsibilities, and re-draw the interaction diagrams until you have what you believe is a complete set of responsibilities.

  1. This describes the System Dynamics of Bottom-Up Design approach.
  2. This describes the System Dynamics of Top-Down Design approach.
Answer This question has 1 correct answer.



65. Which of the following is true about the class diagram shown for a Library System? LibraryCard class can be removed by merging its properties into LibraryMember class, when:

  1. A LibraryCard and LibraryMember will always be in a one-to-one relationship.
  2. A LibraryMember could hold multiple Library Cards.
  3. None of the above.
Answer This question has 1 correct answer.

View Attachment - Library System



66. Refer to the library system diagram to answer the question. If there is a new requirement to allow different videos to be loaned for different periods, for instance, a new release of Bugs Bunny's Surfing Adventure is only available for two days whereas Daffy Duck's Outer Space Adventure is available for two weeks. How is the new requirement BEST handled in the existing Library System shown in the class diagram?

  1. loanPeriod attribute and query method loanPeriod() is added to the LibraryMember class
  2. loanPeriod attribute and query method loanPeriod() is added to the LoanTransaction class.
  3. loanPeriod attribute and query method loanPeriod() is added to the Library facade class.
  4. loanPeriod attribute and query method loanPeriod() is added to the Title class.
Answer This question has 1 correct answer.

View Attachment - Library System



67. Fully Dressed Use Case is created by :

  1. System Analyst, Domain Expert, Developers
  2. Users, Domain Expert, Developers
  3. Architect, Domain Expert, Developers
Answer This question has 1 correct answer.



68. Which of the following techniques can be used to find actors?

  1. Pareto Diagrams
  2. Fishbone Diagrams
  3. Mind mapping
  4. Brainstorming
  5. Event Analysis
  6. Actor-Goal List
Answer This question has 1 correct answer.



69. When creating Use Cases, the mapping between External Event and Goal can be N:1.

  1. True
  2. False
Answer This question has 1 correct answer.



70. Which of the following statements are true?

  1. In Object Oriented Analysis, the dimension of decomposition is fundamentally by things or entities in the domain.
  2. It is better to over-specify overspecify a domain model with lots of fine-grained conceptual classes, than to underspecify it.
  3. It is better to oversimplify a domain model with lots of coarse-grained conceptual classes, than to underspecify it.
  4. In Object Oriented Analysis, the dimension of decomposition is use cases.
Answer This question has 1 correct answer.



71. Which of the following statement is true?

  1. A subsystem is a package that has separate specification and realization parts.
  2. A subsystem is a discrete entity that has behavior and interfaces.
  3. A subsystem can be identified by the stereotype <<subsystem>>
  4. A subsystem is a package that has specification part only
Answer This question has 1 correct answer.



72. Which one of the following view is described below? The view of a system's architecture that encompasses the threads and processes that form the system's concurrency and synchronization mechanisms; this view addresses the performance, scalability, and throughput of the system.

  1. Use Case View
  2. Design View
  3. Process View
  4. Implementation View
  5. Deployment View
Answer This question has 1 correct answer.



73. Which one of the following view is described below? The view of a system's architecture that encompasses the classes, interfaces, and collaborations that form the vocabulary of the problem and its solution; this view addresses the functional requirements of a system.

  1. Use Case View
  2. Design View
  3. Process View
  4. Implementation View
  5. Deployment View
Answer This question has 1 correct answer.



74. Which one of the following view is described below? The view of a system's architecture that encompasses the nodes that form the system's hardware topology on which the system executes; this view addresses the distribution, delivery, and installation of the parts that make up the physical system.

  1. Use Case View
  2. Design View
  3. Process View
  4. Implementation View
  5. Deployment View
Answer This question has 1 correct answer.



75. Which one of the following view is described below? The view of a system's architecture that encompasses the components used to assemble and release the physical system; this addresses the configuration management of the system's releases, made up of somewhat independent components that can be assembled in various ways to produce a running system.

  1. Use Case View
  2. Design View
  3. Process View
  4. Implementation View
  5. Deployment View
Answer This question has 1 correct answer.



76. Which one of the following views is described below? The view of a system's architecture that describe the behavior of the system as seen by its end users, analysts, and testers.

  1. Use Case View
  2. Design View
  3. Process View
  4. Implementation View
  5. Deployment View
Answer This question has 1 correct answer.



77. Consider a system that manages the assignment of students and instructors to courses in a university. The CourseSchedule class has add(c:Course) and remove(c:Course) methods defined in it. What is the relationship between CourseSchedule and Course classes?

  1. Generalization relationship
  2. Composition relationship
  3. Inheritance relationship
  4. Dependency relationship
  5. Association relationship
Answer This question has 1 correct answer.



78. A well designed Object Oriented System is :

  1. Is loosely cohesive and loosely coupled
  2. Is tightly cohesive and loosely coupled
  3. Is tightly cohesive and tightly coupled
  4. Is loosely cohesive and tightly coupled
Answer This question has 1 correct answer.



79. The dependency relationship between classes indicates :

  1. local visibility
  2. global visibility
  3. attribute visibility
  4. parameter visibility
Answer This question has 1 correct answer.



80. Refer to the collaboration diagram for a college course registration system. Which of the following are the methods of the Student class?

  1. addStudent, register
  2. add, register
  3. getSchedule, register
  4. add, register
Answer This question has 1 correct answer.

View Attachment - College Course Registration



81. Consider the state machine for the controller in a home security system, which is responsible for monitoring various sensors around the perimeter of the house. Which of the following statement is false?

  1. In the lifetime of this controller class, there are four main states: Initializing, Idle, Command and Active.
  2. When the controller object is first created, it moves first to the Initializing state and then unconditionally to the Idle state.
  3. Control passes from the Idle state to the Active state on receipt of an alarm event.
  4. On entering the Active state, setAlarm is dispatched as the entry action, and control then passes first to the Checking state, then to the Calling state, and finally to the Waiting state.
  5. The final state takes the system to completion.
  6. The Active and Waiting states are exited only upon clearing the alarm, or by the user signaling the controller for attention, presumably to issue a command.
Answer This question has 1 correct answer.

View Attachment - Home Security System



82. Consider the statechart that is designed as a Mealy machine in the diagram. Which of the following statement is false?

  1. There are only three stable states for this state machine: Waiting , GettingToken , and GettingBody . b) c) d) e)
  2. In fact, there is only one event of interest in this state machine, the invocation of put with the a character parameter.
  3. While Waiting , this machine throws away any character that does satisfy the guard condition.
  4. When the start of a token is received, the state of the object changes to GettingToken .
  5. The final state makes the sytem complete its parsing of the incoming stream of characters.
Answer This question has 1 correct answer.

View Attachment - Mealy Machine



83. Which of the following is an INVALID reason for grouping classes into the same package?

  1. Classes are in the same subject area-closely related by concept or purpose.
  2. Classes are in a class hierarchy together, (related by generalization-specialization).
  3. Classes that participate in the same use cases.
  4. Classes are related by aggregation
  5. Classes are strongly associated
Answer This question has 1 correct answer.



84. Which of the following is NOT a strong motivation to partition a class into a subclass?

  1. The subclass has additional attributes of interest.
  2. The subclass has additional associations of interest.
  3. The subclass needs to remove or renounce properties of its superclass.
  4. The subclass concept is operated on, handled, reacted to, or manipulated differently than the superclass or other subclasses in ways that are of interest.
  5. The subclass concept represents an animate thing (for example, animal, robote) that behaves differently that the super class or other subclasses in ways that are of interest.
Answer This question has 1 correct answer.



85. . Component diagrams can contain which of the following?

  1. Interfaces
  2. Dependency, generalization, association, and realization relationships
  3. Components
  4. Packages or Subsystems
  5. Notes and constraints
  6. All of the above
  7. "a", "b" and "c" only.
Answer This question has 1 correct answer.



86. Component diagrams can be used to model :

  1. source code
  2. executable releases
  3. physical databases
  4. adaptable systems
  5. All of the above
  6. "a" and "b" only
  7. "a" "b" and "c" only
Answer This question has 1 correct answer.



87. Deployment diagrams are used :

  1. For modeling an embedded system
  2. For modeling a client/server system
  3. For modeling a fully distributed system
  4. To do modest amount of forward and reverse engineering
  5. All of the above
  6. "a" , "b" and "c" only
Answer This question has 1 correct answer.



88. Deployment diagrams can contain which of the following?

  1. Nodes
  2. Dependency, and association relationships
  3. Components
  4. Packages or Subsystems
  5. Notes and constraints
  6. All of the above
  7. "a", "b" and "c" only.
Answer This question has 1 correct answer.



89. Which of the candidate object is NOT part of the following use case : Use Case : Submit a loan request Actor(s) : Applicant, Loan Clerk Description : The applicant submits a loan request for processing by the bank's integrated loan processing system. The applicant fills out a loan application and submits it to the bank for processing. The system validates information on the loan application and calculates the applicant's credit score based on credit reports and the applicant's account history with the bank. The applicant is contacted for additional information, if needed. The system makes an initial approval recommendation. The loan is now ready for the loan officer's evaluation, pending any needed manual validation of credit references.

  1. Customer (applicant)
  2. Loan Request
  3. Loan Application
  4. Credit Score
  5. Credit Report
  6. Account History
  7. Processing System
  8. Loan Officer
Answer This question has 1 correct answer.



90. Which of the candidate object is NOT part of the following use case : Use Case : Evaluate Loan Request Actor : Loan Officer The loan officer reviews the online information about the pending loan request to determine if the loan request should be approved. This information includes the loan application, credit score, credit reports, the applicant's history with the bank and the system generated approval recommendation. If the loan request is approved, the loan officer marks the loan request as approved and the loan is ready to be generated.

  1. Loan Officer
  2. Loan Application
  3. Review
  4. Credit Score
  5. Credit Report
  6. Account History
Answer This question has 1 correct answer.



91. Which of the candidate object is NOT part of the following use case : Use Case : Process a new loan Actor : Loan Clerk Description : Once a loan agreement has been signed by the customer and returned to the bank, the loan clerk has the system create a loan account based on the agreed upon terms and conditions.

  1. Bank
  2. Loan Clerk
  3. Loan Agreement
  4. Loan Account
  5. Terms and Conditions
Answer This question has 1 correct answer.



92. Which of the following statement is true about use cases?

  1. Use cases CANNOT be traced to a goal.
  2. Use cases can be traced to at least one goal.
  3. Use cases are are always traceable to multiple goals.
Answer This question has 1 correct answer.



93. If "Submit loan request" and "Offer line of credit" both use "Perform credit check" use case, the relationship between Perform credit check and other used cases is :

  1. extend relationship
  2. include relationship
  3. generalization relationship
Answer This question has 1 correct answer.



94. Use cases CANNOT be used for :

  1. modeling the nonbehavioral aspects such as data requirements, performance and security.
  2. capturing behavioral aspect of a system.
  3. capturing functional aspect of a system.
Answer This question has 1 correct answer.



95. Refer to the Loan Processing System class diagram to answer the question. How will you implement the relationshop between Account and AccountHistory?

  1. Reference
  2. Association Class
  3. Link attribute
  4. Container object.
Answer This question has 1 correct answer.

View Attachment - Loan Processing System



96. In the following code generated by a CASE tool, what type of relationship is exhibited by the EventHandler class? public abstract class EventHandler { EventHandler successor; private Integer currentEventID; private String source; EventHandler() {} public void handleRequest() {} }

  1. Generalization relationship
  2. Composition relationship
  3. Inheritance relationship
  4. Reflexive association
  5. Association relationship
Answer This question has 1 correct answer.




Valid XHTML 1.0!