Skip to content

Instantly share code, notes, and snippets.

@rtoal rtoal/CMSI284S2018HW2.md
Last active Feb 6, 2018

Embed
What would you like to do?
CMSI 284 Spring 2018 Homework 2

Do all these problems without the aid of a computer, except where required to look up character names, character code points, and emoji data. The purpose of these exercises is for you to develop skills. If you spend the time to practice with pencil and paper (or a whiteboard) you will learn the material much better.

To submit your answers, copy the text below into a secret gist on GitHub and fill in the answers at the end of the same line. Email or DM me the url of the secret gist.

Make sure your Gist filename is CMSI284S2018HW2.md.

Your submission will be autograded so it is imperative that your answers are formmatted as expected. All encoded values should be in hex, not binary. Use the proper number of bits always; for example, UTF-32 answers must always show 8 hex digits, and characters should use the U+ prefix. MAKE SURE YOUR GIST HAS EXACTLY 50 LINES, NO MORE, NO LESS. Answers that are "correct" but not in the proper format will receive zero points, since answers that follow instructions are better than those that do not. Again, make sure your gist has exactly 50 lines, or the autograder may get confused and you very well may end up with zero points. Don't risk it.

If you see a question that asks for an encoding of a character that does not exist within the character set in question, answer with the three symbols: N/A

Here are some example answers, that illustrate the expected formats:

  • The characters that make up a woman judge emoji are: U+1F469 U+200D U+2696 U+FE0F
  • The characters that make up a medium-skin-tone woman mechanic emoji are: U+1F469 U+1F3FD U+200D U+1F527
  • The encoding of character FIRE ENGINE in UTF-32BE is: 0001F692
  • The encoding of character FIRE ENGINE in UTF-16LE is: 92DE3DD8
  • The encoding of character FIRE ENGINE in UTF-8 is: F09F9A92
  • The NAME of the character whose UTF-8 encoding is E38084 is: JAPANESE INDUSTRIAL STANDARD SYMBOL

Note: It is perfectly okay to use Emojipedia. You probably should, to make sure you get the variation selectors right.

Another note: Pay attention to BE and LE!


  1. The characters that make up a medium-dark skin tone man vampire are:
  2. The characters that make up a dark skin tone woman playing handball are:
  3. The characters that make up the flag of Morocco are:
  4. The characters that make up the flag of El Salvador are:
  5. The characters that make up the rainbow flag emoji are:
  6. The characters that make up a medium-light skin tone oncoming fist are:
  7. The characters that make up a Latin small letter n with a caron are:
  8. The characters that make up a Cyrillic small letter Э with two dots, placed vertically above, are:
  9. The encoding of BACKSPACE, in UTF-32BE, is:
  10. The encoding of BACKSPACE, in UTF-16BE, is:
  11. The encoding of BACKSPACE, in UTF-8, is:
  12. The encoding of ARABIC PERCENT SIGN, in UTF-32BE, is:
  13. The encoding of ARABIC PERCENT SIGN, in UTF-16LE, is:
  14. The encoding of ARABIC PERCENT SIGN, in UTF-8, is:
  15. The encoding of DEGREE SIGN, in UTF-32LE, is:
  16. The encoding of DEGREE SIGN, in UTF-16BE, is:
  17. The encoding of DEGREE SIGN, in UTF-8, is:
  18. The encoding of COFFIN, in UTF-32BE, is:
  19. The encoding of COFFIN, in UTF-16BE, is:
  20. The encoding of COFFIN, in UTF-8, is:
  21. The encoding of CJK UNIFIED IDEOGRAPH-583A, in UTF-32LE, is:
  22. The encoding of CJK UNIFIED IDEOGRAPH-583A, in UTF-16BE, is:
  23. The encoding of CJK UNIFIED IDEOGRAPH-583A, in UTF-8, is:
  24. The encoding of BYZANTINE MUSICAL SYMBOL KRATIMATA, in UTF-32BE, is:
  25. The encoding of BYZANTINE MUSICAL SYMBOL KRATIMATA, in UTF-16BE, is:
  26. The encoding of BYZANTINE MUSICAL SYMBOL KRATIMATA, in UTF-8, is:
  27. The encoding of CHEROKEE LETTER HA, in UTF-32LE, is:
  28. The encoding of CHEROKEE LETTER HA, in UTF-16LE, is:
  29. The encoding of CHEROKEE LETTER HA, in UTF-8, is:
  30. The encoding of TAG ASTERISK, in UTF-32BE, is:
  31. The encoding of TAG ASTERISK, in UTF-16BE, is:
  32. The encoding of TAG ASTERISK, in UTF-8, is:
  33. The encoding of LATIN SMALL LIGATURE OE, in UTF-16BE, is:
  34. The encoding of LATIN SMALL LIGATURE OE, in UTF-8, is:
  35. The encoding of LATIN SMALL LIGATURE OE, in Windows-1252, is:
  36. The encoding of STRING TERMINATOR, in UTF-16BE, is:
  37. The encoding of STRING TERMINATOR, in UTF-8, is:
  38. The encoding of STRING TERMINATOR, in Windows-1252, is:
  39. The NAME of the character whose UTF-16LE encoding is F726 is:
  40. The NAME of the character whose UTF-32BE encoding is 0000002B is:
  41. The NAME of the character whose UTF-8 encoding is E38083 is:
  42. The NAME of the character whose UTF-8 encoding is F09F90BD is:
  43. The character sequence (in U+ notation) whose UTF-8 encoding is 4BCC9E is:
  44. The character sequence (in U+ notation) whose UTF-8 encoding is 486920F09F9095 is:
  45. The character sequence (in U+ notation) whose UTF-8 encoding is E2889EE289A531 is:
  46. The character sequence with graphemes É=mc² in NFC is:
  47. The character sequence with graphemes É=mc² in NFD is:
  48. The character sequence with graphemes É=mc² in NFKD is:
  49. The character whose grapheme is 腂 when encoded in UTF-32LE and interpreted as a IEEE-754 float, is:
  50. The character BACKSPACE encoded in UTF-32BE and interpreted as a IEEE-754 float, is 2 to the which power:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.