This document contains 3 questions - the first asks to draw the control flow graph and determine cyclomatic complexity and independent paths for a max function code segment. The second asks to write test cases for a commission problem. The third asks to design boundary value and robust test cases for a program to determine the nature of roots of a quadratic equation given coefficients a, b, c in the range of 0 to 100.
This document contains 3 questions - the first asks to draw the control flow graph and determine cyclomatic complexity and independent paths for a max function code segment. The second asks to write test cases for a commission problem. The third asks to design boundary value and robust test cases for a program to determine the nature of roots of a quadratic equation given coefficients a, b, c in the range of 0 to 100.
This document contains 3 questions - the first asks to draw the control flow graph and determine cyclomatic complexity and independent paths for a max function code segment. The second asks to write test cases for a commission problem. The third asks to design boundary value and robust test cases for a program to determine the nature of roots of a quadratic equation given coefficients a, b, c in the range of 0 to 100.
a) Draw the control flow graph for this program segment
b) Determine the cyclomatic complexity for this program
c) Determine the independent paths
Q-2 Write the test cases for commission problem and explain .
Q-3 Consider a program for the determination of the nature of roots of a
quadratic equation. Its input is a triple of positive integers (say a, b, c) and values in the interval [0,100]. The program output may be one of the following: [Not a quadratic equation; Real roots; Imaginary roots; Equal roots]. Design the boundary value test cases and robust test cases for the program. roots]. Design the boundary value test cases and robust test cases for the program.