Class Notes Flashcards
How many values does a bit represent
Two values
How many values does 2 bits represent
4 values
How many values does 3 bits represent
8 values
What numbers define the binary number system
0,1
How do you determine largest value if you have a base number
The largest value is 1 less then the base value
What is the largest number for base 10
9
What is the largest number for base 8
7
What number of values do 4 bits have
16 values
What is 1 byte equal to?
8 bits
What is 1 byte considered
The smallest addressable memory unit
How many values are in one byte
256 values
What is 1MB in base 10
10^6
What is 1GB in base 10
10^9
What is 1TB in base 10
10^12
Can values be both positive or negative?
Yes
Values can either be …
Characters or numbers
What are numbers with no decimal called
Intergers
What are numbers with a decimal called
Floating point numbers
What are the 4 interger types
byte
short
int
long
What is the default type for intergers
int
How many bytes does a byte represent
1 byte
How many bytes does a short represent
2 bytes
How many bytes does an int represent
4 bytes
How many bytes does a long represent
8 bytes
What are the two types of floating point numbers/types
Float and a double
How many bytes does a float represent
4 bytes
How many bytes does a double represent
8 bytes
If the first bit is 0 in an interger, is it positive or negative
Positive