Getting ready for the midterm of CS608 (Software Quality Assurance)? Here is everything in one place: solved MCQs, subjective questions with answers and short notes and key terms, gathered from past papers and files shared by students. No duplicates and all the answers are checked and verified. Use the tabs above to switch between Objective, Subjective and Short Notes & Key Terms, and tap Show answer only after you have tried the question yourself. Best of luck with your exam!
Part 1: Objective (MCQs)
Q1. ________ ensures that the Software Project would reach its goals.
- Defect prevention
- Defect avoidance
- Software quality management
- Customer report
Show answer
Answer: (c) Software quality management
Q2. Quality Control is a set of activities that are ____________ oriented.
- Process
- Customer
- Product
- Hardware
Show answer
Answer: (c) Product
Why: The shared key marked "Process", but that describes Quality Assurance. Quality Control inspects and tests the finished product to find defects, so it is product oriented. (QA = process oriented, QC = product oriented.)
Q3. Gray box testing provides the advantages of ____________.
- Black box testing
- White box testing
- Both black and white box testing
- None of the given
Show answer
Answer: (c) Both black and white box testing
Q4. Which of the following are organization's software process assets?
- Standard processes
- Tailoring guidelines for project
- Library of best practices
- All of the given
Show answer
Answer: (d) All of the given
Q5. White box testing is based on the ____________ of the component or entire system.
- Internal structure
- External structure
- Both internal and external
- None of the given
Show answer
Answer: (a) Internal structure
Q6. Defect prevention is concerned with ensuring that the sources of defects inherent in the software process, or defects that occur repeatedly, are identified and ____________.
- Approved
- Eliminated
- Included
- Added
Show answer
Answer: (b) Eliminated
Q7. Organization's software process assets do NOT include ____________.
- Standard processes
- Tailoring guidelines
- Services
- Library of best practices
Show answer
Answer: (c) Services
Q8. Performance is an indication of the responsiveness of a ____________ to execute any action within a given time interval.
- User
- Programmer
- Computer analyst
- System
Show answer
Answer: (d) System
Q9. Reliability is the ability of a system to remain ____________ over time.
- None operational
- Under maintenance
- Operational
- Close
Show answer
Answer: (c) Operational
Q10. In the first step of setting quality goals, the quality views and attributes meaningful to ____________ are identified.
- Programmer
- User
- Computer analyst
- Quality assurance manager
Show answer
Answer: (b) User
Q11. Boundary value analysis is normally used in conjunction with ____________.
- Equivalence partitioning
- Decision table
- State transition table
- Use case testing
Show answer
Answer: (a) Equivalence partitioning
Q12. Black box testing ignores the ____________ details of a system.
- External
- Internal
- Outer
- Output
Show answer
Answer: (b) Internal
Q13. Software testing is the process of examining the software product against its ____________.
- Solution
- Values
- Requirements
- System
Show answer
Answer: (c) Requirements
Q14. Testing is any activity aimed at evaluating an ____________ or capability of a program or system and determining that it meets its required results.
- Result
- Attribute
- Values
- None of the given
Show answer
Answer: (b) Attribute
Q15. Failure can be best defined in terms of software engineering as ____________.
- Human mistake
- Improper program condition
- Difference from intended behavior
- None of the given
Show answer
Answer: (c) Difference from intended behavior
Why: The source file had conflicting marks (one pointed to C, another to D), so the key was not trusted. By the standard definition, a failure is a departure of the observed behavior from the intended (specified) behavior. A human mistake is an error, and an improper program condition is a fault/defect.
Q16. Quality assurance is a process that focuses on ____________.
- Defect prevention
- Data prevention
- Software prevention
- None of the given
Show answer
Answer: (a) Defect prevention
Q17. What are the possible reasons for poor quality?
- Logical design errors
- Coding errors
- Documentation errors
- All of the given
Show answer
Answer: (d) All of the given
Q18. A maintenance engineer is concerned about ____________ after delivery of the product.
- Correction time
- Prevention time
- Contingency time
- Execution time
Show answer
Answer: (a) Correction time
Part 2: Subjective Questions
Q1. Assume that you are working as quality planning manager in a software company. Write down three tasks that you will perform while setting quality goals.
While setting quality goals I would:
- Identify quality views and attributes that are meaningful to the target customers and users (for example reliability, performance, usability).
- Select direct quality measures that can be used to measure each selected attribute (for example defects per KLOC, mean time between failures, response time).
- Quantify these measures, i.e. set a target value for each one (for example fewer than 0.5 defects per KLOC, response time under 2 seconds).
Q2. What are defect quality measurements? Describe at least five.
Defect quality measurements are the data collected to judge how many defects a project has, where they were found and how quickly they are removed. Five of them:
- Defect discovery points: where defects are found (inspections, tests, customer reports, etc.).
- Defect removal efficiency levels: the percentage of defects removed before release.
- Normalized data: defects per function point or per KLOC, so projects of different size can be compared.
- Causative factors: why defects occurred (complexity, creeping requirements, etc.).
- Defect repair speeds or intervals: time from the first report of a defect to the release of its fix.
Q3. Assume that you are working as a Quality Assurance manager at a software company named Soft Tech. A group of developers had developed a prototype which is handed to you for verification and validation testing. In your opinion what parameters must be checked in verification and validation process separately? Describe in details.
Verification asks "Are we building the product right?" It checks that each work product conforms to its specification, without running the final system (static checks). Validation asks "Are we building the right product?" It checks that the running prototype meets the real needs of the users (dynamic checks).
| Verification: parameters to check | Validation: parameters to check |
|---|---|
| Requirements are complete, clear, consistent and testable | Prototype does what the user actually needs (functional behaviour) |
| Design conforms to the requirements (traceability) | User interface is usable and acceptable to the customer |
| Code follows coding standards and the design | Performance, response time and load behave as required |
| Documents, plans and test cases are reviewed | Prototype is run with real or realistic data and scenarios |
| Methods used: reviews, walkthroughs, inspections, desk checking | Methods used: system testing, user/acceptance testing, demos with the customer |
Conclusion: verification is done first and mostly by the team through reviews. Validation is done on the working prototype together with the customer. Both are needed before the prototype is accepted.
Q4. According to boundary value analysis what are the possible places of errors in a software?
Boundary value analysis (BVA) works on the experience that errors are most likely to exist at the boundaries between partitions of the input (or output) range, and not in the middle of a partition. By testing there, it also brings a degree of negative testing into the test design.
Typical error places are:
- The minimum and maximum values of a range, and the values just below the minimum and just above the maximum.
- The values just inside each boundary (min+1 and max-1).
- Wrong relational operators in the code (< used instead of <=, > instead of >=) and off-by-one mistakes in loops and array indexes.
- The boundary between a valid and an invalid partition.
Example: for an input that accepts ages 18 to 60, test 17, 18, 19, 59, 60 and 61.
Q5. Describe at least two practical examples of Quality Control Process.
The goal of Quality Control (QC) is to identify defects after a product is developed and before it is released. It finds and eliminates sources of quality problems through tools and equipment so that the customer's requirements are continually met. Examples:
- Software testing: running test cases on a finished module (for example the login module) and comparing actual with expected results, then fixing the defects found before release.
- Inspection / code review: a team examines the finished code or documents against a checklist and the requirements to find defects.
- Manufacturing example: measuring sample products on a production line and rejecting those outside the allowed tolerance.
Q6. Suppose you are a software engineer in a company and developing a matrices program. Describe at least three Quality Assurance parameters that should be resolved.
For a matrix program the following quality parameters should be settled and checked:
- Correctness: addition, multiplication, transpose, determinant and inverse must give right results (test with known matrices).
- Robustness / error handling: invalid input such as incompatible dimensions, empty matrices, non-numeric values, or the inverse of a singular matrix must give a clear error message, not a crash.
- Performance / efficiency: acceptable running time and memory for large matrices.
- Reliability: the program gives the same correct output every time and does not fail over long use.
- Usability and maintainability: simple input/output format, readable and documented code that is easy to modify.
Q7. Describe 5 disadvantages of White box testing.
- The tester needs programming skill and knowledge of the internal code, so skilled testers are expensive.
- It is time-consuming, because every path, branch and condition has to be examined.
- It is practically impossible to test every possible path of a large program, so some paths stay untested.
- It cannot find missing functions: it tests the code that exists, not the requirements that were never implemented.
- Test cases are tied to the code, so when the code changes the tests must be rewritten and maintained.
- It often needs special tools (coverage tools, debuggers).
Q8. As a software engineer in a company, which quality assurance goals would you consider for the SQA team?
The main goals of an SQA team are:
- Requirements quality: requirements are correct, complete and consistent, because they set the base for design and code.
- Design quality: every design element is checked against the requirements.
- Code quality: source code and its work products follow the standards and are easy to maintain.
- QC effectiveness and planning: testing and review resources are used so that defects are found as early as possible.
- Process compliance: the project follows the defined standard process, and any deviation is recorded and reported to management.
- Defect prevention: causes of repeated defects are found and removed.
Q9. Why should an organization deploy an SQA team? Do you think an SQA team is essential for an organization? Explain with details.
Yes, an SQA team is essential, because quality does not happen by chance. Developers focus on delivering features, so an independent group is needed to watch the process and the product.
- It prevents defects early, when fixing them is cheapest (reviews, audits, process checks).
- It makes sure the agreed standards and process are actually followed.
- It gives management an independent view of project status and risks.
- It reduces rework, delay and maintenance cost.
- It improves customer satisfaction and the company's reputation.
- It drives continuous process improvement using defect data and measurements.
Without SQA, defects are found late (often by the customer), costs rise and deadlines are missed.
Q10. What is Software Quality Assurance?
Software Quality Assurance (SQA) is a set of planned and systematic activities applied throughout the software life cycle to make sure that the software processes and work products conform to the defined standards and requirements. It is process oriented and focuses on defect prevention (for example through audits, reviews and process monitoring), rather than only finding defects after the product is built.
Q11. Describe three situations where a state transition black box test can be suitably implemented.
State transition testing suits systems whose output depends on the current state and the previous events:
- Login with attempt limit: states like Logged out, Attempt 1, Attempt 2, Locked. A wrong password moves to the next state, three failures lock the account.
- ATM or vending machine: states like Idle, Card inserted, PIN verified, Transaction, Card ejected; each event changes the state.
- Order / document workflow: an online order moves through Placed, Paid, Shipped, Delivered or Cancelled, and only valid transitions are allowed.
- Other fits: web page navigation, traffic light controllers, embedded device modes.
Q12. Assume that you are working as a member in Quality Enhancement cell. In your opinion what are the possible advantages that can be provided by Software Quality? Describe at least five.
- Customer satisfaction: the software does what the user needs and is dependable.
- Fewer defects and failures in operation.
- Lower cost: less rework, and lower maintenance and support cost.
- On-time delivery: less time lost fixing late-found problems.
- Good reputation and competitive advantage for the company, more repeat business.
- Higher productivity and team morale, because the process is stable and predictable.
Q13. Write down at least 5 steps of defining "Standard Process Definition".
A standard process is defined by following steps (a model answer; wording may differ from the handout):
- Identify the purpose and scope of the process and the projects it will serve.
- Collect existing practices and requirements (standards, best practices, lessons learned from past projects).
- Define the activities, tasks, inputs, outputs and roles of the process, with entry and exit criteria.
- Define measures to track its performance and quality.
- Write tailoring guidelines so projects can adapt the process to their needs.
- Review, approve and pilot the process on a project.
- Deploy it in the organization (as a software process asset) and keep improving it from feedback.
Part 3: Short Notes & Key Terms
- Software Quality Management (SQM)
- The set of activities that ensures a software project reaches its quality goals.
- Quality Assurance (QA)
- A process-oriented activity that focuses on defect prevention by checking that the right process is followed.
- Quality Control (QC)
- A product-oriented activity that finds defects in the finished product before release.
- Verification
- Checking that the product is built correctly, i.e. it conforms to its specification (reviews, inspections).
- Validation
- Checking that the right product is built, i.e. it satisfies the user's real needs (testing, acceptance).
- Error, Fault and Failure
- Error: a human mistake. Fault (defect): the wrong code or document caused by the error. Failure: a difference between the actual and the intended behavior during execution.
- Software testing
- The process of examining a software product against its requirements, to evaluate an attribute or capability and decide whether it meets the required results.
- Black box testing
- Testing based on the external behavior and requirements; it ignores the internal details of the system.
- White box testing
- Testing based on the internal structure (code, paths, branches) of a component or the entire system.
- Gray box testing
- A mix of black box and white box testing; it gives the advantages of both.
- Equivalence partitioning
- Dividing inputs into groups that the system treats alike, and testing one value from each group.
- Boundary value analysis (BVA)
- Testing at the edges of the partitions, where errors are most likely; used together with equivalence partitioning.
- State transition testing
- A black box technique that tests the changes of a system between states caused by events.
- Decision table testing
- A black box technique that lists combinations of conditions and the resulting actions as a table.
- Defect prevention
- Making sure that the sources of defects in the process, or defects that occur repeatedly, are identified and eliminated.
- Defect removal efficiency
- The percentage of the total defects that are removed before the software is released.
- Software process assets
- Items owned by an organization such as standard processes, tailoring guidelines and a library of best practices. Services are not process assets.
- Tailoring guidelines
- Rules that tell a project how to adapt the organization's standard process to its own needs.
- Performance
- An indication of the responsiveness of a system to execute any action within a given time interval.
- Reliability
- The ability of a system to remain operational over time.
- Steps of setting quality goals
- 1) Identify quality views and attributes meaningful to the user. 2) Select direct measures for them. 3) Quantify those measures.
- Maintenance engineer's concern
- Correction time: how long it takes to fix a problem after delivery of the product.
No comments:
Post a Comment
Please give us your feedback & help us to improve this site.