lylarock lylarock
  • 07-09-2021
  • Computers and Technology
contestada

A computer program uses 4 bits to represent integers when the program adds the decimal numbers 5 and 11 the result is 0 why?

Respuesta :

tonb
tonb tonb
  • 07-09-2021

Answer:

Because the answer would be 16 which is 10000 in binary, and the 1 drops off because there are only 4 bits for the answer.

Explanation:

All calculations will be modulo 2^bits.

So 4 bit storage: calculations modulo 2^4=16

16 modulo 16 is 0.

17 modulo 16 is 1. etc., it wraps around after 15.

Answer Link

Otras preguntas

When your organs don't receive enough blood, they begin to __________. A. shut down B. speed up C. inflame D. dry out
Reactants bind to the enzyme at the ______.
a=1/3b then b=?a i really want the answer
Each night, Abby recorded how many pages of a book she read before going to bed. Her data is as follows: 7, 9, 10, 6, 8, 12, 5, 11, 48, and 13. What is
Um I need help with these four Questions can you write the problems step by step not just by the answer please but write the answer down. I need help so much he
the Supreme Court ruling in dred Scott v sanford (1857) helped to increase sectional conflict because the decision
In the paragraph box below, name which paragraph above fails to fulfill the characteristics of a quality expositional paragraph and explain why it does not. Wri
Urgent!!! the coastal plains contains the largest cities around the world true or false
axes that fund Social Security and Medicare are referred to as _____.
Select the verb form that correctly completes the sentence. Juan ________ mañana a mi casa. A. vendrá B. venir C. vendré D. vendrán