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 Wound Fixing?

1873


can any body tell me what is the process of between after getting a documents and testcase writing.

1513


Explain the sub-genres of performance testing?

685


What is the big deal about ‘requirements’?

717


What is Registry?

1649






Have you worked in UDAP (Credit Card act 2009) project?What did you test in Billing & Payment modules?

1772


functional testing test cases for transfer funds ?

1189


Give me sample test cases for smoke testing

8672


Suggest some book to learn more test case???

1354


How we will do Memory Testing? There is any tool to do that testing and to whome this testing to be performed?

1499


Katari your questions was really helpful could you please send the questions and answers with them . Can anyone sends the top 30-40 question and answers for the interview purposes

1463


Unix question: 1)command to print a list of files containing a particular word. 2) what does a .profile mean. 3) what is a file server? 4) Command to move towards left in vi editor explain grep and find commands using example.

2067


I have cleared written test and one Technical round in one company? now i have to face an Client Round through telephony? Any body have faced client round, how will it be , wil they ask technical or is it only formality round? im nervous, plz let me know wat all they may ask? i have this round on monday?

2449


What are differences in testing a client server and a web application?

1504


Hi Friends, This is Chennamsubbaraidu.i Have 2+ Years Realtime Exp in Manual Testing.Am Looking to Shift From My Present Company.Please if u Have Any Openings in Your Company's, Please Let Me Know.Any Location Prefer.Thanks.

1420