1.4.1 Data types - Suprit Flashcards
Define Real Numbers
Positive or negative numbers that typically have a decimal point
Define Integer
A whole number
Define Characters
Any symbol used by the computer
Define String
A collection of characters stored in succession
Define Boolean
Represents True or False
How do computers store whole numbers?
Computers store whole numbers as binary
How many bits make up a nibble?
4 bits
How many nibbles make up a byte?
2 nibbles
Convert binary number 1101 to denary
13
How many bits in a kilobyte?
8000
Convert 47 into binary
101111
What is 1011 + 1110?
(1)1001
(1) is an overflow
What does 0 and 1 at the start of a binary number represent in Sign Magnitude?
0 = Positive Number
1 = Negative Number
If 10101101 = 173, what does Sign Magnitude number 010101101 mean in denary?
It’s also 173
Convert -105 to a Sign Magnitude number
101101001
What is another way to represent positive and negative numbers in binary?
Two’s Complement