AANSWERS TO EXERCISES

Image

Here you’ll find questions and answers for the exercises included in this book. Some questions don’t have a single right answer; for those, I’ve included an example answer. You’ll get the most out of these exercises if you come up with an answer yourself before you read the solution found here!

1-2: Binary to Decimal

Exercise: Convert these numbers, represented in binary, to their decimal equivalents.

Solution:

    10 (binary) = 2 (decimal)

  111 (binary) = 7 (decimal)

1010 (binary) = 10 (decimal)

1-3: Decimal to Binary

Exercise: Convert these numbers, represented in decimal, to their binary equivalents.

Solution:

    3 ...

Get How Computers Really Work now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.