wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

What is the number of bits needed for an address in a 4K memory?

A
16
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
8
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
12
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
4
No worries! We‘ve got your back. Try BYJU‘S free classes today!
E
None of the above
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is 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.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Arithmetic Progression - Sum of n Terms
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon