week 3 Flashcards

1
Q

Define computer memory and explain its purpose in a computer system.

A

Computer memory is used to store data or programs temporarily or permanently for use by the computer. It enables the computer to execute tasks and store results.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the smallest unit of memory in a computer, and how is it represented?

A

he smallest unit is the bit (binary digit), represented as either 0 or 1.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Differentiate between RAM and ROM in terms of volatility, usage, and cost.

A

RAM: Volatile, faster, more expensive, used for temporary storage of active data.
ROM: Non-volatile, slower, cheaper, used for permanent storage like the boot process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Name and describe the three main types of cache memory.

A

L1 Cache: Fastest, small (e.g., 64KB), embedded in CPU cores.
L2 Cache: Larger than L1, slower but still fast.
L3 Cache: Shared among CPU cores, largest but slower compared to L1 and L2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Explain the memory hierarchy concerning size, cost, and speed. Why is it important for system performance?

A

The memory hierarchy ranges from registers (fastest, smallest, most expensive) to secondary storage (slowest, largest, cheapest). It ensures cost-effective and efficient performance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the key features of internal memory compared to secondary memory?

A

Internal Memory: Faster, volatile, includes registers and cache.
Secondary Memory: Non-volatile, larger, cheaper, used for long-term storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the primary differences between SRAM and DRAM?

A

SRAM: Faster, uses flip-flops, no refreshing, smaller capacity.
DRAM: Slower, uses capacitors, requires refreshing, larger capacity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Describe the use of EPROM and EEPROM. How are they different from each other?

A

EPROM: Data erased with UV light, reprogrammable once.
EEPROM: Data erased electronically, reprogrammable multiple times.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Compare random access, direct access, and sequential access. Give examples of memory types for each.

A

Random Access: Independent of location (e.g., RAM, cache).
Direct Access: Depends on proximity (e.g., HDD, optical disks).
Sequential Access: Data read sequentially (e.g., magnetic tapes).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is virtual memory, and how does it enhance multitasking in a computer system?

A

Virtual memory combines RAM and disk storage, enabling multitasking and preventing “out of memory” errors by using paging or segmentation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a cache miss, and how does the presence of L3 cache help reduce its occurrence?

A

A cache miss occurs when data isn’t found in cache memory. L3 cache helps by providing a larger storage pool, reducing CPU dependency on slower main memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Describe the concept of paging and segmentation in virtual memory management.

A

Paging: Fixed-size memory blocks.
Segmentation: Variable-size memory blocks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Mention an example of where FPM and EDO DRAM were used historically.

A

FPM: Used in older PCs and devices like Sega Genesis.
EDO DRAM: Found in Pentium Series PCs and Nintendo 64.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Provide examples of devices that utilize Flash ROM.

A

Flash ROM is used in smartphones (e.g., iPhone), USB drives, and laptops.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Explain how RAM is used during the execution of a program.

A

RAM temporarily stores the operating system, application programs, and active data while executing a program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Why is secondary memory considered non-volatile, and what are its advantages?

A

Secondary memory is non-volatile because data persists after power loss. It is cost-effective for large-scale storage.