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

Can any tell to create test data for SUM (calculation), Scenario is 0 to 9 digits are available as we see in the calculator, I want to certify that the sum of the two numbers are working fine by providing test data.

0 Answers   Cap Gemini, NIIT,


Write a test case for a chair to check whether it will last for next 10 years and check the quality of the chair and it’s durability.

4 Answers  


How to write test cases for payment gateway.

2 Answers   UHG,


What is the smallest number of test cases required to Provide 100% branch coverage? If(x>y) x=x+1; else y=y+1; while(x>y) { y=x*y; x=x+1; } A. 1 B. 2 C. 3 D. 4

1 Answers   ISTQB,


test cases for login window

1 Answers  






Apart from the normal functional test cases written, list out some out of the box test scenarios to test the 'Replace' dialog box in a Notepad

2 Answers  


1 Crystal Ball 1.1 Purpose This is a simple tool, for entertainment purposes only. 1.2 Scope Only for registered user. 1.3 User Interface Single page with graphic of crystal ball, and text box for typing question. User has to type her question in text box outside ball. Reports: - On ‘submit’, the system needs to access any one of the pre-stored responses at random and display in a graphical, visually appealing manner in the crystal ball. - Audio / graphical changes need to be built in, for added user experience enhancement, like music, sound effects, visual changes. Need to get details.

0 Answers  


Can any one please give me a test case for transaction of money thro' mobile phones. I really need it soon. i need the test case in ieee format.please anyone help me.

0 Answers   HCL,


write a test case flipkart login page

0 Answers  


pls i want test cases for oss? whts the process of oss testing

0 Answers   TCS,


What are the possible test cases for a palindrome.It must be starting with alphabet and its length is 100 .It should accept alphanumerics only.It should take only 100 numerics to the textbox

0 Answers  


Below is a user story where Dave, a dispatcher, wants to use a console system to talk to Fred, a person in the field. Create a list of test cases to verify these requirements have been properly met. User Story 3004 - Dave wishes to call Fred using a phone. Dave needs the ability to dial digits for an outbound call to Fred. The dial pad will have a display area for the digits being dialed. The dial pad will have the following functionality: Recall Dial Tone, Recall Last Number, Backspace Current Digit, and Phonebook (Contacts) Access. The dial pad must be touchable and the “Dial” button will be used to initiate the call. A prototype version of the dial pad is attached below. The dial pad will have the following configurable properties: Display Color, Display Font, Foreground Color, Location and Size.

0 Answers  


Categories