adplus-dvertising
frame-decoration

Question

How do computers deal with multiplication and division?

a.

They use the binary representation of integers.

b.

They use SHL and SHR instructions.

c.

They try to bring the divisor or multiplier as close as possible to a convenient number.

d.

They use addition and subtraction to compensate the result.

Posted under Reverse Engineering

Answer: (c).They try to bring the divisor or multiplier as close as possible to a convenient number. Explanation:The general strategy for computers dealing with multiplication and division is to try and bring the divisor or multiplier as close as possible to a convenient number that is easily represented by the number system.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. How do computers deal with multiplication and division?

Similar Questions

Discover Related MCQs

Q. What is the most efficient instruction to use when multiplying two variables?

Q. What do compilers usually do when the multiplier is a constant?

Q. What is the equivalent of multiplying by powers of 2 in computers?

Q. What is the latency of the SHL instruction?

Q. What is the most complex operation in integer arithmetic for computers?

Q. Which built-in instructions are relatively slow and have a high latency in computers?

Q. Why is using DIV usually bad for performance but good for reversers?

Q. What happens when a compiler has constant divisors?

Q. What is reciprocal multiplication?

Q. Why is multiplication preferred over division in computers?

Q. How can fixed-point arithmetic be used to represent fractions and real numbers?

Q. How is the reciprocal of a divisor used in reciprocal multiplication?

Q. What is the benefit of using reciprocal multiplication over division in computers?

Q. What is fixed-point arithmetic?

Q. How does fixed-point arithmetic represent fractional values in integers?

Q. What is the result of multiplying a 32-bit dividend by an integer reciprocal?

Q. How do compilers achieve greater accuracy with reciprocals when working with large dividends?

Q. What is the purpose of the imaginary dot in an integer when representing an approximation of a real number?

Q. How is the fractional value represented in a fixed-point representation of a real number?

Q. Why is the last digit in each reciprocal incremented by one?