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