JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA 2022 SOFTWARE TESTING METHODOLOGIES Previous Question Paper (March/April - 2022 - R20)

MCA | 2022 | III | R20 | March/April - 2022

Answer PaperPaper Code: 873AJMaximum Marks: 75Time: 3 Hours

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

Define testing. Explain the goal of software testing.

7 marks

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.
b

What are the applications of path testing? Explain with examples.

8 marks

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:

if (customer == 'Premium') { if (amount > 1000) discount = 20%; else discount = 10%; } else { discount = 5%; }
Path testing would require creating test cases for three distinct paths: (1) Premium customer with amount > 1000, (2) Premium customer with amount <= 1000, and (3) Non-premium customer. This ensures that every logical branch is exercised, preventing errors in discount calculations that might be missed by random testing.

215 marks
a

Explain the goal of path predicates, path sensitizing and path instrumentation.

8 marks

Answer

Sign in to view the complete answer paper.

b

Differentiate testing and debugging with an example.

7 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

What are the different notations used in the transaction flow testing? Explain.

8 marks

Answer

Sign in to view the complete answer paper.

b

Differentiate Data flow testing and Domain testing with an example.

7 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

What are the data flow testing motivation, applications and advantages? Explain.

8 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about domain boundaries and compound predicates.

7 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

How Loop removal operation works and how loops are eliminated from the graph? Explain with an example.

8 marks

Answer

Sign in to view the complete answer paper.

b

Calculate the probability and maximum path count arithmetic for a routine with an example.

7 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Write a short note on regular expressions and flow anomaly detection.

8 marks

Answer

Sign in to view the complete answer paper.

b

Minimize the following function using KV map: F(A, B, C, D) = Σ(1, 3, 4, 6, 8, 9, 11, 13, 15) + d(2, 14)

7 marks

Answer

Sign in to view the complete answer paper.

7

Write a short note on following:

15 marks
a

Dead state

5 marks

Answer

Sign in to view the complete answer paper.

b

Unreachable state

5 marks

Answer

Sign in to view the complete answer paper.

c

Transition bugs.

5 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Explain node reduction algorithm.

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain matrix of graph, relations and properties of relations.

8 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of SOFTWARE TESTING METHODOLOGIES from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for MCA 2022 III, March/April - 2022, R20.

For the question paper without answers, switch to the Question Paper tab.

Other papers in SOFTWARE TESTING METHODOLOGIES

Loading Question Papers

Fetching data from database...