Past Papers, Software Engineering, UOS Main Campus

Software Engineering Past Paper 2015 – BSCS 4th Term UOS (CMP-3310)

ProgramBSCS
Term4th
Year2015
Course codeCMP-3310
AnswersSolved ✓

University of Sargodha BS Computer Science 4th term Software Engineering (CMP-3310) paper, 2015 exam (80 marks, 2:30 hours). The paper is retyped below without the handwritten notes and name on the original, followed by solved answers for all 16 short questions and all long questions: agile vs incremental, spiral vs RAD, software myths, component-based, formal and prototyping models, testing and SQA techniques.

Solved answers

Q1 – Short answers (16 × 2)

i. Importance of cost and time in SE. Software must be delivered within budget and on schedule; cost and time estimates are the basis of planning, bidding, staffing and tracking. Overruns cause project failure, so SE uses estimation (COCOMO, FP) and scheduling techniques.

ii. Importance of software engineering. It applies a systematic, disciplined, quantifiable approach to development so that large, complex software is reliable, maintainable and delivered on time and within cost; it reduces complexity, cost of change and risk.

iii. CMMI stands for. Capability Maturity Model Integration – a process-improvement model by SEI with maturity levels 1 (Initial) to 5 (Optimizing).

iv. Phases of SDLC. Planning/feasibility, requirements analysis, design, implementation (coding), testing, deployment and maintenance.

v. Cohesion vs coupling. Cohesion is the degree to which the elements inside one module belong together (one module, one job) – high cohesion is desired. Coupling is the degree of interdependence between modules – low (loose) coupling is desired, so a change in one module does not ripple into others.

vi. Verification vs validation. Verification asks “Are we building the product right?” – checking that work products meet their specifications (reviews, inspections, walkthroughs, static analysis). Validation asks “Are we building the right product?” – checking that the finished software meets the user’s real needs (testing, acceptance testing).

vii. Two size-measurement methods. Lines of Code (LOC/KLOC) and Function Points (FP); others: object points, use-case points.

viii. Risk management. Identifying, analysing (probability and impact), prioritizing and planning for risks, then monitoring them throughout the project (RMMM – risk mitigation, monitoring and management) to reduce their effect.

ix. Black-box vs white-box testing. Black-box testing tests functionality from the specification without looking at the code (equivalence partitioning, boundary value analysis); usually done by testers. White-box (glass-box) testing uses knowledge of the internal code and logic to design tests (statement, branch, path coverage, basis-path testing); usually done by developers.

x. Qualities of good software. Maintainability, dependability (reliability, security, safety), efficiency (performance, resource use) and usability/acceptability; also functionality, portability and correctness.

xi. Elicitation. Requirements elicitation is gathering requirements from customers, users and other stakeholders using interviews, questionnaires, workshops, observation, scenarios and prototypes.

xii. Quality attributes. Functionality, reliability, usability, efficiency, maintainability and portability (ISO 9126); also security, availability, scalability and testability.

xiii. Cyclomatic complexity formula. V(G) = E − N + 2 (edges − nodes + 2) for a flow graph; equivalently V(G) = P + 1 where P is the number of predicate (decision) nodes, or the number of regions of the flow graph.

xiv. SWOT. SWOT analysis is a strategic planning tool that examines Strengths and Weaknesses (internal) and Opportunities and Threats (external) of a project, product or organization.

xv. Characteristics of a good requirement. Correct, complete, unambiguous, consistent, verifiable (testable), feasible, traceable, necessary and prioritized.

xvi. Why feedback is important to the team. Feedback from customers, testers and team members reveals errors and misunderstandings early, guides changes, improves quality and motivation, and is central to agile iteration (demos, retrospectives).

Q2 (a) – Agile vs incremental development

AspectIncremental developmentAgile development
Basic ideaSystem is delivered in a series of planned increments; each adds functionalityIterative-incremental philosophy emphasising people, working software, customer collaboration and response to change
PlanningRequirements are largely defined first and partitioned into incrementsPlanning is adaptive; requirements emerge as user stories and are reprioritized each iteration
Increment lengthWeeks to monthsShort fixed time-boxes (1–4 weeks sprints)
DocumentationNormal documentation per incrementMinimal documentation; working code and tests are the main artefacts
CustomerGives feedback after each incrementInvolved continuously, often on-site
ProcessCan be plan-driven (each increment may follow mini-waterfall)Specific methods: Scrum, XP, Kanban, Crystal, DSDM
TeamConventional rolesSmall, self-organizing, cross-functional teams

In short, every agile method is incremental, but incremental development is not necessarily agile.

Q2 (b) – Spiral vs RAD

AspectSpiral modelRAD (Rapid Application Development)
FocusRisk analysis in every loopVery short development cycle (60–90 days)
ApproachEvolutionary; each loop produces a more complete version (prototype → product)Component-based, parallel teams; uses reusable components and code generators
PhasesObjective setting, risk assessment, development, planningCommunication, planning, modelling (business, data, process), construction (reuse, auto code), deployment
Suitable forLarge, expensive, high-risk projects with unclear requirementsWell-understood, modular projects with tight deadlines
CostExpensive; needs risk-assessment expertiseNeeds many skilled developers and committed customers
WeaknessComplex to manage; may never endNot suitable for high technical risk or non-modular systems; performance tuning difficult

Q3 – Software myths

