CS611 – Software Quality Engineering: Midterm Important Subjective (25 Solved Q&As)
Software Engineering • Read every solved subjective question with its model answer directly on this page. Free, no login required.
All 664 Midterm Packs · CS611 Course Page · CS611 MCQ Pack (70 MCQs)
-
What is Software Quality Engineering?
Topic: Software Quality Engineering Discipline
Software Quality Engineering involves the complete software development process to ensure that the agreed-upon processes, standards and procedures are being followed to get the desired results, with no cherry picking of standards. It covers the activities needed to define, achieve and evaluate the quality of the software product throughout its development life cycle.
-
List the six quality characteristics of the ISO-9126 quality framework and explain any two of them.
Topic: Software Quality Engineering Discipline
The six characteristics are: (1) Functionality - the set of attributes bearing on the existence of functions that satisfy stated or implied needs. (2) Reliability - the capability of software to maintain its level of performance under stated conditions for a stated period of time. (3) Usability - the attributes related to the effort needed to learn, understand and use the software. (4) Efficiency - the relationship between the level of performance and the amount of resources used. (5) Maintainability - the effort needed to make specified modifications; its subcomponents are analyzability, changeability, testability and stability. (6) Portability - the ability of software to be transferred from one environment to another.
-
Differentiate between Error, Fault and Failure. Also describe the relationship between them.
Topic: Errors, Faults, Defects and Failures
Error is a human action that produces an incorrect result, i.e. a mistake made by the programmer (syntax or semantic), caused by confusion in understanding requirements, miscalculation or misinterpretation of values. A fault is an incorrect step, process or data definition in a computer program; faults are the result of errors. A failure is the result of a fault: it is the inability of the program to behave as expected, i.e. the delivered service no longer complies with the specifications. So the chain is: Error leads to Fault, and Fault leads to Failure.
-
Differentiate between a Defect and a Bug.
Topic: Errors, Faults, Defects and Failures
A defect is the deviation from the customer requirement; it is the departure of a quality characteristic from its specified value, and defects are mostly found after the software is shipped to the customer at the production site. A bug, on the other hand, is an error found before the software is shipped into production; famously, the defects accepted by developers are called bugs, and software is often shipped with known bugs.
-
Explain Defect Prevention, Defect Detection/Reduction and Defect Containment.
Topic: Errors, Faults, Defects and Failures
Defect Prevention is a QA strategy to identify the root causes of defects and improve the process so that the defects do not recur. Defect Detection/Reduction works on the injected faults: because prevention cannot be 100% effective, effective techniques are used to remove as many injected faults as possible under project constraints, minimizing the defect count. Defect Containment aims to reduce the chance of defects passing from one phase to another and, for the remaining faults that are triggered under rare conditions, to break the causal relation between faults and failures or reduce the resulting damage.
-
What is the Function-Quality-Cost (FQC) trade-off? Explain it for a fixed-budget project.
Topic: Cost of Software Quality
In most development projects, functionality and quality (QA precisely) are natural enemies. Budgets are usually fixed, so functionality and quality compete with each other for a bigger share of the budget. If the number of features is increased in a closed-budget project, the budget share for quality activities decreases, and quality suffers. For example, with a fixed budget of PKR 100,000 and 4 features, each feature costs PKR 25,000 (development PKR 80,000 and quality PKR 20,000); adding more features in the same budget leaves less money per feature for quality maintenance activities.
-
Differentiate between direct and indirect costs of missing quality, giving one example of each.
Topic: Cost of Software Quality
Direct costs are directly linked to the missing quality; they are tangible, visible and measurable, and occur immediately after an unfortunate event, e.g. financial loss and physical injury. Indirect costs are invisible costs of missing quality and are difficult to calculate; they may remain hidden for a long time and appear much later, e.g. loss of market share, loss of reputation, and loss of market and shareholder trust and investment.
-
Define Risk Exposure. A risk has a probability of 0.2 and a potential loss of PKR 500,000. Calculate its Risk Exposure.
Topic: Cost of Software Quality
In the risk analysis approach, a risk is defined by its probability (p) and its impact or potential loss (L). Risk Exposure is the product of the two: RE = p x L. For the given risk: RE = 0.2 x 500,000 = PKR 100,000. This value is used to evaluate and compare the cost of missing quality for different risks.
-
Describe the four IEEE levels of system criticality (Levels A to D).
Topic: Cost of Software Quality
Level A - Catastrophic: continuous usage (24 hours per day), irreversible environmental damage, loss of human lives, and disastrous economic or social impact. Level B - Critical: environmental damage, serious threats to human lives, permanent injury or severe illness, and important economic or social impact. Level C - Marginal: property damage, minor injury or illness, and significant economic or social impact. Level D - Negligible: time-to-time usage, low property damage, no risk to human lives, and negligible economic or social impact.
-
What is the People - Process - Technology 'golden triangle'? Why is Process called the leg of this triad?
Topic: Standards, Models and CMMI
The People - Process - Technology framework, also called the golden triangle, shows that the finest talent is unable to perform well without an understanding of processes; talent needs guidance to produce quality. Process is called the leg of the triad because it works as the glue that keeps the other two aspects (people and technology) together: a well-defined process provides the means to work smarter and lets people and technology be utilized at an optimal level, whereas technology by itself is most likely not used effectively.
-
Write any four differences between a mature organization and an immature organization.
Topic: Standards, Models and CMMI
(1) In immature organizations, processes are improvised during the project, while in mature organizations work is accomplished according to plan. (2) Immature organizations are reactive, not proactive; mature organizations follow practices consistent with their processes. (3) Immature organizations work with unrealistic budgets and schedules; mature organizations update their processes as necessary. (4) In immature organizations quality is sacrificed for schedule, while mature organizations have well-defined roles and responsibilities. (5) Immature organizations have no objective measure of quality; in mature organizations management formally commits to the process.
-
'CMMI is not a process.' Explain what CMMI tells an organization.
Topic: Standards, Models and CMMI
CMMI is a collection or model of best practices in systems, product and software development; it is not itself a process. It does not tell an organization how to do its work; rather, it tells what to do to achieve high quality. It is based on the premise of process management and provides a framework for organizing small improvement steps into five maturity levels that lay successive foundations for continuous process improvement.
-
Differentiate between CMMI Maturity Level 2 (Managed) and Level 3 (Defined).
Topic: Standards, Models and CMMI
At Level 2 (Managed), policies and frameworks are established for projects; work is planned, monitored and controlled, but the processes, standards and procedures are quite different for each project or organizational unit, and the organization still relies heavily on 'heroes'. At Level 3 (Defined), standard processes for developing and maintaining software are established and documented across the organization; a project's processes are tailored from the organization's set of standard processes, and the reliance is on the defined process instead of heroes, making work standard and consistent.
-
Differentiate between CMMI Maturity Level 4 (Quantitatively Managed) and Level 5 (Optimizing).
Topic: Standards, Models and CMMI
Level 4 (Quantitatively Managed) focuses on addressing special causes of variation and providing statistical predictability of results: process performance is controlled using statistical and quantitative techniques, and variation is narrowed to fall within acceptable quantitative boundaries. Level 5 (Optimizing) addresses common causes of variation and changes the process itself to improve performance while maintaining statistical predictability; its focus is continuous process improvement through incremental changes and adoption of new technologies and methods, so defects are proactively avoided.
-
Define Process Area, Specific Practice and Generic Practice in CMMI.
Topic: Standards, Models and CMMI
A Process Area is a cluster of related practices in an area that, when implemented collectively, satisfies a set of goals considered important for making improvement in that area. A Specific Practice is an expected model component considered important in achieving the associated specific goal; specific practices describe the activities expected to result in achievement of the specific goals of a process area. A Generic Practice is an expected model component considered important in achieving the associated generic goal; generic practices describe activities that result in achievement of the generic goal and contribute to the institutionalization of the processes of a process area.
-
What is the role of Process Action Teams (PATs) in process improvement?
Topic: Engineering Process Areas
Process Action Teams (PATs) are the teams responsible for the implementation of process improvement initiatives in specific process areas; each process area has an associated PAT. They are also known as the 'worker bees' of process improvement. Their mandate is to focus on the weaknesses found in a process during evaluation, write the procedures, pilot them and update them as needed. Their tasks include generating process improvement documentation, policies, processes, procedures, charters and action plans, and bringing consistency (standardization of artifacts, e.g. drafting templates) in documents throughout the organization.
-
List the practices of the Requirement Management process area.
Topic: Engineering Process Areas
(1) Understanding Requirements: develop an understanding with the requirements providers on the meaning of the requirements. (2) Obtain Commitment to Requirements: obtain commitment to the requirements from the project stakeholders. (3) Manage Requirements Changes: manage changes to requirements as they evolve during the project, using the change management process and performing impact analysis. (4) Maintain Bidirectional Traceability of Requirements: establish traceability from a source requirement to its lower-level requirements and back. (5) Identify Inconsistencies: ensure that project plans and work products remain aligned with the requirements.
-
Differentiate between Software Validation and Software Verification.
Topic: Engineering Process Areas
Validation ensures that the final product or its components fulfill the requirements and their intended use when deployed in the intended environment; it is about building the right product, and no code is required for it (proof of concept, wireframes and requirement modeling are key). Verification is concerned with the engineering aspects: it ensures that selected work products meet their specified requirements and that the product is well-engineered and error-free; it is about building the product in the right way, and it includes testing, design analysis, inspections and code reviews. Verification does not evaluate the usefulness of the system.
-
What are the three types of audits? Explain each briefly.
Topic: Engineering Process Areas
First Party Audits are internal audits: someone from the organization itself audits a process to measure compliance and/or effectiveness. Second Party Audits are external audits performed on a supplier by a customer, or by a contracted organization on behalf of a customer, to ensure that the supplier is meeting the contract specification. Third Party Audits are also external audits, but they are performed by an audit organization that is independent of the supplier-customer relationship.
-
What is Earned Value Management (EVM)? Define Planned Value, Earned Value and Actual Cost.
Topic: Process Management and Earned Value
Earned Value Management (EVM) is a project management tool that provides objective measures of the cost and schedule performance of the whole project, so that cost and schedule issues are highlighted in time for remedial action. It evaluates three values: Planned Value (PV), the budgeted value of the work planned to be done; Earned Value (EV), the budgetary value of the work actually completed; and Actual Cost (AC), the actual effort/cost spent on the work done.
-
A project has Planned Value (PV) = 112, Earned Value (EV) = 40 and Actual Cost (AC) = 216. Calculate SPI and CPI and comment on the project's schedule and budget status.
Topic: Process Management and Earned Value
SPI = EV / PV = 40 / 112 = 0.357. Since SPI is less than 1, the project is behind schedule. CPI = EV / AC = 40 / 216 = 0.185. Since CPI is less than 1, the project is over budget. Conclusion: the project is both over budget and behind schedule, because the actual cost is far greater than the value earned, and the value earned is much less than the value planned.
-
Differentiate between estimation and timeline in project planning.
Topic: Process Management and Earned Value
Estimation is the prerequisite of project planning and is worked out in terms of man-hours (and budget) required to complete the development work. A timeline, in contrast, is the progress of activities on a calendar timescale. The two are totally different: for example, 200 hours of estimated effort does not mean 5 weeks of timeline, because the timeline depends on how many resources work in parallel and on the calendar schedule.
-
List and briefly explain the attributes of a good software requirement.
Topic: Requirements Engineering and Quality
(1) Correct: the requirement must capture the client expectations without ambiguity; subjective terms like 'user friendly' should be avoided or clarified with references. (2) Coherent: requirements must be consistent and must not conflict with other requirements or the project scope, and terminology must be used consistently. (3) Complete: the requirement must express the entire need with all conditions and constraints, leaving no room for guessing or assumptions. (4) Feasible: it must be possible to implement the requirement within the scope and limitations of the project. (5) Necessary: the requirement must add business value and come from the business goals behind the system. (6) Verifiable: the requirement must be testable/demo-able, expressed unambiguously with quantified values so QA can verify it. (7) Traceable: the requirement must have a unique identifier and be linked to its source, use cases, design and test cases, with forward and backward integration.
-
Why is requirement engineering considered the most important area of the SDLC? What problems occur during requirement engineering?
Topic: Requirements Engineering and Quality
According to the Cavendish Software Chaos Report, requirement engineering is the top reason behind project failure, with about 87% failure chances if it is not done accurately. The common problems are: missing requirements (not documented properly, so critical requirements are skipped); lack of client involvement (requirements are misunderstood or miscommunicated); wrong requirements (technically wrong or conflicting requirements due to the client's limited technical knowledge); changing requirements (changes in later stages that become difficult to incorporate); and out-of-scope requirements stated by the client. Errors produced in this phase also cost a lot in later stages.
-
What is the role of the QA team in software requirements?
Topic: Requirements Engineering and Quality
Requirements must be reviewed by QA resources before they are finalized; QA reviews all the requirements and writes test cases against all the use cases. As per modern best practices, QA must be involved from the initial stages of the project so that it knows what is being built and how, and can prepare quality assurance activities in a planned and organized way. The SQA team is considered the internal customer of the product, and the product is released only if approved by QA; therefore QA is a major stakeholder in gathering and finalizing software requirements, and requirements should be validated and approved by QA and all stakeholders before development to prevent rework.