Past Papers, Software Engineering, UOS Main Campus

Software Engineering CMP-290 BSSE Final Past Paper 2015 – UOS Main Campus

ProgramBSSE
ExamFinal Term
Year2015
Course codeCMP-290
AnswersSolved ✓

University of Sargodha main campus (Department of CS & IT) BSSE Software Engineering (CMP 290) final term examination, 16 February 2015. Retyped from the original paper, with solved answers below.

Paper set byMs. Qaisra RamzanView official UOS faculty profile →

Solved answers

Q1 – Brief notes

1) White box testing: testing based on the internal structure/code of the program (glass-box testing); test cases exercise all independent paths, decisions (true/false), loops and internal data structures — e.g. basis path testing, condition and loop testing.

2) Boundary value analysis: a black-box technique that selects test cases at the edges of input ranges, because errors often occur at boundaries — for a range 1–100 test 0, 1, 2, 99, 100 and 101.

3) Regression testing: re-executing a subset of already-run tests after changes (bug fixes, new features) to make sure the change has not introduced new errors in existing functionality; often automated.

4) Ad hoc testing: informal, unplanned testing without documentation or test cases, relying on the tester’s experience and intuition to find defects quickly (error guessing).

Q2 – Cyclomatic complexity

Cyclomatic complexity V(G) is a software metric that gives the number of independent paths through a program’s flow graph — the minimum number of test cases needed for basis path testing. It can be computed in three ways: (1) number of regions of the flow graph; (2) V(G) = E − N + 2 (edges − nodes + 2); (3) V(G) = P + 1, where P is the number of predicate (decision) nodes.

The given flow graph has four regions marked R1, R2, R3 and R4 (R4 is the outer region). Therefore V(G) = 4, which agrees with three predicate nodes + 1 (the decision at the loop back from the bottom, the inner loop back to f, and the branch at g to h / i). So four independent paths must be tested.

Q3

a) Software configuration management (SCM): a set of activities to manage change throughout the software life cycle — identifying configuration items, controlling changes, version control, status accounting and configuration audits — so that the product remains consistent and its history is known.

b) Role of SCM as an umbrella activity: it is applied throughout the whole process, not in one phase: identifies work products; controls versions of documents and code; manages change requests through a change control board; ensures changes are properly implemented (audits); reports status to all stakeholders; and allows rebuilding any earlier version.

c) Configuration items generated in SDLC: project plan and estimates; SRS (requirements specification); analysis and design models (DFDs, UML diagrams, architecture document); database schema; source code and executable programs; test plans, test cases and test results; user manuals and installation guides; maintenance and change records.

Q4 – Short answers

a) Software architecture design: the high-level structure of a system — its components, their externally visible properties and relationships — chosen to meet functional and quality requirements (e.g. layered, client-server, data-centred).

b) Refactoring vs refinement: refinement is stepwise elaboration — moving from a high-level abstraction to more detailed design (top-down). Refactoring is reorganising existing design or code to improve its internal structure (remove redundancy, improve cohesion) without changing its external behaviour.

c) Benefits of information hiding: modules hide their internal data and algorithms, exposing only interfaces; this reduces side effects, limits the impact of changes, makes testing and maintenance easier and supports independent development and reuse.

d) Alpha vs beta testing: alpha testing is done by end users at the developer’s site in a controlled environment with developers present; beta testing is done by end users at their own sites in a real environment without developers, who receive problem reports.

e) Testing vs debugging: testing executes the software to find errors (shows defects exist); debugging occurs after a successful test that found an error — it locates the cause of the error and corrects it.

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.