GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing  >  Software Testing
Go To First  |  Previous Question  |  Next Question 
 Software Testing  |  Question 177 of 266    Print  
Q. Calculator performs this operation
1*1=2, 2*2=4, 3*3=10, 4*4=16, 5*5=26
Identify the bug and write bug title and description.

  
Total Answers and Comments: 7 Last Update: November 22, 2009     Asked by: alwaysprashant 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: lakshmipriya
 
hai!

Bug Title:  arithmetic miscalculation-multiplication
Description: bug is multiplication miscalculation. for odd numbers, multiplication not reaches the actual result we want,as well as expected result. 1*1=1 , 3*3=9,5*5=25. but for even numbers reaches the expected result we want.

Above answer was rated as good by the following members:
ranjithkumar_sanda, seif2000
February 17, 2007 12:52:35   #1  
vikram prakash        

RE: Q. Calculator performs this operation 1*1=...
in this operation when calculator takes odd number then it gives wrong output. it adds one in actual value and then returns output. when it takes even number then it gives right output..
 
Is this answer useful? Yes | No
March 09, 2007 01:30:14   #2  
lakshmipriya        

RE: Q. Calculator performs this operation 1*1=...
hai!

Bug Title: arithmetic miscalculation-multiplication
Description: bug is multiplication miscalculation. for odd numbers multiplication not reaches the actual result we want as well as expected result. 1*1 1 3*3 9 5*5 25. but for even numbers reaches the expected result we want.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
March 21, 2007 14:23:16   #3  
Meena        

RE: Q. Calculator performs this operation 1*1=...

Bug Title: Multiplication Error

Description: The odd number when multiplied gives the wrong output. The even number when multiplied gives the correct output.

 
Is this answer useful? Yes | No
March 24, 2007 12:56:52   #4  
Dinesh        

RE: Q. Calculator performs this operation 1*1=...

Bug :

When the given two inputs are even the expected result and actual result tally
but when the given two inputs are odd the result goes wrong.
Problem exits with business logic.

Regards
Dinesh.


 
Is this answer useful? Yes | No
June 09, 2008 05:05:55   #5  
muthukumaranc Member Since: January 2006   Contribution: 7    

RE: Q. Calculator performs this operation 1*1=2, 2*2=4, 3*3=10, 4*4=16, 5*5=26Identify the bug and write bug title and description.
Please do mention that when two Identical (Same) Odd Numbers are multiplied the output (Actual Result) is Incorrect and does not match with Expected Result. The Out Put is getting incremented by One Value
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
September 08, 2009 22:59:47   #6  
balaji.konar Member Since: September 2009   Contribution: 1    

RE: Q. Calculator performs this operation 1*1=2, 2*2=4, 3*3=10, 4*4=16, 5*5=26Identify the bug and write bug title and description.

Odd numbers when multiplied by itself produces the answer as : Square of the number + 1.
Even numbers when multiplied by itself produces the correct results.


 
Is this answer useful? Yes | No
November 22, 2009 11:28:22   #7  
kurtz182 Member Since: November 2009   Contribution: 126    

RE: Q. Calculator performs this operation 1*1=2, 2*2=4, 3*3=10, 4*4=16, 5*5=26Identify the bug and write bug title and description.

TITLE
Calculator performs multiplication errors when odd numbers are multiplied with themselves (ex: 5 * 5); one is always added to the result (ex: 5 * 5 26).

DESCRIPTION
The following problem was discovered in the calculator's multiplication function:

When multiplying odd numbers with themselves the result is always one number greater than it should be. Only odd numbers 1 through 5 were tested. Though not verified it is assumed that the behavior exists for all odd numbers that are multiplied with themselves. Even numbers 2 and 4 were tested and these operations produced correct results.

Examples:

Operation Actual Result Expected Result
1 * 1 2 1
3 * 3 10 9
5 * 5 26 25

As mentioned above even numbers produce proper results.


 
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