Google News
logo
Today General Knowledge(GK)
What is the number of bits needed for an address in a 4 K memory?
A)
4
B)
8
C)
12
D)
16

Correct Answer : Option (C) - 12



12 bits needed for an address in a 4K memory
 
Likewise, you need 20 bits to address every byte in a megabyte, and 30 bits to address every byte in a gigabyte. 232 = 4294967296, which is the number of bytes in 4 gigabytes, so you need a 32 bit address for 4 GB of memory.
 
As I mentioned before, it's the size of a machine word. Machine word is the amount of memory CPU uses to hold numbers (in RAM, cache or internal registers). 32-bit CPU uses 32 bits (4 bytes) to hold numbers. Memory addresses are numbers too, so on a 32-bit CPU the memory address consists of 32 bits.

Published On : June 18, 2021
Category : Computers
Advertisement