IF A > B THEN

C = A – B

ELSE

C = A + B

ENDIF

Read D

IF C = D Then

Print "Error"

ENDIF

A. 1 test for statement coverage, 3 for branch coverage

B. 2 tests for statement coverage, 2 for branch coverage

C. 2 tests for statement coverage. 3 for branch coverage

D. 3 tests for statement coverage, 3 for branch coverage

E. 3 tests for statement coverage, 2 for branch coverage






Answer / toshimathur

B

Is This Answer Correct ?    0 Yes 0 No

Post New Answer




More Test Cases Interview Questions

How to write test case for this scenario. The Contact Information screen shall be displayed to the user during Case Update

0 Answers  


If I have written test cases for any application:there are 70-80 test cases and steps for writing test cases are common in some TCases.then May I have to write the repeated steps or May I write Repeat the steps of TC id so and so

3 Answers  


What is the Difference between Testing Types and Testing Techniques

4 Answers   ISTQB,


write test cases for test cases...?

9 Answers   TCS,


If I give u refill which cost is 5000 & I ll give u refill then how u find that refill cost is right or wrong? & that refill is new in market.

0 Answers   CybAge,


If the pseudo code below were a programming language ,how many tests are required to achieve 100% statement coverage? 1. If x=3 then 2. Display_messageX; 3. If y=2 then 4. Display_messageY; 5. Else 6. Display_messageZ; 7. Else 8. Display_messageZ; A. 1 B. 2 C. 3 D. 4

1 Answers   ISTQB,


How to write test case for this scenario. The data entry field for city shall be removed from the screen

1 Answers   SpinSci,


1.If there are so many test cases to be run suppose (100).How will we run those test cases.(using batch) 2. How will we perform over riding in QTP can any one please give me script. thanks

0 Answers   TCS,


can u tell me how do we writetestcases for perfomance,load,And stress?

2 Answers   IBM, Wipro,


how to make test case for anolog voice logger?

0 Answers  


Is there any formula to find the number of test cases needed

4 Answers   Satyam,


write a test case for yahoo compose page?

0 Answers   CMC, Cap Gemini,




Categories