What is the binary system?
Base 2 number system.
Values: 0 (OFF) and 1 (ON).
MSB: Most Significant Bit (leftmost bit).
What is the denary system?
Base 10 number system.
Values: 0 to 9
What is the hexadecimal system?
Base 16 number system.
Values: 0-9 and A-F (A=10, B=11, ..., F=15).
How do you convert hexadecimal to binary?
Separate each hex digit.
Convert each hex digit to 4-bit binary.
Combine binary values.
How do you convert binary to hexadecimal?
Group binary digits into 4-bit sections (from right).
Add leading 0s if needed.
Convert each group to hexadecimal.
How do you convert hexadecimal to denary?
Convert hex to binary.
Convert binary to denary.
How do you convert denary to hexadecimal?
Convert denary to binary.
Convert binary to hexadecimal.
What is overflow in binary calculations?
Occurs when the result exceeds the bit limit.
E.g., adding two 8-bit values results in a 9-bit answer.
What is a logical shift?
Moves binary digits left or right.
Emptied bits replaced with 0.
How do you perform a left logical shift?
Remove leftmost bit.
Shift all bits left.
Add 0 to the rightmost position.
What is two's complement?
Method to represent negative binary values.
MSB indicates the sign (-128 for 8 bits).
How do you convert a binary number to its two's complement?
Find the first 1 from the right.
Flip all bits to the left of it.
How do you convert a two's complement binary to denary?
Replace MSB with its negative value.
Add the remaining values.
Where is hexadecimal used?
HTML colors.
MAC addresses.
Assembly language.
Memory dumps.
Debugging.
Error codes.
IP addresses.
What is ASCII?
7-bit code for characters and control codes.
Uppercase and lowercase have different values.
"a" = 97, "b" = 98, etc.
How is Unicode different from ASCII?
Unicode supports more characters (up to 4 bytes).
Includes international languages.
First 128 values match ASCII.