wirte the test cases for triangle

Answers were Sorted based on User's Feedback



wirte the test cases for triangle..

Answer / vikas

Assume that the prg takes inputs as 3 sides of triangle :

1. Enter 0 0 0 : Error : no triangle can be made
2. Enter -1 -1 -1 Error : no triangle can be made -ve values
3. Enter 1 0 x : Error : no triangle can be made . only
numbers and no alhpabets
4. Do not enter any values : Prompt to enter valid values
5. Enter 0.000000000000001 , 1000000000000,1000000000000 :
Triangle should be made (Boundary value)

6. And the most tricky
Enter 1 2 4 : Triangle can not be made . Summation of 2
sides should always greater than third value . 1+2<4 . So
triangle can not be made
7. 2 2 2 : Equilateral triangle
8. 1 2 2 : Isoscelous triangle
9. Test with very small values , very large values and
combinations of both .

Is This Answer Correct ?    68 Yes 7 No

wirte the test cases for triangle..

Answer / ravi

Some more possibilities r there,
like sides u can also write TC for the angles

Is This Answer Correct ?    8 Yes 3 No

wirte the test cases for triangle..

Answer / minni


First check whether it is triangle or not by "any two sides
sum should be greater than third side"
check if 3 sides are equal
check if a NE to b NE to C
check if any two sides are equal

Is This Answer Correct ?    8 Yes 10 No

Post New Answer

More Manual Testing Interview Questions

what is mean by defect resolution and its use??

1 Answers   SoftTech,


What are the different test techniques used in functional testing?

0 Answers  


What r the types of Test case design techniques

15 Answers   TCS, Wipro,


Could any one explains what is Significans of V MOdel? Why not it is called as W model or some other X model? Is there any specifi Answer for this Qustion.

4 Answers  


What is the sdlc? what is the mannual tester roles? Write test case............? Sqlquerries...? How many test cases do you write down  perday.........?

2 Answers  






what s test block ratio? please any one answer me..

0 Answers   Wipro,


wat is the differece between three tier and two tier application

5 Answers   AZTEC,


How test case is differ from test plan .give an suitable example

5 Answers  


What is scalability testing

8 Answers   FSS, TCS, WebTekLabs,


How do you scope, organize, and execute a test project?

0 Answers  


what is the diff b/w system testing & end to end testing

1 Answers  


Could any body tell me about 'Defferred test'?,please. when will we use 'Defferred test'? Who will use it?

4 Answers  


Categories