How do computing technologies represent numbers, text, images, video, and sound?
using just two symbols: 0’s and 1’s
What is a decimal number?
base 10
What is a binary number?
base 2
What is a bit?
short for binary digit – is 0 or 1
How do computers process binary numbers?
ie. when computer sees 1000000 (by something like one “on” part on DVD followed by six “off” parts on DVD), it reads this as binary and processes it as decimal 64
64 and 1000000 are two representations of same number
How are binary numbers read and written?
What is a hexadecimal number?
base 16
digits: 0-F
How can hexadecimal digits be represented?
digits can be represented perfectly by 16 symbols of 4-bit sequences
What is a hexit?
4 bits
Why is it easy to convert between hex and binary?
because each hex digit corresponds to 4-binary sequence
If you shift binary number to left by one bit, and pad empty space with zero, you are _____.
multiplying by 2
ie. 0b0010 → 0b0100 = 2 → 4
ie. 0b0100 → 0b1000 = 4 → 8
If you shift hex number to left by one bit, and pad empty space with zero, you are ___.
multiplying by 16
ie. 0x01 → 0x10 = 1 → 16
ie. 0x10 → 0x100 = 16 → 256
What are the advantages of ternary computers over binary computers?
- lower production cost
What is a ternary system?
base 3
What is the general rule for number systems?
take base (ie. how many single digits are allowed in particular number system) and raise it to power of however many spots you have
What does ‘mod’ mean?
determining the remainder
How do we store letters in hex?
ASCII (American Standard Code for Information Interchange)
128 values (7 bits, since 2^7 = 128)
Other than letters, what else is stored in ASCII?
punctuation, spaces, and other special control characters are encoded
What is a code point?
each encoded item in ASCII
Why does ASCII have 7 bits?
extra ‘check’ bit was included that could be used to detect certain errors that might arise (ie. when sending data over a modem)
What is extended ASCII?
uses all 8 bits
allows for characters with accents
What is unicode?
text representation standard
What are the different implementations of unicode?
includes UTF-8 and UTF-16, which are variable length encodings (use 1 byte (8 bits) for ASCII, but more for other characters)
(UTF = unicode transformation format)
Formatting
What does uploading a Word document into Hex editor do?
suggests that document is not in ASCII representation