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

Explain the difference between severity and priority.

676


Write a Test scenario for Outlook Search functionality.

2595


Name three reasons why the tester may choose to record in Context Sensitive mode.

1865


How do you test a web application for dump and deaf??

1591


What are the benefits of creating multiple actions within any virtual user script?

1716






what is independent question and what is retriewing and what is problem of severity.

1418


Can you explain the pdca cycle and where testing fits in?

775


HI, This question is Investment Banking domain related Question. I was asked in an Interview to tell the 5 test cases for Equity,Bond,Futures and options. Please help.. Pragya

3879


What are the different strategies for rollout to end users?

722


can anybody send the project you have tested with the clear descriptions,and recent bugs u found in that

1693


What is difference between cmmi and cmm levels?

686


i have 2.5 years of experience in manual testing and qtp. can anyone say me what kind of questions do they ask on manual testing and qtp.

2974


Explain severity with example and expalin each example?

3688


What are testing techniques? What is difference between general and specific?

1631


hi this is chik here iam showing my current project ERP and am prepair in hr model please tell me details about it and what all function test in hr model and give me some test caserelated to this module.Please tell me am faceing lots of problem in interview am not able to explain in interview please help me out my id is chiku_69@yahoo.in

1529