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

Answer Posted / toshimathur

B

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can you tell me how to write test cases for payments, receipts, inward clearing, outward clearing, A/c statements ?

3576


Describe to me what you see as a process. Not a particular process, just the basics of having a process.

6061


What is the logic testing?

784


Why is it that the boundary value analysis provides good test cases?

791


What are the Test Cases Comes under Regression Suite?

510






HOW TO WRITE TEST CASES FOR MEGHA MENU DROP DOWN BOX.

2275


IN MY APPLICATION SOME WINDOW IS THERE IT CONSISTS OF SOME 25 LABLES IN THOSE FOR THE ALREADY SELECTED ONE IT WILL SHOW THE BACKGROUND COLOR IS YELLOW WHILE CHECKING IT SHOULD CHECK THE ALL LABLES WHICH ONE IS HAVING YELLOW COLOUR backcolor=SwfWindow("ALTAIR").SwfWindow("Load Wafer").SwfLabel(" ").GetROProperty("backcolor") SUPPOSE LIKE DS IT WILL BE THERE THEN FOR THAT SwfLabel(" ") inside this how to specify is my doubt because i have to check all the 25 labels plz explain it how to specify that

1983


how to test stand alone programs?

2100


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)

1483


Can you list down a few characteristics of a test case?

715


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

1170


What is ramp testing?

676


How does the size of the OPCODE field limit the number of operations? Give an example to support your explanation?

1956


how to write testcase for the output of an program ****0 ***01 **012 *0123 01234

1327


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

2210