% Author: Ian! D. Allen - idallen@idallen.ca - www.idallen.com % Date: Winter 2011 - January to April 2011 - Updated 2011-03-26 06:20 EDT % Title: Week 05 Notes for CST8281 - Winter 2011 - [Course Home Page] - [Course Outline] - [All Weeks] - [Plain Text] Midterm Test #1 - 15% ====================== - Calculators are not permitted during the first midterm test. You will benefit from knowing the powers of two from 2\^(-4) to 2\^16 and the decimal and binary values of the hexadecimal digits from zero to fifteen. Of course you can work them out; however, having at least some of them memorized will make things go faster for you on the test. (Remember that hexadecimal “A” = decimal 10 = binary 1010.) - For full mark credit, read the [Test Instructions] for important directions on how to enter your answers on the mark-sense forms. Lecture Notes for This Week =========================== From the Class Notes link on the Course Home Page ------------------------------------------------- - [Course Home Page] - [All Weeks] - [120_CharacterEncoding.html] - Character Encoding / Line Ends - know these Seven Famous ASCII Characters: 0D 0A 20 30 41 61 7F - do not memorize any EBCDIC - [130_big_picture.txt] - The Big Picture on Bit Patterns - [140_attack.txt] - Remote Attack Script uses hexadecimal obfuscation - [145_textbook_secrets.txt] - Alcatel-Lucent Traning Manual containing secret messages in hexadecimal - [self_mark.txt] - Self-mark of Assignment NN (participation mark) From Blackboard Course Documents -------------------------------- These documents have restricted distribution and cannot be put on the [Course Home Page]. - [02.ppt] - Data Representation - omit “Booth’s algorithm” slides 50-52 - ignore slides 63-70 (the “simplified” model) - slide 72 is wrong: IEEE 754 +0.0 is equal to -0.0 - ignore slides 75-76 (floating-point multiplication) - use my web pages and assignments instead for floating-point info - you do not need to know how to do math with sign-magnitude numbers - you do need to know how to convert them to/from decimal - you do not need to know how to do math with one’s complement numbers - you do need to know how to convert them to/from decimal - you need to know how to do addition with two’s complement numbers - you also need to know how to convert them to/from decimal - you do not have to multiply or divide or subtract any binary numbers - omit most of the math in 2.8 “Error Detection and Correction” - omit slides 94-100 - omit slides 103-115 From the Internet ----------------- - From the Classroom Whiteboard/Chalkboard ---------------------------------------- - Your in-class notes go here. - Character codes: ASCII, extended ASCII, EBCDIC, Unicode, UTF-8 - ASCII Control Characters (unprintable) - line ends for text files on Unix/Mac/Windows - reading character tables - compare ASCII & EBCDIC for sort order and common printable characters - ASCII puts ‘A’ before ‘a’; EBCDIC does the reverse - tabs vs. spaces - Seven Famous ASCII Characters - how to print the decimal value of 00001111(2) on the screen in ASCII? - decimal value is 15: send 31h and 35h (“1” and “5”) - Fonts vs. Character codes - codes only say what letter, not what it looks like - Why can’t French (Latin1) and Polish (Latin2) exist in the same text file? - same problem for all the 8-bit extended-ASCII character sets First Midterm Marks - February 6 ================================ Below are the marks from your midterm test. I sent each of you an email with your marks and your right/wrong answers at 5:15pm February 8. I will hand you back your question sheet when I see you next. 100 100 96.4 96.4 92.9 92.9 92.9 89.3 89.3 85.7 85.7 82.1 82.1 82.1 82.1 78.6 78.6 78.6 78.6 78.6 75 75 75 71.4 71.4 71.4 67.9 67.9 67.9 64.3 64.3 64.3 60.7 60.7 57.1 57.1 57.1 57.1 57.1 53.6 53.6 53.6 53.6 50 50 50 50 50 50 46.4 46.4 46.4 46.4 46.4 42.9 42.9 42.9 39.3 39.3 39.3 35.7 35.7 28.6 28.6 25 21.4 -- | Ian! D. Allen - idallen@idallen.ca - Ottawa, Ontario, Canada | Home Page: http://idallen.com/ Contact Improv: http://contactimprov.ca/ | College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/ | Defend digital freedom: http://eff.org/ and have fun: http://fools.ca/ [Plain Text] - plain text version of this page in [Pandoc Markdown] format [Course Home Page]: .. [Course Outline]: 2010-2011_CST8281.pdf [All Weeks]: indexcgi.cgi [Plain Text]: week05notes.txt [Test Instructions]: 000_test_instructions.html [120_CharacterEncoding.html]: 120_CharacterEncoding.html [130_big_picture.txt]: 130_big_picture.txt [140_attack.txt]: 140_attack.txt [145_textbook_secrets.txt]: 145_textbook_secrets.txt [self_mark.txt]: self_mark.txt [02.ppt]: http://blackboard.algonquincollege.com/ [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/