P2 T1 L2 - Binary and Hex Flashcards
How is data stored in computers?
5 points
- Data is held in computers in storage locations built using electrical circuits with switches
- The circuits have 1 of 2 states: Low voltage (closed), High voltage (open)
- So, we need 2 symbols to represent these 2 states: 0 (low), 1 (high)
- This is the Binary system
- All data is stored this way, that is: Programs, Numbers, Characters, Sound, Pictures
What is bit?
2 points
- Stands for Binary Digit
2. Stores 0 or 1
What is byte?
1 point
- A group of 8 bits
What is word?
1 point
- A group of bytes
Note, a 64-bit machine has a word size of 64 bits (8 bytes)
What is a number system?
2 points
- A Number System is any notation for representing numbers
- The notation is the symbols used to represent different values
In this part of the course, you need to know about:
Binary - base 2
Denary - base 10
Hexadecimal - base 16
What are pure unsigned binary numbers?
(1 point)
An odd number always ends in _
An even number always ends in _
- The basic number system used to identify positive integers.
1
0
What formula do you use to find the largest binary number possible from a certain number of bits?
2^n -1
What are the 16 symbols in hexadecimal
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
What are the values of (Hexadecimal) A and F in pure binary and denary
A - 1010 (pure binary) -10 (denary)
F - 1111 (pure binary) - 15 (denary)
How do you convert unsigned binary to Hexadecimal?
3 steps
- Break the binary number into 4-bit nibbles
- Translate each nibble into the hex equivalent
- Write the hex digits together
How do you convert Hexadecimal to unsigned binary?
2 steps
- Convert each hex character to a 4-bit nibble
2. Combine the nibbles into a single 8 bit binary value
How do you convert denary into hexadecimal?
2 steps
- Take the denary number and translate it to binary
2. Take the binary number and translate it to hexadecimal
Why is hexadecimal used?
3 points
- A way of writing large binary (or denary) numbers in a shorter number of digits
- Easier for humans to read than pure binary (The computer still just understands it as binary)
- Useful since all bit combinations in a 4 bit binary number may be represented in a single character – you would need 2 denary digits to do this