Back to Study Hub
Memory• 14 min read

Semiconductor Memory: RAM, ROM, SRAM vs DRAM and Memory Organisation

Wireless PSI and GPSC study notes on semiconductor memory: bit, byte and word terminology, RAM vs ROM, volatile vs non-volatile, SRAM vs DRAM cells and refresh, ROM types from Mask ROM to Flash, access vs cycle time, memory expansion and capacity formulas with comparison tables and MCQs.

By MCQ Arena TeamUpdated June 24, 2026

Almost every digital electronics paper for Wireless PSI and GPSC technical posts carries two or three questions on memory, and they are among the easiest marks to bank if you have the classifications straight. Examiners love to test the boundary cases: is RAM really random-access, why does DRAM need refreshing, which ROM can be erased with ultraviolet light, and how many address lines a given chip needs. These are one-line facts that reward clean memorisation rather than calculation.

This guide builds the topic the way it is asked: first the vocabulary of bit, byte, word and capacity, then the big split of RAM versus ROM and volatile versus non-volatile, then the two families that confuse aspirants the most — SRAM versus DRAM and the five kinds of ROM. It closes with access time, memory expansion arithmetic, the memory hierarchy and a set of exam-level MCQs with full explanations so you can self-test before the exam.

Memory terminology: bit, byte, word and capacity

A bit is a single binary digit (0 or 1) and is the smallest unit of storage. A group of 8 bits is a byte, and the number of bits the processor handles together as one unit is a word (8, 16, 32 or 64 bits depending on the machine). Memory is organised as an array of locations, each holding one word, and every location has a unique address.

A memory chip communicates through two separate sets of lines. The address lines select which location is being accessed, and the data lines carry the actual content into or out of that location. The number of address lines fixes how many distinct locations can be reached, while the number of data lines fixes the word size.

Number of locations = 2n

n = number of address lines; capacity is in words

Capacity (bits) = 2n × m

m = number of data lines = bits per word

Exam tip: if a memory is described as 1K × 8, the 1K (1024) is the number of words, so it needs 10 address lines (210 = 1024) and 8 data lines, giving a total of 8192 bits. Always read the form as words × bits-per-word.

Common mistake: mixing up 1K as 1000. In memory, 1K means 1024, 1M means 220 and 1G means 230. Using 1000 will give the wrong number of address lines in a hurry.

RAM vs ROM, volatile vs non-volatile

The first big classification splits read/write memory from read-only memory. RAM (Random Access Memory) can be both read and written during normal operation, and it is volatile — its contents are lost when power is removed. ROM (Read Only Memory) is written once (at manufacture or by a programmer) and then mainly read during normal operation, and it is non-volatile, retaining data without power.

The name "random access" is misleading and is a favourite trap. It means any location can be reached in the same fixed time regardless of its address, unlike a tape where you must wind through earlier data (sequential access). By that definition ROM is also random access; the term "RAM" survives by convention to mean read/write volatile memory.

FeatureRAMROM
OperationRead and writeMainly read
VolatilityVolatile (data lost on power off)Non-volatile (data retained)
SpeedFastGenerally slower
Typical useWorking storage, main memoryFirmware, BIOS, boot code
Cost per bitHigherLower

Exam tip: when an option claims that ROM is not random access, it is false. The volatile-versus-non-volatile pair is the safer distinction to rely on for RAM versus ROM questions.

SRAM vs DRAM

RAM itself divides into two technologies. SRAM (Static RAM) stores each bit in a flip-flop, typically built from six transistors. As long as power is supplied the bit holds its value with no further attention — it is "static." DRAM (Dynamic RAM) stores each bit as charge on a tiny capacitor, with just one transistor and one capacitor per cell. The charge leaks away, so DRAM must be periodically refreshed (recharged) every few milliseconds to keep its data.

Because an SRAM cell uses far more transistors, it occupies more area, so SRAM has lower density, higher cost per bit, and higher speed. DRAM packs more bits per chip cheaply but is slower and needs refresh circuitry. This is why cache memory uses SRAM (speed matters most) while main memory uses DRAM (capacity matters most).

PropertySRAMDRAM
Storage elementFlip-flop (about 6 transistors)Capacitor + 1 transistor
Refresh neededNoYes, periodically
SpeedFasterSlower
DensityLowerHigher
Cost per bitHigherLower
Power (standby)Higher static powerLower per bit
Typical useCache memoryMain memory

