RAM Flashcards
True or False: An array is a collection of ordered, contiguous group of elements.
True
An array is a collection of ordered, contiguous group of elements.
What is an array?
An array is a collection of ordered, contiguous group of elements.
What does RAM mean?
Random Access Memory
RAM is a contiguos block of data
True or False: Is a byte a group of bits?
True
1 byte is a group of bits that can usually have 8 or less bits
What digits can a bit store?
0 or 1
Computers usually deals with 1s and 0s
What is an byte?
byte is a group of bits
There are usually 8 bits or less on 1 byte
True or False: Can a bit store a digit other than 0 or 1?
False
Can only be a 0 or 1
Computers usually deals with 1s and 0s
How many bits is there on 1 byte?
8 bits
1 byte * (1 byte * 8 bits) = 8 bits
There are usually 8 bits or less on 1 byte
How many bits is there on 2 bytes?
16 bits
2 byte * (1 byte * 8 bits) = 16 bits
There are usually 8 bits or less on 1 byte
How many bits is there on 10 bytes?
80 bits
10 byte * (1 byte * 8 bits) = 80 bits
There are usually 8 bits or less on 1 byte
How many bytes is there on 24 bits?
3 bytes
24 bits / (1 byte * 8 bits) = 3 bytes
a byte can usually be 8 or less bits
What is the common representation size in bytes of an integer?
4 bytes
It’s common for an integer to be represented as 4 bytes
a byte can usually be 8 or less bits
What is the common representation size in bytes of an character?
1 byte
It’s common for an character to be represented as 1 byte
a byte can usually be 8 or less bits
How many bytes is there on 32 bits?
4 bytes
32 bits / (1 byte * 8 bits) = 4 bytes
a byte can usually be 8 or less bits
How many bytes is there on 16 bits?
2 bytes
16 bits / (1 byte * 8 bits) = 2 bytes
a byte can usually be 8 or less bits
How many bytes is there on 64 bits?
8 bytes
64 bits / (1 byte * 8 bits) = 4 bytes
a byte can usually be 8 or less bits
What is the common representation size in bits of an integer?
32 bits
It’s common for an integer to be represented as 4 bytes or 32 bits
a byte can usually be 8 or less bits
What is the common representation size in bytes of an integer?
4 bytes
It’s common for an integer to be represented as 4 bytes or 32 bits
a byte can usually be 8 or less bits
What is the common representation size in bits of an character?
8 bits
It’s common for a character to be represented as 1 byte or 8 bits
a byte can usually be 8 or less bits
What is the common representation size in byte of an character?
1 byte
It’s common for a character to be represented as 1 byte or 8 bits
a byte can usually be 8 or less bits
How many bits apart each element of an array of integers
32 bits
or 4 bytes
Each integer takes 32 bits of space, 4 bytes, hence the addresses are 4 bytes or 32 bits apart
How many bits apart each element of an array of characters
8 bits
or 1 byte
Each character takes 8 bits of space, 1 byte, hence the addresses are 1 byte apart.
How many bits does a single integer have?
32 bits
or 4 bytes
How many bits does a single character have?
8 bits
or 1 byte
True of false: Is it common for a single integer to be equal to 32 bits?
True
It’s common for a integer to be represented as 4 bytes or 32 bits
a byte can usually be 8 or less bits
True of false: Is it common for a single character to be equal to 32 bits?
False
It’s common for a character to be represented as 1 byte or 8 bits
a byte can usually be 8 or less bits
True or False: Is RAM not a contiguous block of data?
False
Ram is a contiguos block of data
What is the 2 components of RAM
Value and Address
Value is the data stored in the Address
Address is where the Value is stored
What component of RAM that represent the data we’re storing?
Value
Value is the data stored in the Address
What component of RAM that represent the place where we are storing the data?
Address
Adress is where the Value is stored
What numeric value a bit can represent?
0 or a 1
Computers usually deals with 1s and 0s
True or False: Is an array not contiguous?
False
Arrays are contiguous
How many bytes apart each element of an array of integers
4 bytes
or 32 bits
Each integer takes 32 bits of space, 4 bytes, hence the addresses are 4 bytes apart
How many bytes apart each element of an array of characters
1 byte
or 8 bits
Each character takes 8 bits of space, 1 byte, hence the addresses are 1 byte apart.
How many bytes does a single integer have?
4 bytes
or 32 bits
How many bytes does a single character have?
1 byte
or 8 bits