Blog
Software Engineering MSc IT 2nd Term Past Paper 2018 UOS
University of Sargodha M.Sc. IT 2nd term Software Engineering (CMP-3310) past paper 2018, retyped from the original paper, with solved answers below.
Solved answers
Q1 – Short questions
(i) Agile process models: a process is agile when it is iterative and incremental, delivers working software in short releases, welcomes changing requirements, involves the customer continuously, relies on small self-organising teams and keeps documentation and ceremony to a minimum (XP, Scrum, DSDM, FDD).
(ii) Cohesion and coupling: cohesion is the degree to which the elements inside a module belong together and perform a single task — high cohesion is desirable. Coupling is the degree of interdependence between modules — low coupling is desirable.
(iii) Project, process and product: the project is the planned, time- and budget-bound undertaking (people, schedule, resources); the process is the framework of activities, actions and tasks used to build the software; the product is the delivered software with its documentation and data.
(iv) Structured vs object-oriented analysis: structured analysis views the system as functions and data flows, keeping data and processes separate (DFDs, ERDs, data dictionary, process specifications). Object-oriented analysis models the system as interacting objects/classes that combine data (attributes) and behaviour (operations), using use cases, class, sequence and state diagrams; it supports encapsulation, inheritance and reuse.
(v) Closed system: a system that does not interact with its environment — it receives no input from and gives no output to outside systems (in contrast with an open system).
(vi) Preliminary use case: an informal, first-cut use case written during requirements gathering (inception) that describes in a short narrative how an actor interacts with the system; it is later refined into a formal use case with preconditions, scenarios and exceptions.
(vii) CASE tool: Computer-Aided Software Engineering tool — software that automates or supports software-engineering activities such as modelling, code generation, testing, configuration and project management (e.g. Rational Rose, Enterprise Architect, Visual Paradigm).
(viii) SWOT analysis: a planning technique that identifies the internal Strengths and Weaknesses and the external Opportunities and Threats of a project, product or organisation.
(ix) Navigation semantics: in web-application design, the meaning of navigation — how users move through the content to achieve their goals. It is defined with navigation semantic units (NSUs): sets of information and navigation structures that work together to fulfil a user requirement.
(x) RMMM: Risk Mitigation, Monitoring and Management — the plan (or part of the project plan) that documents for each risk how to avoid/reduce it, how to monitor it and what to do if it becomes a reality.
(xi) Design elements: data/class design, architectural design, interface design, component-level design and deployment-level design.
(xii) Testing vs debugging: testing is the process of executing a program to find errors (it shows that defects exist); debugging is the process, after a test fails, of locating the cause of the error and correcting it.
(xiii) Phases of the Rational Unified Process: Inception, Elaboration, Construction and Transition (Pressman also lists Production).
(xiv) System testing: testing the complete, integrated system against its requirements in an environment close to real use, including recovery, security, stress, performance and deployment testing.
(xv) Gantt chart: a bar chart used for project scheduling; tasks are listed vertically and time horizontally, and each task is a bar showing its start, duration and end, so progress and overlaps are easy to see.
(xvi) FDD diagram: a diagram of the Feature Driven Development agile process showing its five activities: develop an overall model → build a features list → plan by feature → design by feature → build by feature (the last two iterate for each feature).
Q2 – Examples for architectural styles
| Architectural style | Example applications |
|---|---|
| Data-centred (repository / blackboard) | Database management systems and banking systems; IDEs and CASE tools sharing a common repository; version control (Git); AI blackboard systems such as speech recognition |
| Data-flow (pipe and filter) | UNIX shell pipelines; compilers (lexer → parser → code generator); image/signal processing and audio-video encoding pipelines |
| Call and return (main program/subprogram, remote procedure call) | Traditional C/Pascal programs; payroll and scientific programs; RPC-based distributed systems |
| Object-oriented | GUI desktop applications; Java/.NET enterprise applications; simulation and game engines |
| Layered | OSI/TCP-IP protocol stack; operating systems (kernel, services, user interface); 3-tier web applications (presentation, business logic, data) |
| Client–server / event-driven (others) | Web and e-mail systems; online games; GUI event handling and IoT systems |
Q3 – Agile process model vs prototyping
| Aspect | Agile process model | Prototyping |
|---|---|---|
| Aim | Deliver working, production-quality increments frequently | Clarify unclear requirements by building a quick model |
| Output | Each iteration produces usable software that is kept | Prototype is often thrown away (throw-away) or evolved (evolutionary) |
| Iteration | Short time-boxed iterations (1–4 weeks) through the whole life cycle | Iterates mainly during requirements: build → evaluate → refine |
| Customer role | Continuous collaboration; on-site customer/product owner | Evaluates the prototype and gives feedback |
| Documentation | Minimal, working software preferred | Little documentation for the prototype |
| Quality risk | Testing in every iteration (TDD, continuous integration) | Quick-and-dirty design may wrongly become the final system |
| Best for | Projects with changing requirements and need for early delivery | Projects where requirements or user interface are unclear |
Similarities: both are iterative, involve the customer and use feedback to refine the system; prototyping can be used inside agile iterations (spikes). The main difference is that agile delivers the real product incrementally, while prototyping is mainly a requirements-discovery technique.
Q4 – School bus operations
a) Actors: Dispatcher, Driver (full-time and part-time), Parent, Student, Transportation/School Administrator, and the Payroll or HR system (secondary actor).
Use cases: manage bus routes (regular and special), schedule special trips (activities, athletic events, summer sessions), assign driver to route, manage driver availability/staffing, assign bus to route, request pickup/drop-off change, relay message to driver, report bus breakdown or delay, record student ridership, generate route and driver reports.
b) Use case diagram — “Request pickup/drop-off change”:
+-------------------------------------------+
| School Bus Operation System |
Parent ------>| (Request pickup/drop-off change) |
| | <<include>> |
| v |
| (Verify student & route) |
Dispatcher --->| (Process change request) |
| | <<include>> |
| v |
Driver <------| (Relay message to driver) |
+-------------------------------------------+The Parent initiates the request; the Dispatcher processes it, which includes verifying the student and route; the Driver receives the relayed message.
c) Sequence diagram for the selected use case:
Parent Dispatcher StudentRecords RouteSchedule Driver
| 1 request change | | | |
|----------------->| 2 getStudent() | | |
| |----------------->| | |
| |<-- 3 route, bus -| | |
| | 4 updateStop() | | |
| |------------------------------------>| |
| |<------------- 5 updated ------------| |
| | 6 sendMessage(student, new stop) |
| |-------------------------------------------------->|
| |<------------------ 7 acknowledge -----------------|
|<- 8 confirmation | | | |1) The parent calls the dispatcher with the change request. 2–3) The dispatcher retrieves the student’s current route and bus. 4–5) The route schedule is updated with the new stop. 6–7) A message is sent to the bus driver, who acknowledges it. 8) The dispatcher confirms the change to the parent.
Q5 – Testing an online order placement system
- Unit testing (white-box, basis-path and condition testing) — during coding, by developers on individual modules: cart total calculation, discount/coupon logic, tax and shipping functions, input validation; with tools such as JUnit/PHPUnit.
- Integration testing (incremental, bottom-up/top-down) — after units are tested, when modules are combined: product catalogue + cart, cart + checkout, checkout + payment gateway and inventory update, order + e-mail notification; checks interfaces and data passing.
- Black-box functional testing (equivalence partitioning and boundary-value analysis) — at system test stage, by testers using requirements: quantity 0, 1, maximum and above maximum; valid and invalid card numbers, expiry dates and addresses; full order flow from search to confirmation.
- Performance/stress and security testing — before release, on a staging server: many simultaneous users (load testing, e.g. during sales), response time of checkout; SQL injection, XSS, secure HTTPS payment and session handling.
- (Also acceptance testing — alpha at the developer’s site and beta with real store users — and regression testing after every change.)
Q6 – Notes
a) User interface design patterns: proven, reusable solutions to common UI design problems, each described by a name, problem, context and solution. Examples: top-level navigation (menu bar or tabs), breadcrumbs, search box with auto-complete, wizard (step-by-step tasks such as checkout), shopping cart, progress indicator, pagination, form validation with inline messages, undo. They make interfaces consistent and familiar, reduce design time and improve usability.
b) Validation and verification testing: Verification — “Are we building the product right?” — checks that each work product conforms to its specification (reviews, inspections, walkthroughs, unit and integration tests). Validation — “Are we building the right product?” — checks that the finished software meets the customer’s actual needs (validation tests against requirements, alpha and beta testing, acceptance testing). Together, V&V ensure quality throughout the life cycle.
c) Software maintenance: modification of software after delivery to correct faults, improve performance or adapt to a changed environment. Types: corrective (fixing defects), adaptive (adapting to new OS, hardware, laws), perfective (adding features, improving performance) and preventive (re-engineering to improve future maintainability). It is often 60–70% of total life-cycle cost; good documentation, modular design, configuration management and regression testing make maintenance easier.
