Exercise[7]
- 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.
- 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.
- Convert the hexadecimal number 16 to binary.
- Convert the decimal number 1984 to binary.
- Convert the decimal number 83.75 to binary.
- Convert the decimal number 1.1 to its nearest binary approximation using eight bits to the right of the decimal point.
- 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
- Regarding the previous question (6), is the answer returned by the JavaScript interpreter mathematically correct? If not, why not?
- 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?
- What value is returned when you use JavaScript to evaluate the following mathematical expression?
(20 - 11)/10
- 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?
- What is an abstraction? Provide a citation if you quote directly from another source.
- Is a unicode code point an abstract concept or a concrete means of encoding symbols using binary sequences?
- What five unicode code points from the Basic Latin unicode block correspond to the following string?
HEllO
- 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:
ΗΕΙΙΟ
- Is the abstract concept of "the Greek capital letter Eta", denoted ⟨Η⟩, an example of a grapheme, a glyph, both, or neither?