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

how to write test case for check box like check boxes in gmail and yahoo inbox

1 Answers  


how can write testcase for admin role? can u tel me detail

1 Answers  


build 1 bug is raised and it was closed by developer and build 2 is released in build 2 also same bug raised what is the satus of that bug. 1>reopen 2>open 3>new 4>defered

14 Answers   Accenture,


hi, please anyone write test case for "Print" screen

1 Answers  


Suppose that you're running tests on windows calculator and find that 1+1=3, 2+2=4, 3+3=7, 4+4=8, 5+5=11, 6+6=12. write a bug title and bug description that effectively describes this problem.

4 Answers   Manhattan,






testcases for the additon of 2 numbers write negative and postive cases

8 Answers   CoStrategix, Societe Generale,


Can any1 tell me how to do and Integration test design and test cases for Order Inventory system for use cases. ALso how is that going to differ from System Testing. The system is similar to amazon.com online ordering system and you can place order by calling customer call center.

0 Answers  


Hai, Could anybody please let me know, how to calculate the number of test cases required to test a program. Please provide me the answer for the following question: “What type of ticket do you require, single or return?”IF the customer wants ‘return’Ask: “What rate, Standard or Cheap-day?”IF the customer replies ‘Cheap-day’Say: “That will be $11:20”ELSESay: “That will be $19:50”ENDIFELSESay: “That will be $9:75”ENDIFNow decide the minimum number of tests that are needed to ensure that allthe questions have been asked, all combinations have occurred and allreplies given. a) 3 b) 4 c) 5 d) 6

1 Answers  


write a test case for car

2 Answers   Impact Systems,


what is difference between GUI Map and GUI Map file

5 Answers   Incotec,


How to write test case for android application,alarm clock,LCD display screen. And after seeting alarm mobile get switch off how to write test case..

0 Answers   Amazon,


Dear Friends, please send me some links where i will get all type of web driver programs.

1 Answers  


Categories