1.4.1 Data Types Flashcards
What is an integer?
A whole number
Can be positive or negative
What is a real?
Positive or negative number
Can have fractional part
What is a character?
A single symbol
Includes letters, numbers & symbols
What is a string?
A group of characters
Can store one or more characters
What is Boolean?
True or False
What is a bit?
A single binary digit
What is a byte?
Eight binary digits
What is a nybble?
Four binary digits
Which bit is the least significant?
The furthest to the right
Which bit is the most significant?
The furthest to the left
What is Sign Magnitude?
The equivalent of adding a + or - sign in front of a number
How is a negative number represented using Sign Magnitude?
By adding a leading 1
How is a positive number represented using Sign Magnitude?
By adding a leading 0
Describe how a number can be put into two’s complement.
Flipping the bits of positive number
Adding one
How is binary subtraction performed?
Using binary addition with a negative two’s complement number