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 / jyoti

Yeah , answer in D , since two question have been asked ,
and 2 branches we are covering , since statement coverage is
class, and Branch coverage that we are covering all if
statement and there are two if's

Please let me know if anybody finds this is wrong

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between white box, black box, and gray box testing?

644


What is bug priority?

831


what is the use of l10n testing?

1307


wht is Manual Testing Frame work

1659


Describe some staff conflicts you have handled.

1614






What are the advantages of black box testing?

665


What type of projects can include in Logistics Domain? and what is the type of domain for project which include Driving license renewal, Different type of title registration etc...

2534


How to integrate Bugzilla with QTP?

2284


Where we have to use perl scripting in Testing approach and its importance

1659


Can you explain tpa analysis?

627


What is white box testing, and what are the various techniques?

686


how will we change the server system time?

1799


WHAT IS OBJECT REPOSITORY? AND IT TYPES? HOW MANY TYPES OF ACTIONS ARE THERE IN QTP? CAN WE ADD NEW OBJECTS AND PROPERTIES INTO SHARED OBJECT REPOSITORY?

1455


What is an entry criteria?

652


what is test case management?explain in brief.

1545