OOAD - Object Oriented Analysis & Design, Past Papers, UOS Main Campus

OOAD BSSE Mid Past Paper 2016 – UOS Main Campus

ProgramBSSE
ExamMid Term
Year2016
CampusUOS Main
AnswersSolved ✓

University of Sargodha main campus (Department of CS & IT) Object Oriented Analysis & Design mid-term examination (subjective) for BSSE (Self + Reg), held on 5 April 2016 (30 marks, 90 minutes). Retyped from the original paper, with solved answers below.

Paper set byMs. Qaisra RamzanView official UOS faculty profile →

Solved answers

Q1 – ATM use case diagram (4)

Actors: Customer (primary), ATM Technician (primary), Bank (secondary). Use cases: Check Balance, Deposit Funds, Withdraw Cash, Transfer Funds (Customer); Maintenance, Repair (Technician). Each use case is also associated with the Bank actor. Optionally all customer use cases «include» Authenticate (insert card + PIN). Draw the ATM system boundary with the use cases inside, Customer and Technician on the left, Bank on the right.

Q2 (a) – Agile UP vs RUP (4)

Agile UPRUP
Lightweight, simplified version of RUP (Scott Ambler)Full, detailed process framework from IBM Rational
Few artefacts, “just enough” documentationMany artefacts, models and documents
Short iterations, frequent releases, agile practices (TDD, refactoring)Iterative but heavier planning and roles
Suited to small/medium teamsSuited to large, complex projects

Both use the same four phases (Inception, Elaboration, Construction, Transition) and are iterative and risk-driven.

Q2 (b) – Activity diagram for a POS terminal (5)

Start → Customer arrives with items → Cashier: Start new sale → Scan item (loop: [more items] back to Scan) → System calculates total → Customer chooses payment method → decision: [cash] Receive cash and give change / [card] Process card payment → decision [payment approved?] no → back to choose payment → yes → Print receipt → Update inventory → End. Use swim lanes Customer, Cashier and POS System.

Q3 – UML class diagram: customer order (5)

  • Customer (name, address) 1 —— * Order (date, status; calcTotal()).
  • Order 1 ◆—— 1..* OrderDetail (quantity, taxStatus; calcSubTotal()) — composition.
  • OrderDetail * —— 1 Item (description, weight, price).
  • Order 1 —— 1..* Payment (amount).
  • Payment is the abstract superclass of Cash (cashTendered), Check (name, bankID) and Credit (number, type, expDate) — generalization arrows.

Q4 – Short answers (2×6)

a) OOA finds and describes the concepts in the problem domain; OOD defines software objects and their collaborations to meet the requirements.

b) Use case formats: brief (one-paragraph main success scenario), casual (informal paragraphs covering main and alternate scenarios), fully dressed (detailed structured template: actors, stakeholders, pre/post-conditions, main scenario, extensions, special requirements).

c) UML advantages: a standard visual language understood by all developers; helps communicate and document designs; supports analysis and design from many views; tool support and code generation; reduces misunderstanding.

d) Association is a general relationship between classes (Teacher — Student). Aggregation is a “whole–part” association where the part can exist independently of the whole (Department ◇— Professor; hollow diamond).

e) A swim lane is a partition in an activity diagram that groups activities by the actor or department responsible for them.

f) Three perspectives to apply UML: conceptual (describe real-world domain concepts), specification (software abstractions/interfaces without implementation details), implementation (classes in a particular language such as Java).

Save this paper for offline studyDownload the question paper, or save the paper together with all solved answers as a PDF.
↓ Download Paper (JPG)

About Saif R

An educator and technology enthusiast passionate about empowering students through quality education and digital learning. Dedicated to making academic resources and opportunities accessible to everyone.