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

if p=55 and q=40 then?

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

difference between change management and configuration management

1569


What are the types of maintenance?

595


I have 6 months experience as project tarine and one and a half year experience as software engineer.Should i write taht my total experience id 2 years.

1485


What is error cusing tecnique

1488


What are the different ways of doing black box testing?

642






What is a defect age?

635


what is the function generator?

1698


write test case for gmail sign up page?

3228


Write test cases on duster

4226


Why do we need different environments and different data? What is the other name for environment? Justify your explanation ? real time experts pls xplain?

2351


can anyone help me regarding testing patterns?

1561


What is a testbed in manual testing?

949


I have an UI issue "please fill out this field" pop up in firefox browser keeps scrolling with the page is it valid???

1434


Describe Testing Decomposition?

702


Tell some examples of bug severity and bug priority?

627