Given the following code, which 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, 3 for branch coverage

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



Given the following code, which is true about the minimum number of test cases required for full sta..

Answer / toshimathur

B

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Test Cases Interview Questions

In a log in page what will be test procedure, test scenario, test description & test steps?

1 Answers  


What are the Test Cases for an email id for username and password?

2 Answers  


What are the test cases for mouse?

1 Answers  


Write test cases for Wifi enabled devices(Ipad, Iphone, Laptop) Note: Test case should not cover basic functionalty like connect or disconnect. Test case should have out of box thinking & simulation of errors.

3 Answers   Amazon, SCDL Symbiosis Center for Distance Learning,


Why does the boundary value analysis provide good test cases?

1 Answers  


Please share all possible positive and negative test cases for SQL reporting services.

0 Answers  


User registration form so many details will be there to enter like Username,Phone No,Email id ect.how do we write test cases for that? in one textbox i have to write all the test cases and go to next textbox

1 Answers  


Explain the functional testing?

1 Answers  


This was asked to me recently in Microsoft interview How would you do DOS copy command testing

1 Answers   Microsoft,


test cases for bus transport (TNSTC)

1 Answers  


1.1 Purpose This tool is also a simple tool, but will be graphics- intensive, and will access the 3 databases (card databases) used in Tarot. 1.2 Scope Only for registered user. 1.3 User Interface - No questions asked, parrot pulls out tarot card - Inside Parrot application, User just have to click on a link saying ""XXXX"" to activate the tool. - Shown is the card of the day, from pack of Tarot cards(78 in number) with fixed graphics, animation, audio. Output: - Graphic-rich display of randomly selected card with detailed meaning, with links to tarot tool. - Graphics: Flying / walking parrot, emerging and choosing a card, displaying the same, and continuing to interact based on card meaning. - The cards also need to carry a brief 1/0 meaning, which will trigger a 1/0 behavior from the parrot (sympathy/making fun/crying or congratulating/smiling/winking)

1 Answers  


How to write test case for this scenario. The First Name data entry field shall be removed from the existing Contact Information screen

1 Answers  


Categories