Blog
Software Engineering Past Paper Spring 2025 – BS 4th Semester Punjab University (CC-212)
University of the Punjab BS 4-year programme, fourth semester Spring 2025, Software Engineering (CC-212) paper (60 marks, 3 hours). The question paper is the official University of the Punjab paper published on pu.edu.pk (BS 4-year programme past papers, Spring 2025); it is retyped here and the answers are written by Shining Study. Solved answers: layered technology, requirement engineering, ERD elements, actors, black/white-box testing, quality control, the spiral model, UI design and object design.
Solved answers
Q1 – Short answers (6 × 5)
1. Software engineering – a layered technology. Pressman describes SE as four layers resting on a commitment to quality: (1) quality focus – the bedrock (TQM, Six Sigma); (2) process – the framework that holds the layers together and defines activities, milestones and deliverables; (3) methods – technical “how-to’s” for communication, requirements analysis, design, coding, testing and support; (4) tools – automated or semi-automated support for the process and methods (CASE tools, IDEs, version control).
2. Requirement engineering. The process of finding, documenting and managing what a system must do and the constraints on it. Tasks: inception, elicitation (interviews, questionnaires, workshops, observation), elaboration (analysis models, use cases), negotiation (resolve conflicts, prioritise), specification (SRS document), validation (reviews, prototypes) and requirements management (traceability, change control). Output: functional and non-functional requirements agreed by stakeholders.
3. Elements of an ER diagram. Entity (rectangle; weak entity – double rectangle), attribute (oval; key attribute underlined, multivalued – double oval, derived – dashed), relationship (diamond), cardinality/ multiplicity (1:1, 1:M, M:N) and participation (total/partial).
E.g. Entity: a real-world object about which data is stored, such as STUDENT. Relationship: an association between entities, such as STUDENT enrolls in COURSE (M:N).
4. Types of actor. An actor is anything outside the system that interacts with it (use-case modelling). Primary actors initiate use cases to achieve a goal (customer withdrawing cash from an ATM). Secondary (supporting) actors help the system provide the service (bank server, payment gateway). Actors may also be human or non-human (other systems, devices, time/scheduler).
5. Black-box vs white-box testing.Black-box testing White-box testing Tests functionality from the specification; internal code not known Tests internal logic, paths and code structure Done by testers/users Done mainly by developers Techniques: equivalence partitioning, boundary value analysis, decision tables Techniques: statement, branch and path coverage, basis-path (cyclomatic complexity) Finds missing/incorrect functions, interface errors Finds logic errors, unreachable code, wrong loops/conditions
6. Quality control. Quality control is a set of inspections, reviews and tests used throughout the process to make sure each work product meets its requirements; defects are found and fixed before release (product-oriented). It includes measurement and feedback. Example: code reviews and unit/system testing of a banking app’s funds-transfer module, checking that results match expected outputs and logging defects until the defect rate falls below the agreed limit.
Q2 (1) – Spiral model
Proposed by Barry Boehm (1986), the spiral model is a risk-driven, evolutionary process that combines the iterative nature of prototyping with the systematic steps of the waterfall model. The project moves through loops of a spiral; each loop is a phase and produces a more complete version of the software.
- Determine objectives, alternatives and constraints (planning/communication).
- Risk analysis – identify risks (technical, cost, schedule) and resolve them, often by building prototypes.
- Engineering – design, code and test the current increment.
- Evaluation and planning – customer evaluates the output and the next loop is planned.
Example: a hospital management system – loop 1 builds a prototype of patient registration to clarify requirements; loop 2 develops appointments and billing after analysing security risk; loop 3 adds pharmacy and reports, etc.
Advantages: early risk reduction, suits large/high-risk projects, customer feedback each loop, changes accommodated. Disadvantages: costly, needs risk-assessment expertise, hard to manage and not good for small projects.
Q2 (2) – User interface design process
UI design is an iterative process (Pressman): interface analysis and modelling → interface design → interface construction → interface validation.
- User, task and environment analysis – who the users are (skill level, age), what tasks they perform, where they work.
- Interface design – define objects and actions, screen layouts, navigation, menus, icons, error messages and help; apply golden rules: place the user in control, reduce memory load, keep the interface consistent.
- Construction – build a prototype (wireframes, mock-ups, then working screens).
- Validation – usability testing with real users, measure time/errors/satisfaction, refine and repeat.
Example: an ATM interface – users are the general public; tasks are withdraw, deposit, balance inquiry; design uses large buttons, few steps, clear messages, language choice and consistent “Cancel”; a prototype is tested with users and the flow is shortened based on feedback.
Q2 (3) – Object design
Object design is the activity (after system design) that fills the gap between the analysis model and implementation: it refines classes into detailed, implementable specifications.
- Reuse – identify off-the-shelf components, libraries and design patterns (e.g. use a Strategy pattern for payment methods).
- Interface specification – define each class’s attributes with types and visibility, operations with signatures, and contracts (pre-conditions, post-conditions, invariants, often in OCL).
- Restructuring – realise associations (as references/collections), merge or split classes, increase reuse through inheritance.
- Optimisation – add derived attributes, change access paths, collapse objects to improve performance.
Example: in a library system the analysis class Book becomes class Book { -isbn: String; -title: String; -available: bool; +issue(member: Member): void pre: available = true post: available = false }; the association Member–Loan–Book is implemented as a List<Loan> in Member.
Upload a photo in 10 seconds — no form to fill. We clean it, solve it and credit you.
