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

Would u provide the exact differences of test case and test conditon 2)test case and use case 3)test suite and test scenara

4 Answers  


where do we store our test cases>?

7 Answers   TCS,


What is the V-model?

2 Answers  


What is Online gaming, payment gateway development, hosting and custom software development services.

0 Answers  


while reading srs document if you will get any doubt, what you will do?

7 Answers   IBM,






difference between development project & maintainance project

3 Answers   IBM,


What’s the difference between verification and validation in testing?

0 Answers  


Suppose you have production data copied into the test environment. What are the advantages and disadvantages?

1 Answers  


What is the diff betwn Functional nad regression testing and do u excute same test case or write new one for regression

9 Answers   Patni, TCS,


what is "test strategy"?

4 Answers  


What is TEST PLAN, TEST STRATEGY, TEST SCENARIO, TEST CASE, TEST SCRIPT? can any body give me definition with example.

1 Answers  


The company is developing a new piece of software. The application allows a computer user to use the print option of any existing application to save the output into an HTML file instead of printing. -Based on the scenario above, which test methods do you use to make certain that the new software will work properly with existing applications?

1 Answers  


Categories