Prelab 3 : Binary Numbers
Adapted from lab from CS 101 at Middlebury College by Tim Huang..
Reading
Exercises
- Add the following two 8-bit binary numbers: 10111010 and 01101011. Now
convert each of those numbers and their sum to their
equivalent decimal numbers, and verify that you did the
addition correctly.
- Convert the decimal number 510 to binary and hexadecimal.
- If the patterns 101.11 and 1.011 represent values in binary notation,
what is the binary representation of their sum?
- If a term paper consisted 42 pages, each containing 40 lines of 100
symbols each (counting each space as a symbol), was to be
encoded using Unicode, how many bytes of storage space
would be required?
- Describe how a computer can produce an incorrect answer when
performing numerical computations even though it has
not malfunctioned.
Submitting
Bring your answers with you to lab.