# Test Cases for Finding Square Root of a Number

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

#### srinivasulub1981 Profile Answers by srinivasulub1981 Questions by srinivasulub1981

• Nov 29th, 2008

I think it's tough to write the test cases for un clear questions like this.  at least if there is any screen then we could have write the cases....  let me know if i am wrong...

#### sarojanag Profile Answers by 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 Profile Answers by 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)"

#### saravanan123 Profile Answers by saravanan123

• Jul 10th, 2009

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

• 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.