JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD MCA V SOFTWARE TESTING METHODOLOGIES Previous Question Paper (October/ November - 2020 - R15)

MCA | V | V | R15 | October/ November - 2020

Answer PaperPaper Code: 825AHMaximum Marks: 75Time: 2 Hours

Answer any five questions. All questions carry equal marks.

Main

115 marks
a

What is path testing? With an example explain the constraints and consequences of path testing.

7 marks

Answer

Path testing is a structural testing technique that aims to execute all possible paths through a program's control flow graph (CFG) at least once. It identifies the sequence of statements from the entry point to the exit point, ensuring that every logical branch is covered.

Constraints: The primary constraint is the path explosion problem. In programs with loops or complex conditional logic, the number of possible paths grows exponentially, making it computationally infeasible to test every path. Additionally, some paths may be infeasible, meaning no set of input data can trigger the execution of that specific sequence.

Consequences: While path testing provides high confidence in code correctness, it is resource-intensive. If only a subset of paths is tested, critical bugs in untested paths may remain undetected. Furthermore, it focuses on the internal structure rather than requirements, potentially missing missing functionality.

b

Explain about any five types of structural bugs.

8 marks

Answer

Structural bugs are defects related to the implementation logic and control flow of the software. Five common types include:

  1. Dead Code: Segments of code that can never be executed under any input condition, often resulting from redundant logic or unreachable branches.
  2. Infinite Loops: Loops that lack a proper exit condition, causing the program to hang and consume system resources indefinitely.
  3. Off-by-one Errors: Logical errors in loop boundaries or array indexing, where a loop executes one time too many or too few (e.g., using
    i <= n
    instead of
    i < n
    ).
  4. Uninitialized Variables: Accessing or using variables before they have been assigned a valid value, which leads to unpredictable behavior or runtime exceptions.
  5. Missing Path/Branch Errors: Occur when a programmer fails to account for a specific logical condition (e.g., an empty list or a null input), causing the control flow to deviate from the intended path.
215 marks
a

List and explain different transaction flow testing strategies.

7 marks

Answer

Sign in to view the complete answer paper.

b

Differentiate between static and dynamic program slicing.

8 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

What is the purpose of domain testing? What are its applications? Discuss.

7 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about flow anomaly detection.

8 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

What is the procedure for specification validation using KV charts? Illustrate.

7 marks

Answer

Sign in to view the complete answer paper.

b

With examples, explain KV charts for two variables and three variables.

8 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

What are the applications of node reduction algorithm? Discuss.

7 marks

Answer

Sign in to view the complete answer paper.

b

Write short notes on JMeter Tool and its benefits.

8 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Explain about traversal marker form of path instrumentation.

7 marks

Answer

Sign in to view the complete answer paper.

b

Illustrate about various flow graph elements with their notations.

8 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

What are the applications of data flow testing?

7 marks

Answer

Sign in to view the complete answer paper.

b

How data flow testing is useful in fulfilling the gaps in path testing? Explain.

8 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

State Huang’s theorem and explain its implementation details.

7 marks

Answer

Sign in to view the complete answer paper.

b

What are the applications of paths, path products and regular expressions? Explain.

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 V V, October/ November - 2020, R15.

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