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



How many test cases are necessary to cover all the possible sequences of statements (paths) for the ..

Answer / toshimathur

A

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Test Cases Interview Questions

How to write test cases for manual testing? What are the main syntex for writing test cases for Junit?

0 Answers   Wipro,


what are the testcases for square

4 Answers  


How does one write Test Cases?

7 Answers  


I want 100 test scenario for gmail

0 Answers   TCS,


what all are available test cases for Search engine NLP (Sixth sense).

1 Answers   HCL, TCS,






If I have written test cases for any application:there are 70-80 test cases and steps for writing test cases are common in some TCases.then May I have to write the repeated steps or May I write Repeat the steps of TC id so and so

3 Answers  


Tell me 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

2 Answers   Siemens,


(questions asked in interview)hi every one can any one please answer to this questions.these questions were asked in an interview.i have another interview next week . 1.when the time schedule is tight how will you approch the testing,and the relese is nearing and we need to finish testing how can we follow in that case.do we need to exicute all the test cases or can priortise and leave some to next relase. 2. when a new feature is added to the existing application we need to add new test cases but after that do we need to change all the existing test cases and while running do we need to exicute entire application test cases or only the new feature test cases and related new feature test cases. 3.do you have any situation where you have to write and exicute the test cases same time, how will you follow.does it happens in real time. 4.example of bug which is not reproducible.like tester say that there is bug and developer say no can some example of such bugs. 5.during regression testing some times do we need to add new some additional test cases to test that bug.

3 Answers  


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

5 Answers   3M,


can anyone please send me the sample testcases on how to write it into the testtemplates

3 Answers  


write test cases on file open dialog box in notepad

0 Answers  


write the system testcase and functional testcase for the below scenario scenario: view the balance in online account

5 Answers   CTS,


Categories