How will you divide two numbers without using the division
operator?

Answers were Sorted based on User's Feedback



How will you divide two numbers without using the division operator? ..

Answer / nakul gupta

we must subtract the second nnumber from the first till the
second number becomes greater than first number.
for example: we have two numbers a=245 & b=40 then a-b is
245-40=205
again 205-40=165
165-40=125
125-40=85
085-40=45
045-40=5
here we subract second number from first one 6 times &
remainder is 5.

Also if we divide 245 by 40 the quotient is 6 & remainder
is 5.

Is This Answer Correct ?    53 Yes 7 No

How will you divide two numbers without using the division operator? ..

Answer / ahmed

how i can convert it into program in java i mean count how many times the subtract will be

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Manual Testing Interview Questions

What is the difference between a standalone application, client-server application and web application?

0 Answers  


How can data caching have a negative effect on load testing results?

0 Answers  


If U have Test Cases already prepared and u have to just excute those test cases in a very short time then how will U decide which test cases has to be excuted first. Is there any technique ?

8 Answers   Impetus,


If there is no sufficent time for testing & u have to complete the testing then what will u do?

20 Answers   Fidelity, HCL,


Write TestCases for mobile

2 Answers   Philips,


Can anybody tell me Which documents consider as SRS document?? Wire frame document can considered SRS Document for writing test cases??

2 Answers  


Explain Equavalence Partioning.With example?

3 Answers   CSC,


I have a build in which there are 17 files, now 3 new files added, in this case what type of testing will do

6 Answers   Calsoft,


What's the test suit?? Explain with simple example. If there is User sub-menu & options are New, Edit, Delete (to create, edit & delete user ) then can i say USER Test suit Id-1 for user. Test case id - 1.1 for New, 1.2 for edit, 1.3 for delete.

2 Answers  


Testing OO class operations is made more difficult by Option 1 Encapsulation Option 2 Inheritance Option 3 Polymorphism Option 4 Both Inheritance and Polymorphism

2 Answers   Infosys,


why u are using multiple test data in retesting?

2 Answers  


what kind of performance test that required for a word processing system?

1 Answers  


Categories