How many test cases are necessary to cover all the possible sequences of statements (paths) for the following program fragment? Assume that the two conditions are independent of each other:

if (Condition 1)

then statement 1

else

statement 2

end if

if (Condition 2)

then statement 3

end if

A. 2 Test Cases

B. 3 Test Cases

C. 4 Test Cases

D. Not achievable






Answer / toshimathur

A

Is This Answer Correct ?    0 Yes 0 No

Post New Answer




More Test Cases Interview Questions

WHAT IS THE MEANING OF RISK BASED TESTING WITH EXAMPLE pls this is urgent Thanks in advance

5 Answers   3M,


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

1 Answers  


write a test case for triangle?

3 Answers   HCL,


How does one write Test Cases?

7 Answers  


Write a test case scenario for Web-based address book?

0 Answers  


How many test cases u will write for Acceptance testing?

0 Answers  


can one give the test cases for Installation Testing

1 Answers  


What is p0,p1,p2,p3 in software tesing

5 Answers  


Analyze the following highly simplified procedure: Ask: "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" ELSE Say: "That will be £19:50" ENDIF ELSE Say: "That will be £9:75" ENDIF Now decide the minimum number of tests that are needed to ensure that all the questions have been asked, all combinations have occurred and all replies given. A. 3 B. 4 C. 5 D. 6

1 Answers   ISTQB,


While creating test data for testing an application, where exactly test data should be crated as in excel file or can we crate test data in database ?

2 Answers   Satyam,


Let me knw the testcases for opening an account and for billing in shopping malls..?/?/?

3 Answers   Semantic Space,


What we do when the Requirements are continuously changed?

2 Answers   Infosys,




Categories