Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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
fi
if (Condition 2)
then statement 3
fi
…………
a. Test Cases
b. 3 Test Cases
c. 4 Test Cases
d. Not achievable


Plz. Explain in Detail...
Thank you.

Answers were Sorted based on User's Feedback



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

Answer / paulo

Yo can prepare a set of input values to go trough both
conditions, that would be one test case.
You can prepare another set of values to take the false path
in condition1 (the only one that have statement when false)
i.e:
If x > y then X=1
fi
If f > v then F=1
fi
Test case 1 would be X = 3, Y = 2, F=3, V=2
Test case 2, would be x= 3, Y = 4, F=3, F=4
So the answer would be 2 test cases, and as far as i can
see, that would be the option A, that have a missed number

Is This Answer Correct ?    55 Yes 17 No

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

Answer / madhavi

we prepare 4 test cases for path coverage for this question.why becoz we have to find out number of possible ways for path coverage.

Is This Answer Correct ?    28 Yes 4 No

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

Answer / nithya

Path Coverage ensures covering of all the paths from start to end.
So the correct answer is 4 test cases.

Is This Answer Correct ?    12 Yes 2 No

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

Answer / jagadish

for path coverage we have to check all the paths its like
boolean expression, (true, true) is one path, (true, false)
is the second path, (false, true) is third path and both
false is the fourth path. so to cover 100% path coverage it
needs 4 test cases to achieve it. Please clarify if i am wrong.

Is This Answer Correct ?    22 Yes 14 No

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

Answer / anand

It is 4 test cases for the path coverage. The first condition has two path Statement 1 and Statement 2 (True and False). Same way the second condition also has two paths Statement 3 and nothing/null ( as there is no else for the second condition ) but it still is path (there is no statement but still there is a path compiler can take...)

Is This Answer Correct ?    5 Yes 2 No

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

Answer / mandokar

It requires only 2 test cases as in the question he
mentioned "path", if it was condition then the answer could
have been 4 as jagdish said.

Is This Answer Correct ?    5 Yes 5 No

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

Answer / sachin karla

actually in statement testing,what happens like,3 cases arise in the program and it proceeds as:
case 1:the '+' sign becomes a 'space'.
case 2:'%xx' becomes byte with hexadecimal value 'xx'.
case 3:other alphanumeric char map themselves.
So guys,think about it and make a proper testing over it..

Is This Answer Correct ?    1 Yes 1 No

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

Answer / hayk grigoryan

TC1 c1 true, c2 true, TC2 c1 true, c2 false, TC3 c1 false, c2 true

Is This Answer Correct ?    0 Yes 0 No

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

Answer / babu

3 Test Cases.

Is This Answer Correct ?    19 Yes 20 No

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

Answer / anwar sayed

If its dependent there would be 4 cases
and if it is dependent it would be 3 test cases

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More ISTQB Certification Interview Questions

Hi Everybody, I am planning to write the ISTQB certification in Toronto. Can any one send the ISTQB foundation level book for 2013 exam?

0 Answers  


Hi, I am Gayathri.I worked in Wipro Technologies..Now due to recession am working in tcs bpo for the past 6 months...I want to move again to IT industry...I want to do istqb certification...I want to know the ISTQB training centres in chennai and also i want to know about the scope after finishing this ISTQB Certification...Pls send me the details about this to my e-mail id boobalan87@gmail.com.If you want to help pls do this help for me

1 Answers  


Hi I want to do ISTQB foundation level certification.Can anyone pls tell where can i register for this and get the study material for this? Thnx. Neha

7 Answers   IBM,


DO YOU PROVIDE SOFTWARE CERTIFICATIONS?

1 Answers  


HI IAM SUMA AND I HAVE PASSED BSC IN 2005 AND MSC MATHS IN 2010 I JOINED FOR MSC MATHS IN 2005 (AFTER MY BSC)BUT I COMPLETED IT IN 2010 BECAUSE OF SOME PROBLEMS AFTER THAT I HAVE DONE TESTING MANUAL. SO IS THERE ANY POSSIBILTY THAT I GET TESTING JOB IN GOOD IT COMPANIES AFTER COMPLETING MY ISTQB CERTIFICATION PLZZZZZZZZZZZZZZZ REPLYYYYYYY

1 Answers  


Please send me the materials for ISTQB certification. My email ID is priya_irudayaraj@yahoo.co.in. Thanks in advance.

21 Answers   GE, Star,


hi..I am from ahmedabad and i want to take ISTQB this December.So pls tell me which book i should refer and sample papers?How much time i need to prepare for it?Those who have material pls help me out and mail me at tejashree_patil_2087@yahoo.com , And those who are from Ahmedabad and have taken this exam ,i vl like to share your knowledge. Thanks in Advance to all of you.. Tejashree

73 Answers   IBM, Ness Technologies,


Hai friends......I want to do ISTQB certification.Am in Navi Mumbai and i want to know abt the study centre and the course details for ISTQB in Navi Mumbai.Pls mail me as soon as possible

1 Answers  


thanks a lot... i visited the link tat u had mentioned... i am a 2010 BE passed out i am looking for testing jobs so am a fresher.. but i saw in the link tat 24months of exp in testing is required to write the examination... pls suggest me that is tat possible for me to write the exam....

1 Answers   ABC,


if any one is having istqb sample questions plz kindly post it to my mail id joldapke@gmail.com

5 Answers   ABC, IBM,


Hi, I want to take ISTQB Certification in the month of August. SO can any one mail me dump Questions and the required information to take the Exam. I dont anything about it.. Please do mail me @ adityapro@gmail.com

0 Answers  


hi friends,newly joined to this form i preparing for ISTQB certification can anybody help me on study material and sample question papers.......My email id is padma.bedampeta@yahoo.com Looking forward for your replies..... Thank u all in advance.....

3 Answers  


Categories
  • Cisco Certifications Interview Questions Cisco Certifications (2321)
  • Microsoft Certifications Interview Questions Microsoft Certifications (171)
  • Sun Certifications Interview Questions Sun Certifications (45)
  • CISA Certification Interview Questions CISA Certification (744)
  • Oracle Certifications Interview Questions Oracle Certifications (64)
  • ISTQB Certification Interview Questions ISTQB Certification (109)
  • Certifications AllOther Interview Questions Certifications AllOther (295)