Q.A computer has 128MB memory. Each word in this computer is of 8 bytes. How many bits are required to address any single word in the memory?
Correct answer: 24
Explanation
To determine the number of bits needed to address a single word in memory. We need to calculate the total number of words in the memory. 1 MB = 220 bytes 128 MB = 128 × 220 bytes = 27 × 220 bytes = 227 bytes Each word is 8 bytes, the total number of words is = 227 bytes/8 bytes/ word = 227 bytes/23 bytes = 224 words Since each word can be accessed uniquely We need 24 bits to address each word in the 128 MB memory.
To determine the number of bits needed to address a single word in memory. We need to calculate the total number of words in the memory. 1 MB = 220 bytes 128 MB = 128 × 220 bytes = 27 × 220 bytes = 227 bytes Each word is 8 bytes, the total number of words is = 227 bytes/8 bytes/ word = 227 bytes/23 bytes = 224 words Since each word can be accessed uniquely We need 24 bits to address each word in the 128 MB memory.