Q) If pseudo code below a programming language. what test
case s are
required to achieve 100% statements coverage
If x=3 then
display_message x;
If y=2 then
display_message y;
else
display_message z;
else
display_message z;

Answer Posted / mudaseer

action

please enter value of x

enter x=3 then

expected result

it should display x

please enter value of y

y=2

expected result it should display y

if x=other than 3 or y is other than 2
expected result

it should display z


Is This Answer Correct ?    9 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you do system testing at any stage of sdlc?

657


What is six sigma?

739


why testcases are written and what is the importance?

1102


How will you do beta testing?

633


How do you perform configuration management with typical revision control systems?

1642






Can you explain the elementary process?

652


Hello testers I am an Bsc Hotel mgmt Degree holders but now am doin my software testin programme, side by MCA Master degree an have 6 months exp i testing in company.. i want to change my CV according IT based. so can anyone help me with sendin any sample CV of urs.. do me this favour it wil be very helpful for me prepare CV for interviews....

1687


What is sanity?

630


When we are recording in WinRunner and interact with the AUT, what does WinRunner do?

1589


i heard that mainframe testing is diff from other environments & has lot of keyboard input????pl clarify my doubt & let me know in what way its diff??

1627


Hi there, I am new to the world of testing. Is there any place where I can have a look at an actual specification documents or test plans or test cases. This will help me in generating a level of confidence. Looking forward to your replies

1451


Give me an example of something you tried at work but did not work out so you had to go at things another way.

1638


what is the relation between all tabs in quality center & explain the testing process in quality center with tabs?

1579


Hi, Can anyone suggest a test case writing technique for the below scenario. 1. User draws a lines on the image 2. User selects the lines and right clicks ( Measuremnts like distance between the start and the end point, coordinates of start point and coordinates of end point) 3. User selects one of the measurement Measurement is displayed Just want to highlight, i am looking for a test case writing technique for above scenario.

1581


Q) Create Preffered customer: As a customer when i purchase more than $5000 in goods since my first purchase, I become a preffered customer so that i can receive the benefits associated with that status.

1917