Common mistake: writing that SRAM needs refreshing. It is DRAM that needs refresh because it stores charge; SRAM holds its state in a flip-flop as long as power is on. Remember: D for Dynamic, D for needs to be re-driven.

Types of ROM

ROM is graded by how (and how often) it can be programmed and erased. The progression from Mask ROM to Flash is essentially the story of making ROM more and more reprogrammable while keeping it non-volatile.

  • Mask ROM — programmed by the manufacturer during fabrication; contents can never be changed. Cheapest in bulk.
  • PROM (Programmable ROM) — blank when bought; the user programs it once by blowing fuses. Write-once only.
  • EPROM (Erasable PROM) — can be erased by exposure to ultraviolet light through a quartz window, then reprogrammed electrically. Erases the whole chip at once.
  • EEPROM (Electrically Erasable PROM) — erased and reprogrammed electrically, byte by byte, without removing the chip. More flexible but slower and lower density.
  • Flash memory — a fast EEPROM variant that erases and writes in large blocks (sectors) rather than single bytes; high density, used in USB drives, SSDs and microcontroller program memory.
TypeProgrammed byErase methodReprogrammable
Mask ROMManufacturerCannot be erasedNo
PROMUser (fuses)Cannot be erasedNo (one time)
EPROMUser (electrically)Ultraviolet lightYes, whole chip
EEPROMUser (electrically)Electrical, byte-wiseYes, byte by byte
FlashUser (electrically)Electrical, block-wiseYes, block by block

Exam tip: the single most asked fact here is that EPROM is erased by ultraviolet light through a transparent quartz window, whereas EEPROM and Flash are erased electrically. Flash differs from ordinary EEPROM mainly by erasing in blocks, not bytes.

Access time vs cycle time

Access time is the delay between the moment a valid address is applied and the moment valid data appears at the output. It is a measure of how fast you can read. Memory cycle time is the minimum time that must elapse between the start of one access and the start of the next; it includes the access time plus any recovery, stabilisation or refresh time the memory needs before it is ready again.

Cycle time = Access time + Recovery time

Cycle time is always greater than or equal to access time

So cycle time is always greater than or equal to access time. For DRAM the gap is larger because the cell must be precharged and rewritten after a read, whereas SRAM has a smaller recovery overhead. Lower access time means faster memory.

Common mistake: assuming access time equals cycle time. They are equal only in idealised problems; in real memory the cycle time is longer because of recovery and (for DRAM) refresh.

Memory expansion

Single chips rarely have the exact size a system needs, so chips are combined. There are two independent ways to expand.

Word-size (bit) expansion

To widen the data word, place chips side by side sharing the same address lines. Two 1K × 4 chips driven by the same 10 address lines, one supplying the upper 4 bits and one the lower 4 bits, form a 1K × 8 memory. The number of locations stays the same; only the bits per word increase.

Word-count (capacity) expansion

To increase the number of locations, stack chips and use a decoder on the higher-order address lines to select one chip at a time. Four 1K × 8 chips selected by a 2-to-4 decoder give 4K × 8; the extra address lines feeding the decoder are the ones that pick the chip.

Number of chips = (Total capacity) ÷ (Capacity of one chip)

Chips needed to build a target memory from smaller identical chips

Exam tip: to build 8K × 8 from 1K × 8 chips you need 8K ÷ 1K = 8 chips, and the address lines grow from 10 (for 1K) to 13 (for 8K), the extra 3 lines feeding a 3-to-8 decoder for chip selection.

Memory hierarchy

Memory is arranged in a hierarchy that trades speed against cost and capacity. As you move closer to the CPU the memory gets faster, smaller and costlier per bit; as you move away it gets slower, larger and cheaper.

  1. Registers — inside the CPU, fastest, very few.
  2. Cache (SRAM) — very fast, small, holds frequently used data.
  3. Main memory (DRAM) — larger, slower, holds running programs.
  4. Secondary storage — SSD or hard disk, largest, slowest, non-volatile.

The principle that makes the hierarchy work is locality of reference: programs tend to reuse the same data and nearby instructions, so keeping that small working set in fast memory delivers most of the speed of fast memory at most of the cost of slow memory.

