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

Oceans, lakes, ice caps, streams, and clouds are considered to part of what? A. Biosphere B. Athenosphere C. Hydrosphere D. Geosphere
Which of the following were among the first peoples to spread the idea of worshiping one God? A. the Hebrews B. the Canaanites C. the Egyptians D.
why are DRIs a preferred value for nutritional intake
evaluate 7/6+1/4+7/12=
Which age range would you expect to find a higher mortality rate in a typical disease? A. Infants B. Childeren C. Teenagers D. Adults
This is a temple built to honor Athena.
which words are "modal" helping verbs A. wonder, will, wash B. mighty, make, most C. would, might, must D. would, may, june, july
in what ways did the harsh rule of the assyrians work against them?
Mary Wollstonecraft was _____
All citizens meet to debate and vote on issues A. Direct Democracy B. Representative Democracy