Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use the following function to answer the questions given below. double exponent (double a, int b) { // This function computes ab double result 1.0;

image text in transcribed

Use the following function to answer the questions given below. double exponent (double a, int b) { // This function computes ab double result 1.0; if (b 0) { result = result * b = b -1; } return result; } 1. Draw the graph path and show the statements associated to the basic blocks. 2. Find the cyclomatic complexity and list all alternative paths that can be used for defect testing. 3. For each path identified in (2), derive test cases and test data that can be used for defect testing. Identify potential defects, if any. Use the following function to answer the questions given below. double exponent (double a, int b) { // This function computes ab double result 1.0; if (b 0) { result = result * b = b -1; } return result; } 1. Draw the graph path and show the statements associated to the basic blocks. 2. Find the cyclomatic complexity and list all alternative paths that can be used for defect testing. 3. For each path identified in (2), derive test cases and test data that can be used for defect testing. Identify potential defects, if any

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions

Question

Describe the components of a workplace wellness programme

Answered: 1 week ago

Question

What tools might be helpful?

Answered: 1 week ago