CSE 111, Fall 2004

Homework #3:

Binary Representation II


  1. Consider the following sequence of computer memory cells, each containing 8 bits of information:

    1. Suppose that these are printed out, one on top of the other (that is, the first one is printed out, then the next one is printed out directly underneath the first, and so on). If this is interpreted as a bitmap, with "1" representing black ink (or a light that is turned on) and "0" representing a white space (or a light that is not turned on), what image would it be?

    2. Suppose that it is interpreted as a sequence of decimal numerals. What is that sequence?

    3. Suppose that, by mistake, it is interpreted as a sequence of ASCII characters from either the "standard" set or the "extended" set. What strange series of characters would be printed? (If you do not know the names of any of the characters, try to copy them as best you can.)

  2. Suppose that the word

    is stored in memory, with one letter per memory cell, and where each memory cell contains 8 bits of information.

    1. What is the sequence of binary numerals that corresponds to the ASCII coding of that word?

    2. What sequence of decimal numerals does that correspond to?

    3. If these 8 memory cells were arranged top to bottom as described in problem 1, and if it were interpreted as a bitmap image, what image would it be? To answer this, use the online graph paper and color in only the cells that should have "1" in them.

  3. Suppose that the word

    is stored in memory, with one letter per memory cell, and where each memory cell contains 8 bits of information.

    1. What is the sequence of binary numerals that corresponds to the ASCII coding of that word?

    2. What sequence of decimal numerals does that correspond to?

    3. If these 8 memory cells were arranged top to bottom as described in problem 1, and if it were interpreted as a bitmap image, what image would it be? To answer this, use the online graph paper and color in only the cells that should have "1" in them.

    1. Can you describe in words the difference between the two images?
    2. Can you describe in words the difference between the two sequences of 8-bit binary numerals?

    DUE: AT THE START OF LECTURE: WEDNESDAY, SEPTEMBER 22



    Copyright © 2004 by William J. Rapaport (rapaport@cse.buffalo.edu)
    file: 111F04/hw3-2004-09-13.html