Test Cases for Finding Square Root of a Number

Write test cases for a programme which finds square root of a number

Questions by pratabt

Showing Answers 1 - 15 of 15 Answers

sarojanag

  • Jan 30th, 2009
 

There will be 3 test cases
1) Give a whole number like  1,2,3,4 etc see the result
2) Give a negative number like -2, -1,  etc see the result
3) Give 0 (Zero) and see the result

ashishks

  • Feb 3rd, 2009
 

These are some test cases for finding squire root of a number:
1. Test with input as empty string.
2. Test with input at boundry values of input number i.e. max., max-1, max+1, min, min-1, min+1.
3. Test with input as "alphabetical characters/special characters/forign characters/combination of all these".
4. Test with input as "squireroot(squireroot  9.0)"
 

Test Cases for Finding Square Root of a Number
1. Check whether the square root cannot be zero
2. Check whether any 2 same number is multiplied it gives the square root of the number
3. Check whether it displays as result only one number of the square root of the number

  Was this answer useful?  Yes

ssaradha85

  • Jan 24th, 2010
 

1 ) Chk by giving a input as a empty string

2 ) Chk by giving a input as alphabets
3 ) Chk by giving a input as special char
4 ) Chk by giving a input as whole number 1,2,3,4, etc
5 ) Chk by giving input as a  negative number. - 1,-2,etc
6 ) Chk by giving input as a decimal . 1.1 etc
7 ) Check when the same nuber is multiplied gives a sq root of the number. 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions