GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing  >  Test Cases
Go To First  |  Previous Question  |  Next Question 
 Test Cases  |  Question 251 of 258    Print  
Test Cases for Finding Square Root of a Number
Write test cases for a programme which finds square root of a number


  
Total Answers and Comments: 4 Last Update: July 10, 2009     Asked by: pratabt 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: ashishks
 
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)"
 

Above answer was rated as good by the following members:
abisurd
November 29, 2008 04:13:52   #1  
srinivasulub1981 Member Since: December 2005   Contribution: 381    

RE: Test Cases for Finding Square Root of a Number
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...
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
January 30, 2009 01:34:55   #2  
sarojanag Member Since: December 2008   Contribution: 2    

RE: Test Cases for Finding Square Root of a Number
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

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
February 03, 2009 04:46:26   #3  
ashishks Member Since: December 2008   Contribution: 73    

RE: Test Cases for Finding Square Root of a Number
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)"

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 10, 2009 06:27:28   #4  
saravanan123 Member Since: July 2009   Contribution: 163    

RE: Test Cases for Finding Square Root of a Number
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

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape