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

In what situation would you want to parameterize a text verification check?

2095


what are the prerequisite conditins to test clientserver and web applications

2080


what is e-tester?

2522


Hi Friends, Just One Month Back I was Join in Small Company as a Testing Eng.I have Six Month Exp. In this Company all my team memb.r fresher & PM give responsibility on us to prepare all require QC doc. for our new project.So I need ur help in this matter .How Can I start my work and Which Doc.I start to collect & From Where I get Detail Information all abt these thing. Thanks to all friends who give reply to this. Suyog

1893


any one giv test cases for wordpad using equivalence class partioning

3065


Explain some techniques for developing software components with respect to testability.

3550


can u plz give an example for regression testing with example.

2045


how will you test a wine filled bottle along with 100 glasses

2281


List the considerations in developing testing methodology

6666


In our project, we use Withdrawal Indent, we are confused to use heading as "Withdrawal Indent" or "Withdraw Indent". Please suggest me which one to use ASAP, Thanks in advance

1967


What will be your approach if a particular script in Load Test fails?

2213


user id @ yahoo.com (or) yahoo.co.in (or) gmail.com.... etc

2339


According to RBI rule how much money can be transferred through online banking at one time...?

2846


What is the difference between system testing and integration testing?

1108


Please anyone give answers for all below questions and help ? realtimers please and please share your knowledge.lot of questions left unanswered.

1914