Wednesday, June 16, 2004

Exercise[7]

00:06 | 00:07 | 00:08

“To binary ... and beyond!”

  1. contra-hexave scale: Convert each of the sixteen hexadecimal (base 16) digits from 0 inclusive to F inclusive to their binary (base 2) equivalents. Use four bits per binary number and pad the most significant bits with zeros as necessary. For example 1 in hex (base 16) is 0001 in binary (base 2). Write you answer in the form:
    0 (base 16) is 0000 (base 2)
    1 (base 16) is 0001 (base 2)
    etc.
  2. great-hexave scale: Convert the decimal (base 10) digits from 16 inclusive to 31 inclusive to binary. Use five bits per binary number. Write you answer in the form:
    16 (base 10) is 10000 (base 2)
    17 (base 10) is 10001 (base 2)
    etc.
  3. Convert the hexadecimal number 16 to binary.
  4. Convert the decimal number 1984 to binary.
  5. Convert the decimal number 83.75 to binary.
  6. Convert the decimal number 1.1 to its nearest binary approximation using eight bits to the right of the decimal point.
  7. What value is returned when you use JavaScript to evaluate the following mathematical expression (e.g. by entering the expression on a JavaScript command line and pressing enter)?
    2 - 1.1
  8. Regarding the previous question (6), is the answer returned by the JavaScript interpreter mathematically correct? If not, why not?
  9. Do you think you would get the same answer or a different answer if you evaluated the same expression using the Java programming language instead of JavaScript? Why or why not?
  10. What value is returned when you use JavaScript to evaluate the following mathematical expression?
    (20 - 11)/10
  11. If you were a programmer working in 2003 and you didn't know the basics of characters, character sets, encodings, and Unicode, and Joel Spolsky caught you, how did he swear he would punish you?
  12. What is an abstraction? Provide a citation if you quote directly from another source.
  13. Is a unicode code point an abstract concept or a concrete means of encoding symbols using binary sequences?
  14. What five unicode code points from the Basic Latin unicode block correspond to the following string?
    HEllO
  15. What five unicode code points from the Greek and Coptic unicode block correspond to the following string? Greek capital letter Eta, Greek capital letter Epsilon, Greek capital letter Iota, Greek capital letter Iota, Greek capital letter Omicron:
    ΗΕΙΙΟ
  16. Is the abstract concept of "the Greek capital letter Eta", denoted  ⟨Η⟩, an example of a grapheme, a glyph, both, or neither?