JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2022 SOFTWARE TESTING METHODOLOGIES Previous Question Paper (March/April - 2022 - R20)
Answer any five questions. All questions carry equal marks.
Main
Define testing. Explain the goal of software testing.
Answer
Software testing is the process of evaluating a system or its components with the intent to find whether it satisfies the specified requirements or to identify the differences between expected and actual results. It involves executing a program or application to detect defects, ensure quality, and verify that the software behaves as intended under various conditions.
The primary goals of software testing include:
- Defect Detection: Identifying bugs, errors, or vulnerabilities early in the development lifecycle to reduce the cost and effort of fixing them later.
- Quality Assurance: Ensuring the software meets the functional and non-functional requirements, including performance, security, and usability.
- Risk Mitigation: Reducing the probability of system failure in a production environment by validating critical paths and edge cases.
- Confidence Building: Providing stakeholders with evidence that the software is reliable, stable, and ready for deployment.
What are the applications of path testing? Explain with examples.
Answer
Path testing is a structural testing technique that aims to execute all independent paths through a program's control flow graph. Its applications focus on verifying the logic of complex decision structures within code.
Key applications include:
- Unit Testing of Complex Logic: It is used to test modules containing multiple nested loops or conditional branches where simple statement coverage is insufficient.
- Identifying Unreachable Code: By mapping all possible paths, developers can detect segments of code that can never be executed, which may indicate design flaws.
- Validation of Business Rules: It ensures that every combination of business conditions (e.g., if-else chains) results in the correct output.
For example, consider a function that calculates a discount based on customer type and purchase amount. If the logic is:
Explain the goal of path predicates, path sensitizing and path instrumentation.
Answer
Sign in to view the complete answer paper.
Differentiate testing and debugging with an example.
Answer
Sign in to view the complete answer paper.
What are the different notations used in the transaction flow testing? Explain.
Answer
Sign in to view the complete answer paper.
Differentiate Data flow testing and Domain testing with an example.
Answer
Sign in to view the complete answer paper.
What are the data flow testing motivation, applications and advantages? Explain.
Answer
Sign in to view the complete answer paper.
Discuss about domain boundaries and compound predicates.
Answer
Sign in to view the complete answer paper.
How Loop removal operation works and how loops are eliminated from the graph? Explain with an example.
Answer
Sign in to view the complete answer paper.
Calculate the probability and maximum path count arithmetic for a routine with an example.
Answer
Sign in to view the complete answer paper.
Write a short note on regular expressions and flow anomaly detection.
Answer
Sign in to view the complete answer paper.
Minimize the following function using KV map: F(A, B, C, D) = Σ(1, 3, 4, 6, 8, 9, 11, 13, 15) + d(2, 14)
Answer
Sign in to view the complete answer paper.
Write a short note on following:
Dead state
Answer
Sign in to view the complete answer paper.
Unreachable state
Answer
Sign in to view the complete answer paper.
Transition bugs.
Answer
Sign in to view the complete answer paper.
Explain node reduction algorithm.
Answer
Sign in to view the complete answer paper.
Explain matrix of graph, relations and properties of relations.
Answer
Sign in to view the complete answer paper.