You are on page 1of 5

BSE 3103 Requirements Engineering

Ashaba Justus

10/u/2602

SAMPLE QUESTIONS ON LECTURE SEVEN A Short Answer Questions 1. What is the purpose of an activity diagram? 2. What is the difference between an activity and an action? 3. What is the purpose of a fork node? 4. What are the different types of control nodes? 5. What is the difference between a control flow and an object flow? 6. What is an object node? 7. What are the major elements of a use case? 8. State the elements of a use case description. Structured Questions 1. A Campus Housing Service helps students find apartments. Apartment owners fill in information forms about the rental units they have available (e.g., location, number of bedrooms, monthly rent), which are then entered into a database. Students can search through this database via the Web to find apartments that meet their needs (e.g., a two-bedroom apartment for Shs 400000 or less per month within 1/2 mile of campus). They then contact the apartment owners directly to see the apartment and possibly rent it. Apartment owners call the service to delete their listing when they have rented their apartment(s). (a) Create an Activity diagram for the housing system run by the Campus Housing Service. (b) Create a Use Case diagram for the housing system run by the campus housing service. 2. Create an activity diagram and a use case diagram for the process of buying glasses from the viewpoint of the patient. The first step is to see an eye doctor who will give you a prescription. Once you have a prescription, you go to a glasses store, where you select your frames and place the order for your glasses. Once the glasses have been made, you return to the store for a fitting and pay for the glasses. 3. Create an activity diagram and a use case diagram for an online university registration system. The system should enable the staff of each academic department to examine the courses offered by their department, add and remove courses, and change the information about them (e.g., the maximum number of students permitted). It should permit students to examine currently available courses, add and drop courses to and from their schedules, and examine the courses for which they are enrolled. Department staff should be able to print a variety of reports about the courses and the students enrolled in them. The system should ensure that no student takes too many courses and those students who have any unpaid fees are not permitted to register. SAMPLE QUESTIONS ON LECTURE SEVEN B

BSE 3103 Requirements Engineering

Ashaba Justus

10/u/2602

Short Answer Questions 1. What is the purpose of a class diagram? 2. What are the major elements of a class diagram? 3. Draw a class diagram for the following classes. Consider that the entities represent a system for a patient billing system. Include any appropriable relationships. Patient (age, name, hobbies, blood type, occupation, insurance carrier, address, phone) Insurance carrier (name, number of patients on plan, address, contact name, phone) Doctor (specialty, provider identification number, age, phone, name) 4. Draw a class diagram for the following situations: a) Whenever new patients are seen for the first time, they complete a patient information form that asks their name, address, phone number, and insurance carrier, which are stored in the patient information file. Patients can be signed up with only one carrier, but they must be signed up to be seen by the doctor. Each time a patient visits the doctor, an insurance claim is sent to the carrier for payment. The claim must contain information about the visit such as the date, purpose, and cost. It would be possible for a patient to submit two claims on the same day. b) Uganda is interested in designing a system that will track its researchers. Information of interest includes researcher name, title, position; university name, location, enrollment; and research interests. Researchers are associated with one institution, and each researcher has several research interests. c) A department store has a bridal registry. This registry keeps information about the customer (usually the bride), the products that the store carries, and the products each customer registers for. Customers typically register for a large number of products, and many customers register for the same products. d) Jim Smiths dealership sells Fords, Hondas, and Toyotas. The dealership keeps information about each car manufacturer with whom it deals so that it can get in touch with them easily. The dealership also keeps information about the models of cars that it carries from each manufacturer. It keeps information such as list price, the price the dealership paid to obtain the model, and the model name and series (e.g., Honda Civic LX). The dealership also keeps information on all sales that it has made (for instance, it will record the buyers name, the car bought, and the amount paid for the car). In order to contact the buyers in the future, contact information is also stored (e.g., address, phone number). 5. State the major difference between a communication diagram and a sequence diagram. 6. Define the following terms as applied to Behavioral State Machines. (a) State (b) Transition (c) Event (d) Action (e) Activity 7. Create a sequence diagram for each of the following scenario descriptions for a video store system. A Video Store (AVS) runs a series of fairly standard video stores. (a) Every customer must have a valid AVS customer card in order to rent a video. Customers rent videos for three days at a time. Every time a customer rents a video, the system must ensure that the customer does not have any overdue

