Q: 1 The capacity of a memory unit is defined by the number of words multiplied by the number of bits per word. How many separate address and data line are needed for a memory of 4K*16?
10 address lines and 16 data lines
12 address lines and 10 data lines
12 address lines and 16 data lines
12 address lines and 8 data lines
[ Option C ]
A memory unit stores data in the form of words. Each word contains a fixed number of bits. The total capacity of a memory is therefore defined as:
Memory Capacity=Number of words × Number of bits per word
To access and transfer data between the CPU and memory, two types of lines are used:
The Given Memory : 4K * 16
4K represents the number of words in memory : 4K = 4*1024 = 4096 Words.
16 represents the number of bits per word.
Each memory word must have a unique address. The number of address lines required depends on how many different addresses must be generated or number of memory locations (words).
Number of address lines = log2(Number of Words)
=log2(4096) = 12 or 4096=212
The memory needs 12 address lines to uniquely identify all 4096 words.
Data lines are used to read or write one complete word at a time. Since each word contains 16 bits, the memory must have 16 data lines.
NOTE:
Q: 2 An I/O processor controls the flow of information between:
Cache memory and I/O devices
Main memory and I/O devices
Two I/O devices
Cache and main memory
[ Option B ]
An I/O processor is a special-purpose processor used to handle input and output operations independently of the CPU. Its main job is to manage data transfer between I/O devices and Main Memory.
By doing this, the I/O processor reduces the workload on the CPU and allows the CPU to continue executing other instructions while I/O operations are in progress.
Q: 3 In the virtual memory system, the address space specified by address line of the CPU must be __________ than the physical memory size and __________ than the secondary storage size.
smaller, smaller
smaller, larger
larger, larger
larger, smaller
[ Option D ]
In a Virtual Memory system, the CPU generates addresses based on its address lines, which define the virtual address space. This virtual address space represents the range of memory addresses that a program can use, and it is not limited to the size of the physical main memory (RAM).
One of the main purposes of virtual memory is to allow programs to use an address space that is larger than the available physical memory, with the extra portion being stored on secondary storage.
However, the virtual address space cannot exceed the size of the secondary storage, because secondary storage is where the non-resident pages of memory are actually stored.
Therefore, the address space specified by the CPU must be larger than the physical memory size but smaller than the secondary storage size.
Q: 4 How many 32K*1 RAM chips are needed to provided a memory capacity of 256K bytes?
8
128
64
32
[ Option C ]
Each RAM chip is of size 32K × 1. This means, 32K locations and 1 bit per location. So, capacity of one chip is 32K*1 bit=32K bits.
Required memory capacity : 256K bytes = 256K*8 = 2048K bits
Number of chips required : 2048K bits/32K bits per chip = 64
Q: 5 The main disadvantage of direct mapping of cache organization is that?
It does not allow simultaneous access to the intended data and its tag
It is more expensive than other type of organization
The cache hit ratio is degraded if two more blocks used alternatively map onto the same block frame in the cache
The number of blocks required for the caches increases linearly with the size of the main memory
[ Option C ]
Cache Memory is used to store frequently accessed data so that the CPU can access it faster than main memory.
In direct mapping, each block of main memory is mapped to exactly one fixed location (line) in the cache.
This fixed mapping makes the design simple and inexpensive, but it also introduces a major drawback known as the conflict problem.
When two or more frequently accessed main memory blocks are mapped to the same cache line, they continuously replace each other in the cache.
As a result, even though the blocks are repeatedly used, they cannot remain in the cache simultaneously. This frequent replacement reduces the cache hit ratio and degrades overall performance.
Q: 6 The cache memory is more effective because of?
Memory Localization
Locality of Reference
Memory Size
None of these
[ Option B ]
Cache Memory works effectively because of the locality of reference principle. This means that programs tend to access the same data or instructions repeatedly (Temporal Locality) or access nearby memory locations (Spatial Locality). Cache stores such frequently or recently used data, so the CPU can access it much faster than main memory.
Q: 7 A RAM chip has a capacity of 1024 words of 8 bits each (1K X 8). The number of 2 X 4 decoders with enable line needed to construct a 16K X 16 RAM from 1K X 8 RAM is—
4
5
6
7
[ Option B ]
Q: 8 Let the memory access time is 10 milliseconds and cache access time is 10 microseconds. If the cache hit ratio 15% then the effective memory access time is?
2 milliseconds
1.5 milliseconds
1.85 microseconds
1.85 milliseconds
[ Option D ]
Effective Memory Access Time (EMAT) depends on how often data is found in the cache (hit) and how often it must be fetched from main memory (miss).
Given:
EMAT = (Hit Ratio*Cache Access Time) + (Miss Ratio*Main Memory Access Time)
EMAT = (0.15*0.01 ms) + (0.85*10 ms)
EMAT = 0.0015 ms + 8.5 ms
EMAT = 8.5015 ms = 1.85 milliseconds.
Q: 9 The memory unit which directly communicate with the CPU is known as?
Primary Memory
Secondary Memory
Shared Memory
Auxiliary Memory
[ Option A ]
The CPU can directly access only one type of memory, which is the memory used to store programs and data that are currently being executed. This type of memory is called Primary Memory or Main Memory or RAM.
Q: 10 How many address lines are needed to address a memory of 512 bytes?
6
7
8
9
[ Option D ]
Address Lines in Memory
Given: Memory size = 512 bytes
Number of address lines n is calculated using:
2n = Memory size in bytes
2n = 512
Since 29=512, we find n=9.
Q: 11 A main memory has an access time of 45ns. A 5ns time gap is necessary for completion of one access to beginning of next access. The bandwidth of the memory is?
25 MHz
20 MHz
40 MHz
50 MHz
[ Option B ]
The bandwidth of memory tells us how many memory accesses can be completed per second. To find this, we must first calculate the total time required for one complete memory cycle.
Given,
Access time = 45ns
Time gap before next access = 5ns
Total Cycle Time : 45ns + 5ns = 50ns
Bandwidth is the reciprocal of the cycle time:
Bandwidth : 1 / (Access Time + Recovery Time)
Bandwidth : 1/(50*10-9) Since : 1ns = 10-9 seconds
Bandwidth : 1000*106/50 = 20*106 Hz
Bandwidth : 20 MHz
Time and Frequency Units:
| UNIT | SYMBOL | VALUE (POWER OF 10) | EXAMPLE |
|---|---|---|---|
| Picosecond | ps | 10-12 | 1 ps = 10-12 s |
| Nanosecond | ns | 10-9 | 1 ns = 10-9 s |
| Microsecond | µs | 10-6 | 1 µs = 10-6 s |
| Millisecond | ms | 10-3 | 1 ms = 10-3 s |
| Second | s | 100 | 1 s |
| Hertz | Hz | 100 | 1 Hz |
| Kilohertz | kHz | 103 | 1 kHz = 103 Hz |
| Megahertz | MHz | 106 | 1 MHz = 106 Hz |
| Gigahertz | GHz | 109 | 1 GHz = 109 Hz |
| Terahertz | THz | 1012 | 1 THz = 1012 Hz |
Q: 12 Dynamic RAM consumes ________ power and ________ than static RAM.
more, faster
more, slower
less, slower
less, faster
[ Option C ]
Dynamic RAM (DRAM) stores data using capacitors and needs periodic refreshing to retain data. Because of this design, DRAM consumes less power compared to Static RAM (SRAM), which uses flip-flops and consumes more power continuously.
However, the access time of DRAM is slower than SRAM because refreshing and capacitor charging take extra time.
Q: 13 A CPU has a 12 bit address for memory addressing. If the memory has a total capacity of 16 KB, what is the word length of the memory?
2 bytes
4 bytes
8 bytes
16 bytes
[ Option B ]
The number of address lines tells us how many memory locations (words) can be addressed.
With a 12-bit address, the CPU can address: 212=4096 words
The total memory capacity is given as 16 KB.
16 KB = 16×1024 = 16384 bytes
Now, word length means the number of bytes per word. It can be calculated as:
Word Length = Total memory size (in bytes) / Number of words
Word Length = 16384 / 4096 = 4 bytes.
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.