If the pseudo code below were a programming language ,how many tests are required to achieve 100% statement coverage?

1. If x=3 then

2. Display_messageX;

3. If y=2 then

4. Display_messageY;

5. Else

6. Display_messageZ;

7. Else

8. Display_messageZ;

A. 1

B. 2

C. 3

D. 4



If the pseudo code below were a programming language ,how many tests are required to achieve 100% st..

Answer / toshimathur

C

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More Test Cases Interview Questions

What is component testing?

0 Answers  


How would you test a cup and or pencil?

2 Answers  


How many bugs have u found in your project?

3 Answers  


what are those parameters or matrixes for tesing a software user interface?

2 Answers  


pliz anyone give suggest me the test cases for shorting numbers in asc/desc order.

4 Answers   IBM,






How to write test cases on for Logging management?

4 Answers   ABC, TCS,


Explain the system testing?

0 Answers  


While writting Test Cases test testers have to write what test inputs/data he/she is going to use

2 Answers  


How to write test case for this scenario. The Contact Information screen shall be displayed to the user during Case Create (Local Only),

1 Answers  


hi iam working in HCL as a fresher n iam dg automation testing i am going to give client demo i did some 7 scripts i want to call all those in some new page in QTP I KNOW CALL THE EXISTING ACTION N COPY OF ACTION if we use any of these options while running it will show the whole script but is there any other method while running it should not show the whole script it will show only the calling lines plz give me detailed explanation to ds i need reply fast plzz

2 Answers   HCL,


How to create Test Data? What are the Fields in Test Data. Please any one specify the format of Test Data?

3 Answers  


There is French dictionary and if you want to check it in English and there is no documentation available then how you will test it and write a test case and Test scenario on it.

0 Answers  


Categories