Sample Homework Assignment #1


Overview

This is a sample assignment, which is exactly like all the practice problems posted in this module. Just in case you wanted more practice, here you go. Some of the numbers in there care large-ish, and a calculator may be useful. In exams/quizzes numbers will be small and a calculator is not needed.

Solutions

Solutions are available as a plain ASCII file.


Exercise #1: Conversions

Perform the following conversions:

  1. hex 1B41 into binary
  2. hex 9A4 into decimal
  3. binary 1001110100111 into hex
  4. binary 0110100 into decimal
  5. decimal 71 into binary
  6. decimal 253 into hex

Exercise #2: Binary and Hex Arithmetic

Perform the following additions:

  1. binary: 1110001 + 11010111
  2. hex: 52E12FFC + 9871AB25

Exercise #3: Two’s Complement

Give the binary 16-bit two’s complement representation of the following decimal integers:

  1. 127
  2. -65

Exercise #4: Two’s Complement

Give the hexadecimal 32-bit two’s complement representation of the following decimal integers:

  1. -17
  2. 255

Exercise #5: Two’s Complement

Give the decimal value of the following 12-bit two’s complement hexadecimal representations:

  1. E6A
  2. 602