What are the 5 primitive data types?
What is an integer?
What is a real/floating point number?
What is a character?
What is a string?
What is a Boolean?
What is the human counting system?
Base 10 - denary
What is the computer counting system?
Base 2 - binary
A single binary digit is a …
Bit
8 binary digits combined is a …
Byte
4 binary digits combined is a …
Nybble
How do you convert from binary to denary?
How do you convert from denary to binary?
What are the binary addition rules?
0+0+0=1
0+0+1=1
0+1+1=10 (1 is carried to next column in column addition)
1+1+1=11 (1 is carried over to next column in column addition)
What are the binary addition rules?
0+0+0=1
0+0+1=1
0+1+1=10 (1 is carried to next column in column addition)
1+1+1=11 (1 is carried over to next column in column addition)
How would you represent a binary number as a whole number of bytes?
You would add leading 0’s (0’s in front of the actual number) - these don’t affect the value of the binary number
How do you do binary addition?
Do it like column addition - like up the 2 binary numbers in columns using 1s column to like them up and then apply binary addition rules
If there is a carry then put the carried one in small under the next column to the left
what are the basic binary subtraction rules?
0-0=0
1-0=1
1-1=0
0-1=1 (borrow 1 from the adjacent higher order digit)
how do you do basic binary subtraction?
do it like normal column subtraction following the rules of binary subtraction and doing carries where you need to
what sort of counting system is hexadecimal?
base 16
how do you represent values 10-15 using hexadecimal?
using letters A-F
A=10, B=11, C=12, D=13, E=14, F=15
How do you convert from hexadecimal into denary?
how do you convert from denary to hex?
how do you convert from hex to binary?