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

it wud be 2 testcasese for statement coverage and 2 for
branch coverage
2 for statement coverage bcaz two seperate questions being
asked
p+q>100 and p>50

and its two branches with NO hasnt been covered....

so, answer is 2 testcasese for statement coverage and 2 for
branch coverage

Is This Answer Correct ?    3 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the queries mostly asked in testing ? give me some examples.

1446


what is a horizontal and vertical matrix explain with examples

2110


What is defect validity ratio?

6764


what is test case management?explain in brief.

1532


Beyond the customary advantages of having a testing group, what are the benefits does a company receive from a well run, automated testing group?

2991






How did you do unit testing in your project?

696


What ishigh severity, low priority bug?

681


What is neutral test case?

1808


Can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks

1491


What is the difference between Sleep and wait in winrunner what is integration testing and types of testing present what is system testing what is data driven testing what is functionality testing if requirements are given to you then how do you write the test cases for it Account number = Ok cancel For above given form the valid account number starts from 1 to 1000 so is it necessary to input the 1,2,3 ….998,999,1000 test cases to check the conditions of valid account numbers I,e is it compulsory to write 1000 test cases for the above form

2129


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

1676


what is the difference between section & test feature in test case documention?

1587


KINDLY FORWARD ME THE INTERVIEW QUESTIONS & ANSWERS FROM REAL TIME POINT OF VIEW FOR 1.5 YEARS EXPERIENCED CANDIDATE. MY EMAIL ID IS sky_bird433@yahoo.com

2304


Hi friends I am kranti completed my IT diploma in 2005 & after that complete my software testing course. Now I am working in small software form as software tester. I have 2 + year experience in manual testing. Now I wan to change company. Plz told me is there any effect that I can not have any degree although I have 2 + experience ?

1529


What criteria would you use to select Web transactions for load testing?

1639