Key Takeaways
  • Capacity = 2 to the power n times m, where n is address lines and m is data lines (bits per word); 1K means 1024.
  • RAM is volatile read/write memory; ROM is non-volatile. Both are random access, so rely on volatility to tell them apart.
  • SRAM uses flip-flops, needs no refresh, is fast and low density; DRAM uses a capacitor per cell, needs refresh, is slow and high density.
  • EPROM is erased by ultraviolet light; EEPROM and Flash are erased electrically, EEPROM by byte and Flash by block.
  • Cycle time is greater than or equal to access time because of recovery and refresh overhead.
  • Word-size expansion shares address lines to widen the word; word-count expansion uses a decoder on high-order address lines to add locations.

Practice MCQs

Q1. A memory chip is specified as 4K x 8. How many address lines and data lines does it need?

  • A.10 address lines, 8 data lines
  • B.12 address lines, 8 data lines
  • C.12 address lines, 4 data lines
  • D.8 address lines, 12 data lines

Correct Answer: B

Explanation: 4K = 4096 = 2 to the power 12 locations, so 12 address lines are required. The word size is 8 bits, so 8 data lines are required.

Q2. Which statement about RAM is correct?

  • A.RAM is non-volatile
  • B.RAM is not random access
  • C.RAM loses its contents when power is removed
  • D.RAM can only be read, not written

Correct Answer: C

Explanation: RAM is volatile, so its contents are lost when power is removed. It is random access and supports both read and write, so the other options are false.

Q3. Why does DRAM require periodic refreshing while SRAM does not?

  • A.DRAM stores charge on a capacitor that leaks away
  • B.DRAM uses flip-flops that lose state
  • C.SRAM has a built-in battery
  • D.DRAM is non-volatile

Correct Answer: A

Explanation: A DRAM cell stores each bit as charge on a small capacitor; the charge leaks over time, so it must be refreshed. SRAM holds its bit in a flip-flop and needs no refresh while powered.

Q4. Which type of ROM is erased by exposure to ultraviolet light?

  • A.PROM
  • B.EPROM
  • C.EEPROM
  • D.Mask ROM

Correct Answer: B

Explanation: EPROM is erased by ultraviolet light shone through a quartz window, then reprogrammed electrically. EEPROM is erased electrically, PROM cannot be erased, and Mask ROM is fixed at manufacture.

Q5. Compared with DRAM, SRAM generally has:

  • A.Higher density and lower cost
  • B.Lower speed and lower cost
  • C.Higher speed and lower density
  • D.Higher speed and higher density

Correct Answer: C

Explanation: SRAM uses about six transistors per cell, making it faster but larger, so it has higher speed but lower density (and higher cost per bit) than DRAM.

Q6. The relationship between access time and memory cycle time is:

  • A.Cycle time is less than access time
  • B.Cycle time equals access time always
  • C.Cycle time is greater than or equal to access time
  • D.They are unrelated

Correct Answer: C

Explanation: Cycle time is the access time plus any recovery and refresh overhead, so it is always greater than or equal to the access time.

Q7. How many 1K x 8 chips are needed to build an 8K x 8 memory, and how is the chip selected?

  • A.4 chips, using a 2-to-4 decoder
  • B.8 chips, using a 3-to-8 decoder
  • C.8 chips, by widening data lines only
  • D.16 chips, using a 4-to-16 decoder

Correct Answer: B

Explanation: 8K divided by 1K equals 8 chips. Address lines grow from 10 to 13; the extra 3 high-order lines feed a 3-to-8 decoder that enables one chip at a time (word-count expansion).

Q8. Which memory technology is normally used for CPU cache?

  • A.DRAM
  • B.SRAM
  • C.EPROM
  • D.Flash

Correct Answer: B

Explanation: Cache must be very fast, so it uses SRAM. DRAM is used for the larger, cheaper main memory; Flash and EPROM are non-volatile ROM-family devices.

MA

MCQ Arena Team

Subject reviewers & exam mentors

This guide is written and fact-checked by the MCQ Arena editorial team — engineering graduates and competitive-exam mentors who build the question banks used on the platform. Every concept, formula and MCQ is cross-checked against standard textbooks and the latest Wireless PSI / GPSC exam pattern. Spotted an error or have a correction? Tell us — we update articles as syllabi and feedback come in.

Last reviewed and updated on June 24, 2026.

Put it into practice

Reading strategy is one thing — building it into instinct takes timed reps. Practise with daily timed mock tests on MCQ Arena.

Start practising free

Keep reading