What is the smallest number of test cases required to Provide 100% branch coverage?

If(x>y) x=x+1;

else y=y+1;

while(x>y)

{

y=x*y; x=x+1;

}

A. 1

B. 2

C. 3

D. 4

Answer Posted / toshimathur

B

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi Team, I have two scenarios ,only one step alone deference betweeen them and preconditions of Test scenarios are defferent . In the above sutuation , are we going divide test cases into two or can we club into them into a single. Regards seshu

1746


Write test cases to test a browser app

1226


how to write a test cases for courier offices?

3337


Explain the integration testing?

671


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.

2941






Explain which test cases are written first black boxes or white boxes?

643


1 Tarot 1.1 Purpose - Tarot tool will duplicate the tarot-reading process for the user online. - Tarot is a craft that uses a deck of 78 cards to predict a user’s past, present and future. - The cards are picked by the user and arranged in a specific spread, which represents points in his past, present, and future; based on the meanings of the cards selected, interpretations are given. 1.2 Scope Only for registered user. 1.3 User Interface User Interface: 1. Question – This is only for user experience, and has no bearing on the formulae / process. Simple long text box. 2. Selection of field – radio button selection of 1 of 3 choices(Love, Career, Personal), which affects 1 of 3 card- meaning databases to be used. After selection, the unselected databases do not affect or interact with the system. 3. Spread Selection – radio button selection of 1 of 3 choices(Celtic Cross, Horse Shoe, Simple 3 Card). This determines the number of cards being picked and the specific spread database to be used. This also affects the specific report format being used, as well as the card- selection GUI. 4. Card Selection – based on the input 3, a specific layout is shown where the user needs to identify X number of cards (X also determined by input 3) which are then shown in the spread. Every card selection identifies the spread position constants (A, B, C, etc) with specific variable values (Card numbers) creating an array. Report format will display on a separate new page, in the following sequence – - Statement of question asked - Selection of field - Selection of spread - Detailed description of position data, positions identified as per spread selection - Card meaning as picked in field selection 1.4.5 Interfacing/Sourcing Details 1.4.5 Rules and Conditions - Data needs to be calculated for all fields, but only a maximum of 3 cards data should be shown in the free report. For the rest, a payment would be required. - Payment reports not in phase 1 - The report needs to be emailable (so functionality to convert to text file / html document should exist, which will then be emailed to the user’s email address).

2214


how many test cases do u need to ship a product?

1149


How many test cases u will write for Adhoc testing? How many test cases u will write for Alpha testing? How many test cases u will write for Beta testing? How many test cases u will write for Release candidate testing? How many test cases u will write for Product release testing? How many test cases u will write for Functional testing? How many test cases u will write for Non-Functional testing? How many test cases u will write for Integration testing? How many test cases u will write for System testing? How many test cases u will write for Component testing? How many test cases u will write for Release testing? How many test cases u will write for Load testing? How many test cases u will write for Stress testing? How many test cases u will write for Black box testing? How many test cases u will write for White Box testing? How many test cases u will write for Performance testing? How many test cases u will write for Automation testing? How many test cases u will write for Compatibility testing? How many test cases u will write for Regression testing? How many test cases u will write for Endurance testing? How many test cases u will write for System Integration testing? How many test cases u will write for Boundary value testing? How many test cases u will write for Usability testing? How many test cases u will write for Walk through testing? How many test cases u will write for Sanity testing? How many test cases u will write for Smoke testing? How many test cases u will write for Installation testing? How many test cases u will write for Soak testing? How many test cases u will write for Volume testing? How many test cases u will write for Security testing? Write test cases for Multi path testing? How many test cases u will write for Multi path testing? Write test cases for Dynamic Capacity Expansion (DCE)? Write test cases for Dynamic Volume Expansion (DVE)? Write test cases for Dynamic Raid Expansion (DRM)? Write test cases for Drive failure? Write test cases for Controller Failover? Write test cases for Cable pull? Write test cases for RAID Controller?

1908


Explain the state testing?

613


Give me a example that differentiate Test case Procedure,Test case Scenario,Test case Discription & test steps.

2165


how to prepare a test case for online restaurant table reservation system. plz give an answer ASAP, email at suja_rvndrn@yahoo.co.in

5129


Explain the sanity testing?

666


hai im finished software testing course im technicaly strong but yet now no opportunities come to me.if any opportunities please send to my mail id my mail di is sumathi11685@gmail.com

1788


What are the detailed test cases for Vacations Rental websites (Admin,Traveler,Rental owner)?

2450