BSE 3103 Requirements Engineering

Ashaba Justus

10/u/2602

videos. If so, the overdue videos must be returned and an overdue fee paid before customer can rent more videos. (b) If the customer has returned overdue videos, but has not paid the overdue fee, the fee must be paid before new videos can be rented. If the customer is a premier customer, the first two overdue fees can be waived, and the customer can rent the video. (c) Every morning, the store manager prints a report that lists overdue videos; if a video is two or more days overdue, the manager calls to remind the customer to return the video. 8. Create a communication diagram and a behavioral state machine for the video system in question 7 above. 9. (a) Modeling support requirements specification. Write brief notes to support this statement. (b) State any three modeling methods and, for each method, state one model that can be used. 10. Think about sending a firstclass letter to an international pen pal. Describe the process that the letter goes through to get from your initial creation of the letter to being read by your friend, from the letters perspective. Draw a behavioral state machine that depicts the states that the letter moves through. Structured Questions 1. Holiday Travel Vehicles sells new recreational vehicles and travel trailers. When new vehicles arrive at Holiday Travel Vehicles, a new vehicle record is created. Included in the new vehicle record is a vehicle serial number, name, model, year, manufacturer, and base cost. When a customer arrives at Holiday Travel Vehicles, he/she works with a salesperson to negotiate a vehicle purchase. When a purchase has been agreed to, a sales invoice is completed by the salesperson. The invoice summarizes the purchase, including full customer information, information on the tradein vehicle (if any), the tradein allowance, and information on the purchased vehicle. If the customer requests dealerinstalled options, they will be listed on the invoice as well. The invoice also summarizes the final negotiated price, plus any applicable taxes and license fees. The transaction concludes with a customer signature on the sales invoice. Customers are assigned a customer ID when they make their first purchase from Holiday Travel Vehicles. Name, address, and phone number are recorded for the customer. The tradein vehicle is described by a serial number, make, model, and year. Dealerinstalled options are described by an option code, description, and price. Each invoice will list just one customer. A person does not become a customer until they purchase a vehicle. Over time, a customer may purchase a number of vehicles from Holiday Travel Vehicles. Every invoice must be filled out by only one salesperson. A new salesperson may not have sold any vehicles, but experienced salespeople have probably sold many vehicles. Each invoice only lists one new vehicle. If a new vehicle in inventory has not been sold, there will be no invoice for it. Once the vehicle sells, there will be just one invoice for it. A customer may decide to have no

BSE 3103 Requirements Engineering

Ashaba Justus

10/u/2602

options added to the vehicle, or may choose to add many options. An option may be listed on no invoices, or it may be listed on many invoices. A customer may trade in no more than one vehicle on a purchase of a new vehicle. The tradein vehicle may be sold to another customer, who later trades it in on another Holiday Travel Vehicle. a) Identify six classes described in the above scenario. b) Develop a list of attributes for each of the classes. c) Draw a class diagram and document the relationships with the appropriate multiplicities. 2. Think about your school library and the processes involved in checking out books, signing up new borrowers, and sending out overdue notices from the librarys perspective. (a) Create a use case diagram for the library system. (b) Create a class diagram for the library system. (c) Choose one use case and create a sequence diagram. (d) Create a communication diagram for the use case chosen in question (c) above. (e) Create a behavioral state machine to depict one of the classes on the class diagram in question b above. 3. Think about the system that handles student admissions at your university. The primary function of the system should be able to track a student from the request for information through the admissions process until the student is either admitted or rejected from attending the school. An admissions form includes the contents of the form, UACE information, and references. Additional information is captured about students of alumni, such as their parents graduation year, contact information, and college major. Pretend that a temporary student object is used by the system to hold information about people before they send in an admission form. After the form is sent in, these people are considered students. (a) Create an activity diagram that describes this process. (b) Based on the activity diagram, create a use case diagram for the process. (c) Create a sequence diagram for any chosen use case from (b) above. (d) Create a class diagram for the admission system. (e) Create a behavioral state machine to depict a person as he or she moves through the admissions process.

BSE 3103 Requirements Engineering

Ashaba Justus

10/u/2602