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
What is the difference between white box, black box, and gray box testing?
What is bug priority?
what is the use of l10n testing?
wht is Manual Testing Frame work
Describe some staff conflicts you have handled.
What are the advantages of black box testing?
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...
How to integrate Bugzilla with QTP?
Where we have to use perl scripting in Testing approach and its importance
Can you explain tpa analysis?
What is white box testing, and what are the various techniques?
how will we change the server system time?
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?
What is an entry criteria?
what is test case management?explain in brief.