Test 1 CMSC 2100 Fall 2024

Name ______________________________________


  1. Represent the following in the given format
    1. [3 points] -49 in three digit nine's complement.
    2. [3 points] 129 in BCD

  2. The following are encoded as indicated. Represent as signed decimal number.
    1. [3 points] 1001 1010 0011BCD
    2. [3 points] 10112 is in 4 bit two's complement.
    3. [3 points] 10002 is in 4 bit two's complement.

  3. [6 points] Signed number representation. Compare and contrast two's complement and binary sign magnitude.

  4. [3 points] Describe two advantages the ASCII encoding has over the EBCDIC encoding.

  5. Gray Code
    1. [4 points] Give a table showing all two bit binary and gray codes, the gray code should align with the binary equivalent.
    2. [2 points] What is the purpose of gray code?

  6. For the expression f(a,b,c) = ac + (b + c)
    1. [4 points] simplify the expression as a sum of products.
    2. [4 points] Provide a truth table for this expression.
    3. [4 points] Provide the canonical sum of products form for this expression.
    4. [4 points] Provide the two different minterm forms for this expression.
    5. [4 points] Provide the two different maxterm forms for this expression.