Myths are erroneous beliefs about software and its development that seem reasonable and are widely held, but lead to bad management decisions and poor practice (Pressman).

Management myths

  • “We already have a book of standards and procedures; isn’t that enough?” – Reality: the book may be outdated, not used, incomplete or not adapted to modern practice.
  • “If we get behind schedule, we can add more programmers and catch up.” – Reality (Brooks’ law): adding people to a late project makes it later, because newcomers must be trained and communication overhead grows.
  • “If I outsource the project to a third party, I can relax.” – Reality: an organization that cannot manage projects internally will struggle with outsourced ones.

Customer myths

  • “A general statement of objectives is enough to start writing programs – details can be filled in later.” – Reality: ambiguous objectives cause disaster; clear requirements need continuous communication.
  • “Requirements change continually, but change can be easily accommodated because software is flexible.” – Reality: the cost of change increases rapidly the later it is introduced.

Practitioner (developer) myths

  • “Once we write the program and get it to work, our job is done.” – Reality: 60–80% of effort is spent after first delivery (maintenance).
  • “Until I get the program running, I can’t assess its quality.” – Reality: technical reviews are effective quality filters from the start.
  • “The only deliverable for a successful project is the working program.” – Reality: models, documents and plans are also needed for support.
  • “Software engineering will make us create voluminous, unnecessary documentation and slow us down.” – Reality: SE is about creating quality, which reduces rework and leads to faster delivery.

Recognising these myths helps managers and developers adopt realistic, disciplined practices.

Q4 – Process models: component-based, formal methods and prototyping

A process model is an abstract representation of a software process: it defines the framework activities (communication, planning, modelling, construction, deployment), their order and flow, work products and umbrella activities. Examples: waterfall, incremental, evolutionary (prototyping, spiral), specialized models.

1. Component-based development (CBD) – builds applications from prepackaged, reusable software components (COTS or in-house). Steps:

  1. Research and evaluate available components for the application domain.
  2. Consider component integration issues.
  3. Design a software architecture to accommodate the components.
  4. Integrate the components into the architecture.
  5. Conduct comprehensive testing to ensure proper functionality.

Advantages: reuse, reduced development time and cost (studies report large reductions in cycle time), higher reliability. Disadvantages: requirement compromises, less control over component evolution, integration difficulties.

2. Formal methods model – uses mathematical notation (set theory, logic – e.g. Z, VDM, B) to specify, develop and verify software. Specifications can be proved consistent and complete, and programs proved correct; cleanroom software engineering is a variation. Advantages: removes ambiguity and inconsistency, very high reliability – used for safety-critical systems (avionics, medical, railway). Disadvantages: time-consuming and expensive, requires extensive training, difficult to communicate with customers.

3. Prototyping model – used when the customer’s objectives are general and requirements unclear. Cycle: communication → quick plan → quick design (modelling) → construction of prototype → deployment, delivery and feedback → refine and repeat until requirements are understood. The prototype may be thrown away (throw-away) or evolved into the product (evolutionary). Advantages: users see the system early, requirements clarified, reduced risk. Problems: customers may think the prototype is the product; developers may keep quick-and-dirty implementation choices.

Q5 (a) – Importance of testing

  • Finds defects before the software reaches users, reducing cost – errors found late cost far more to fix.
  • Demonstrates that the software meets its requirements (validation) and builds customer confidence.
  • Improves quality attributes – reliability, security, performance, usability.
  • Prevents failures that can cause financial loss or danger to life in critical systems.
  • Provides measurable information (defect rates) for management and process improvement.
  • Required for certification and contracts.

Q5 (b) – Test definitions

  • Unit testing – testing individual components (functions, classes) in isolation, usually by the developer using white-box techniques, drivers and stubs.
  • Integration testing – testing combined modules to find interface errors; approaches: top-down, bottom-up, sandwich and big-bang.
  • System testing – testing the complete integrated system against requirements, including performance, security, recovery and stress tests.
  • Alpha testing – acceptance testing by customers/end users at the developer’s site in a controlled environment, with developers present.
  • Beta testing – testing by real users at their own sites without developers present; users report problems before final release.
  • Stress testing – running the system under abnormal loads (very high volume, many users, low memory) to find the breaking point and see how it fails and recovers.
  • Regression testing – re-running earlier tests after changes or fixes to make sure no new defects have been introduced.

Q6 – Techniques to assure software quality (SQA)

  • Software quality assurance plan – defines standards, reviews, audits, tests, metrics and responsibilities for the project.
  • Standards and procedures – IEEE, ISO 9001, coding standards; SQA checks they are followed.
  • Technical reviews – walkthroughs, inspections and formal technical reviews (FTR) of requirements, design and code by peers to find defects early.
  • Testing – unit, integration, system, acceptance and regression testing; black-box and white-box techniques.
  • Audits – independent checks that activities and products comply with plans and standards.
  • Software configuration management – version control and change control to keep products consistent.
  • Defect tracking and error/defect analysis – collecting and analysing defects; statistical SQA (Pareto: 20% of causes give 80% of defects) and Six Sigma.
  • Metrics and measurement – defect density, MTBF, cyclomatic complexity.
  • Formal methods and verification for critical parts.
  • Process improvement – CMMI, ISO 9001 certification, training of staff.
  • Risk management and reliability/safety analysis (fault tree analysis).

Quality is built in throughout the process – not tested in at the end.

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.