Advanced Placement Computer Science AB:
Quiz 1
    Sewickley Academy, 2000-2001

See Course Home Page.  Also, see the Solutions to Quiz 1.

When possible, SHOW YOUR WORK.

1.  What is the largest positive and smallest negative numbers possible in:

a.  5-bit 2's complement notation
b.  7-bit 2's complement notation
2.  Express -71.34375 in 32-bit floating point notation

3.  Consider the hexadecimal number 4162:

a.  Express it in base 10
b.  Express it in binary (base 2)
c.  Assuming this is ASCII, what characters does it represent?
d.  Assuming it is a 2-byte 2's complement number, what number does it represent?
e.  Assuming it is a 2-byte unsigned integer, what number does it represent?
f.  Assuming it is a floating-point number (with trailing 0's as needed to pad to 32 bits), what number does it represent?
See Course Home Page.