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

i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

1582


Explain about PET Model?

2231


What is bidirectional traceability ??? and how it is implemented

1684


What are the main key components in Web applications and Client Server applications? and their differences?

1485


What are the modules of quality center?

651






how to test ecg machine?

1361


If client give you a project then which testing you will perform first

705


Write all combinations of test cases for calculater on + symbel

1800


What is the difference between static testing and dynamic testing?

641


What is the difference between a defect and a failure?

642


What is the difference between code walkthrough and code review? What is the difference between walkthrough and inspection?

2489


To specify the test artifacts involved in testing.

1641


what is test case management?explain in brief.

1532


1. what exactly is heuristic checklist approach for unit testing ?

2204


What is unit level testing?

642