14. How many test cases are necessary to cover all the possible sequences of
statements (paths) for the following program fragment? Assume that the two
conditions are independent of each other : -
…………
if (Condition 1)
then statement 1
else statement 2
fi
if (Condition 2)
www.istqb.guru
then statement 3

a. 2 Test Cases
b. 3 Test Cases
c. 4 Test Cases
d. Not achievable

Please explain this how to solve?

Answer Posted / suchita mulkalwar

2 test cases are required. for this

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If I have to write the test cases for any report & there is date box.then may I have to write only select date or have to write all steps required for selecting date

2068


Explain the functional testing?

678


can anybody help me how to write a test case for a program eg: c or C++ ,and also how to check their outputs

2094


"search"test cases on Linkedin website and how will you write test cases on it?

5691


can anyone please help me in writing Test cases for HRMS,ERP and for CRM Apllications...I am joined as a trainee.so i have to write test cases for these applications..Soo can anyone pls help me....mail id: bapuji.karyampudi@gmail.com....Please reply me guys.

2979






how to write testcase for the output of an program ****0 ***01 **012 *0123 01234

1321


What is test environment? Elaborate with example.

650


What are semi-random test cases?

865


What are the test cases for mouse?

856


What is transaction testing?

737


What are basic types of test cases?

701


can one defect be mapped to more than one test script in manual testing

2001


# A large IT company is in the process of revising salary structure for its employees. The salary will be on the basis of assessed performance of the previous year for all employee who have completed six months or more. # The rules for salary revision are provided below :- Performance level 1 : Increase existing salary by 30% Performance level 2 : Increase existing salary by 20% Performance level 3 : Increase existing salary by 10% Performance level 4 : Increase existing salary by 5% Performance level 5 : No Increase # For those who have not completed six months, provide a flat increase of 7.5% in their salary. In addition to above provide a special loyalty allowance of Tk. 800 to all employees who have complete THREE years with the organization. # Compute the minimum number of paths that you would require to cover the application and how many test cases would you require?

1990


1 Crystal Ball 1.1 Purpose This is a simple tool, for entertainment purposes only. 1.2 Scope Only for registered user. 1.3 User Interface Single page with graphic of crystal ball, and text box for typing question. User has to type her question in text box outside ball. Reports: - On ‘submit’, the system needs to access any one of the pre-stored responses at random and display in a graphical, visually appealing manner in the crystal ball. - Audio / graphical changes need to be built in, for added user experience enhancement, like music, sound effects, visual changes. Need to get details.

1652


How to write test case for this scenario. If the Zip Code field is populated, the system shall compare  the zip code value entered to the zip code value in  the Family Individual Information Tab

8524