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

answer is B

Is This Answer Correct ?    18 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Genarally what we have to tell. If anybody asks in the interview. what are challenges u faced in the Project and what are the Risks u faced in the Project, Anybody can suggest it ......Thanks in Advance....

1715


What are the possible test scenarios around AVS check of any credit card? (Testing through payment gateway online) (What are the fields we should check while checking AVS and CVV)

1116


1...DIFF BETWEEN QTP AND WIN RUNNER? 2... CHECKPOINTS AND EXPLAIN EACH OF THEM? 3...WHY IS STEP GENERATOR? 4... WHAT IS THE DIFF BETWEEN FUNCTIONS AND SUB ROUTINE?

1447


What is a testing process / lifecycle?

693


why testcases are written and what is the importance?

1107






1)What are the QA procedures followed 2) Write test cases on a weatherreport.com web page that has only two dropdown and a submit button, Fist drop down is a countries and second is metros in the selcted countries.When proper selection si doen and submitted it shows weather report of that metro.? 3)Write test cases on Mobile Alarm Module? 4)Write test cases on Company Water Bottle?

2699


What is a test server?

725


Do submit teststrategy to customer if yes at what time

1547


what is API 2.0?

1593


How can you do the scalability testing?

696


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 ?

1535


How quickly we need to fix the bug?

695


Hi i am looking for Test Engineer Job, i have done the course, but i don't have work experience on it, Is it So important to have real time Exp or knowledge is enough? and please let me know like how i can improve for the interview. You can send me a mail on this id: rashmi_vastred@yahoo.co.in

1620


Which are the different tests for apparel testing?

683


1.Tell me negative test cases for notepad 2.Tell me the factors for for writing severity based test cases

5536