Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can u any 1 please explain the below question and answer?
Given the following code, which statement is true about the
minimum number of test cases required for full statement and
branch coverage?

Read p
Read q
IF p q > 100 THEN
Print "Large"
ENDIF
IF p > 50 THEN
Print "p Large"
ENDIF

a) 1 test for statement coverage, 3 for branch coverage
b) 1 test for statement coverage, 2 for branch coverage
c) 1 test for statement coverage, 1 for branch coverage
d) 2 tests for statement coverage, 2 for branch coverage

Answer Posted / dmitry

Correct Answer is "B"

b) 1 test for statement coverage, 2 for branch coverage

1) Statement coverage - 1 test.

P must be > than 50
P+Q must be > than 100

All statements (8 rows) are covered (used).

2) Decision coverage - 2 tests

2.1 P must be > than 50
P+Q must be > than 100

All "TRUE"(YES) decisions (1 and 2) are covered

2.1 P must be < than 50
P+Q must be < than 100

All "FALSE"(NO) decisions (1 and 2) are covered

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between stlc and sdlc?

1092


What do we need to build a quality QC team ? a QC manager with all junior QCs or a QC manager with all senior QCs?

2108


What is quality center? How many built in tables does quality center have?

1295


What’s the difference between a bug and a defect?

1190


What are the advantages of waterfall model?

1125


what types of bugs will we find out in banking projects

2290


Write UI Test case, Integration Test case, Functional Test case & Performance Test case for the File Menu for MS-Word?

2683


What is mean by multi-threading testing?

2682


What is Dynamic Binding and Dynamic Loss?

2059


Relative to other technical groups in the company? Relative to your staff?

1928


Differentiate verification and validation?

1355


What is localization testing (l10n testing)?

1295


what are the advantages of manual and automation testing ? and which one would u term as efficent testing and effective testing ?pls do reply thankx in advance

1952


What is test driver and test stub?

1181


need answer interviewer will ask me about all project which i mention in resume or presently i'm working??please reply tomorrow is my interview

2082