GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Testing  >  Test Cases
Go To First  |  Previous Question  |  Next Question 
 Test Cases  |  Question 2 of 248    Print  
for a triangle(sum of two sides is greater than or equal to the third side),what is the minimal number of test cases required.

  
Total Answers and Comments: 20 Last Update: July 18, 2008   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
  Sorting Options  
  Page 1 of 2   « First    1    2    >     Last »  
August 22, 2005 02:36:31   #1  
sanjeev Chawla        

RE: for a triangle(sum of two sides is greater than or equal to the third side),what is the minimal numb...
The answer is 3 
 
1. Measure all sides of the triangle. 
 
2. Add the minnimum and second highest length of the triangle and store the result as Res. 
 
3. Compare the Res with the largest side of the triangle.

 
Is this answer useful? Yes | No
September 21, 2005 15:56:29   #2  
Rekha Basu        

RE: for a triangle(sum of two sides is greater than or...
Here are all the positive Test cases:test case#1objective:Verify that Given object is a Triangle,should have only 3 sides.that means not<3 & not>3test case#2objective:Verify that None of the 3 sides length is lessthan or equal to Zero.Test case#3Objective:side1 >= side2+side3test case#4Objective:side2>=side1+side3Test case#5Objective:side3>=side1+side2
 
Is this answer useful? Yes | No
October 18, 2005 13:03:10   #3  
rashmi ranjan nayak        

RE: for a triangle(sum of two sides is greater than or...
generally , we will calculate the the number of test cases that depends on the perticular module and its complexity.minimum number of test cases=(number of inputs)multiply(1.6) (approx. calculation)
 
Is this answer useful? Yes | No
November 06, 2005 13:41:01   #4  
Seshagiri        

RE: for a triangle(sum of two sides is greater than or...

the minimum number of test cases = 1.6 * number of inputs sounds ridiculous to me.

For any given three points (input size = 3 ? ) to test if they form a triangle or not, the following two tests are SUFFICIENT.

1. Measure distance between the points, taking two points at one time. So you will have 3 values of length, none of them should be zero.

2. All the three points should not fall on a same straight line. To test this, measure the angle subtended by two points at the third point. You will get three values of angles. None of them should be 180 degrees.


 
Is this answer useful? Yes | No
March 09, 2006 13:43:36   #5  
mrgreekgod Member Since: February 2006   Contribution: 28    

RE: for a triangle(sum of two sides is greater than or...
Consider the triangle has three sides like a,b,c:-Obj #1: Side "a" length should not be "Zero"Obj #2: Side "b" length should not be "Zero"Obj #3: Side "c" length should not be "Zero"Obj #4: Side "a" + Side "b" should be equal to Side "c"Obj #4: Side "b" + Side "c" should be equal to Side "a"Obj #4: Side "a" + Side "c" should be equal to Side "b"
 
Is this answer useful? Yes | No
April 07, 2006 07:29:24   #6  
sunil        

RE: for a triangle(sum of two sides is greater than or...
yr question is wrong... the sum of two sides cannt be equal to trird side... its always  greater than third side
 
Is this answer useful? Yes | No
April 26, 2006 10:12:55   #7  
Amit        

RE: for a triangle(sum of two sides is greater than or...
Your question is wrong. addition of two side is not equal to third side. addition of the square of two sides is equal to square of hypotenuse i.e. right angle triangle. Two test case is sufficient for this.
 
Is this answer useful? Yes | No
April 30, 2006 15:19:50   #8  
mark pardue        

RE: for a triangle(sum of two sides is greater than or...
I know the distance of two sides of a triangle. How do I determine the length of the third side?
 
Is this answer useful? Yes | No
July 11, 2006 16:14:46   #9  
Wanda Shattuck        

RE: for a triangle(sum of two sides is greater than or equal to the third side),what is the minimal numb
sanjeev Chawla Wrote: The answer is 3 
 
1. Measure all sides of the triangle. 
 
2. Add the minnimum and second highest length of the triangle and store the result as Res. 
 
3. Compare the Res with the largest side of the triangle.


 
Is this answer useful? Yes | No
March 29, 2007 07:39:08   #10  
muthukumar        

RE: for a triangle(sum of two sides is greater than or...

it depends on the triangle .

for any triangle : La +Lb+Lc = 180 [deg]
a<>0 ,b<>0 c<>o
a,b,c - should not be in same line

a=b=c [if equilateral triangle ] and a+b=b+c=c+a
a+b>=c [always]
[a2 +b2]=c2 [ right angle triangle


 
Is this answer useful? Yes | No
  Page 1 of 2   « First    1    2    >     Last »  


 
Go To Top


 Sponsored Links

 
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape