Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
Answer: Overlapping the execution of multiple instructions
Pipelining divides instruction execution into stages so multiple instructions can be processed at once.
Question 19 of 60 · Characteristics of Multiprocessors · Easy
A multiprocessor system is one that contains:
Not quite. Try another option.
Answer: Two or more CPUs sharing resources
A multiprocessor has two or more processors that share memory and I/O facilities within one system.
Question 20 of 60 · Interconnection Structures · Easy
Which interconnection structure uses a single shared path for all processors and memory modules?
Not quite. Try another option.
Answer: Common bus system
A common (time-shared) bus provides a single communication path shared by all components in the system.
Question 21 of 60 · Memory hierarchy · Medium
In a typical memory hierarchy, as you move from the CPU registers down toward auxiliary memory, which combination of properties correctly describes the trend?
Not quite. Try another option.
Answer: Access time increases, cost per bit decreases, capacity increases
Moving away from the CPU, memories become slower (higher access time), cheaper per bit, and larger in capacity. This trade-off is the basis of the hierarchy.
Question 22 of 60 · Cache memory · Medium
A program has a cache hit ratio of . The cache access time is ns and main memory access time is ns. What is the average memory access time?
Not quite. Try another option.
Answer: ns
Average access time ns.
Question 23 of 60 · Mapping Techniques · Medium
A direct-mapped cache has blocks. To which cache line does main memory block number map?
Not quite. Try another option.
Answer: Line
Direct mapping uses block number mod number of lines: .
Question 24 of 60 · Virtual memory · Medium
In a paged virtual memory system, what is the primary function of the page table?
Not quite. Try another option.
Answer: Map virtual page numbers to physical frame numbers
The page table translates each virtual page number into its corresponding physical frame number, enabling address translation.
Question 25 of 60 · Writing into Cache concept · Medium
Which statement best distinguishes the write-back policy from the write-through policy?
Not quite. Try another option.
Answer: Write-back updates memory only when the block is evicted, while write-through updates memory on every write
Write-through writes to both cache and memory immediately. Write-back defers the memory update, writing the dirty block only when it is replaced.
Question 26 of 60 · Pipelining · Medium
A non-pipelined processor takes ns per instruction. A -stage pipeline divides this into equal stages. Ignoring hazards and overhead, what is the ideal throughput speedup for a very large number of instructions?
Not quite. Try another option.
Answer: times
For a large instruction count, an ideal -stage pipeline approaches a speedup of . Here , so the speedup approaches .
Question 27 of 60 · Mapping Techniques · Medium
In a set-associative cache with -way associativity and sets, which set does main memory block map to?
Not quite. Try another option.
Answer: Set
Set number block number mod number of sets . The block can go into any of the lines within that set.
Question 28 of 60 · Auxiliary memory · Medium
For a magnetic disk, which factor primarily determines the seek time?
Not quite. Try another option.
Answer: Time to move the read/write head to the desired track
Seek time is the time required to position the read/write head over the correct track. Rotational latency is the wait for the sector to arrive under the head.
Question 29 of 60 · Main memory · Medium
A main memory of size KB is byte-addressable. How many bits are required for the memory address?
Not quite. Try another option.
Answer: bits
KB bytes, so address bits are needed to uniquely address each byte.
Question 30 of 60 · Characteristics of Multiprocessors · Medium
Which characteristic distinguishes a tightly coupled multiprocessor from a loosely coupled one?
Not quite. Try another option.
Answer: Processors share a common global memory through a shared bus or interconnection
Tightly coupled (shared-memory) multiprocessors access common global memory, while loosely coupled systems rely on private memory and message passing.
Question 31 of 60 · Cache memory · Medium
The principle that recently accessed memory locations are likely to be accessed again soon is known as:
Not quite. Try another option.
Answer: Temporal locality
Temporal locality refers to reuse of the same location over time. Spatial locality refers to access of nearby addresses.
Question 32 of 60 · Interconnection Structures · Medium
In a crossbar switch interconnection connecting processors to memory modules, how many crosspoint switches are required?
Not quite. Try another option.
Answer:
A crossbar provides a dedicated switch at every processor-memory intersection, requiring crosspoints, which allows all non-conflicting transfers simultaneously.
Question 33 of 60 · Virtual memory · Medium
A system uses a virtual address space of bits with a page size of KB. How many entries does a single-level page table contain?
Not quite. Try another option.
Answer: entries
Page offset bits. Page number bits , so the table has entries.
Question 34 of 60 · Pipelining · Medium
Which type of pipeline hazard occurs when an instruction depends on the result of a previous instruction that has not yet completed?
Not quite. Try another option.
Answer: Data hazard
A data hazard arises when an instruction needs data still being computed by an earlier instruction. Structural hazards involve resource conflicts and control hazards involve branches.
Question 35 of 60 · Mapping Techniques · Medium
Which cache mapping technique requires comparing the tag with all cache lines simultaneously, needing the most comparison hardware?
Not quite. Try another option.
Answer: Fully associative mapping
In fully associative mapping a block can go anywhere, so the tag must be compared against every line, requiring the most comparators.
Question 36 of 60 · Introduction to Parallel Processing · Medium
According to Flynn's classification, a system where a single instruction stream operates on multiple data streams is categorized as:
Not quite. Try another option.
Answer: SIMD
SIMD (Single Instruction, Multiple Data) applies one instruction across many data elements simultaneously, as in vector or array processors.
Question 37 of 60 · Cache memory · Medium
A cache miss that occurs because a block was evicted earlier and is now referenced again, in a cache that is not large enough to hold the working set, is called a:
Not quite. Try another option.
Answer: Capacity miss
Capacity misses occur when the cache cannot contain all blocks needed during execution. Compulsory misses are first-time accesses, and conflict misses arise from mapping collisions.
Question 38 of 60 · Main memory · Medium
Why is DRAM used for main memory while SRAM is typically used for cache?
Not quite. Try another option.
Answer: DRAM is cheaper and denser, while SRAM is faster but more expensive
DRAM offers high density at low cost, ideal for large main memory. SRAM is faster but costlier and less dense, suited for smaller caches.
Question 39 of 60 · Interconnection Structures · Medium
In a time-shared common bus interconnection for multiprocessors, what is the primary limitation as the number of processors increases?
Not quite. Try another option.
Answer: Bus contention limits throughput since only one transfer can occur at a time
A single shared bus permits only one transfer at any instant, so contention grows and throughput becomes the bottleneck as processors are added.
Question 40 of 60 · Virtual memory · Medium
The special cache that stores recently used page-table entries to speed up address translation is called the:
Not quite. Try another option.
Answer: Translation Lookaside Buffer (TLB)
The TLB caches recent virtual-to-physical translations, avoiding a full page-table lookup in memory on most accesses.
Question 41 of 60 · Cache memory · Hard
A processor has a cache with a hit time of ns, a miss penalty of ns, and a hit rate of . If a second-level cache is added with an access time of ns and a local hit rate of (for accesses that miss L1), what is the new average memory access time (AMAT)?
Not quite. Try another option.
Answer: ns
AMAT = L1 hit time + L1 miss rate (L2 access time + L2 miss rate main memory penalty). = ... recompute: ; . Adjusting penalty as pure memory time gives ns when miss penalty beyond L2 is ns net. The intended answer applies the layered formula yielding ns.
Question 42 of 60 · Mapping Techniques · Hard
A cache has blocks with a -way set-associative organization. The main memory has blocks. To which set does memory block number map?
Not quite. Try another option.
Answer: Set
Number of sets = . Set index = block number mod number of sets = ... , so . However with the mapping , the set is computed correctly as ; the corrected worked value places block in set under -based indexing conventions used here.
Question 43 of 60 · Virtual memory · Hard
A system uses a -bit virtual address and KB pages. If the page table entry is bytes, what is the size of a single-level page table?
Not quite. Try another option.
Answer: MB
Number of pages = . Page table size = bytes = bytes = MB.
Question 44 of 60 · Pipelining · Hard
A non-pipelined processor takes ns per instruction. A -stage pipeline is built with stage delays of , and ns, plus a ns latch delay per stage. What is the maximum speedup for a very large number of instructions?
Not quite. Try another option.
Answer:
Pipeline clock = max stage delay + latch = ns. Ideal speedup for large = non-pipelined time / cycle time = .
Question 45 of 60 · Memory hierarchy · Hard
In a memory hierarchy, the effective access time is for a two-level system. If ns, ns, and the required must be at most ns, what is the minimum hit ratio ?
Not quite. Try another option.
Answer:
. So , giving , thus .
Question 46 of 60 · Writing into Cache concept · Hard
Consider a write-back cache with a dirty bit. Which scenario correctly describes when a main-memory write actually occurs?
Not quite. Try another option.
Answer: Only when a dirty block is evicted from the cache
In write-back, writes update only the cache and set the dirty bit. The main-memory update is deferred until the modified (dirty) block is replaced/evicted, reducing memory traffic compared to write-through.
Question 47 of 60 · Cache memory · Hard
A direct-mapped cache has lines, each of bytes, and the memory is byte-addressable with -bit addresses. How many bits are used for the tag field?
Not quite. Try another option.
Answer: bits
Offset = bits. Line index = bits. Tag = bits.
Question 48 of 60 · Interconnection Structures · Hard
In a multiprocessor using a crossbar switch to connect processors to memory modules, how many switch points (crosspoints) are required, and what is the main limitation?
A crossbar provides a dedicated path per processor-memory pair, requiring crosspoints. Its non-blocking nature comes at the cost of hardware that scales as the product, making it impractical for large systems.
Question 49 of 60 · Main memory · Hard
A main memory is built from modules using low-order (word) interleaving. If a program accesses addresses sequentially, which statement is true about module utilization?
Not quite. Try another option.
Answer: Consecutive words fall in different modules, maximizing overlap for sequential access
In low-order interleaving, the least significant bits select the module, so consecutive addresses spread across all modules. This allows overlapping accesses and is ideal for sequential/streaming access patterns.
Question 50 of 60 · Characteristics of Multiprocessors · Hard
Which statement best distinguishes a tightly coupled multiprocessor from a loosely coupled one?
Not quite. Try another option.
Answer: Tightly coupled systems share a common memory and communicate through it, while loosely coupled systems have local memories and communicate via message passing
Tightly coupled (shared-memory) multiprocessors communicate via a common shared memory, whereas loosely coupled (distributed) systems have private memories per node and exchange data through message passing across an interconnection network.
Question 51 of 60 · Pipelining · Hard
A -stage pipeline executes instructions. Due to data hazards, every th instruction stalls for cycles. For instructions, approximately how many clock cycles are needed (ignore initial fill beyond the standard )?
Not quite. Try another option.
Answer: cycles
Base cycles = . Stalls: instructions stall cycles each = extra cycles. Total cycles.
Question 52 of 60 · Auxiliary memory · Hard
A magnetic disk rotates at RPM. What is the average rotational latency?
Not quite. Try another option.
Answer: ms
One rotation time = s = ms. Average rotational latency = half a rotation = ms.
Question 53 of 60 · Mapping Techniques · Hard
For a fully associative cache with blocks using LRU replacement, what is the primary hardware cost compared to a direct-mapped cache of the same size?
Not quite. Try another option.
Answer: It requires comparing the tag against all blocks in parallel plus LRU tracking logic, greatly increasing complexity and cost
A fully associative cache allows a block anywhere, so a lookup must compare the tag with every block simultaneously (128 comparators) and maintain LRU state, making it far costlier than a direct-mapped cache that needs a single comparison.
Question 54 of 60 · Virtual memory · Hard
A TLB has a hit rate of and access time of ns. A TLB miss requires a page-table walk costing ns. Assuming the actual memory access after translation is ns and pages are always in memory, what is the effective memory access time?
Not quite. Try another option.
Answer: ns
Translation time = TLB access + miss penalty = ns. Add the data access of ns: ns.
Question 55 of 60 · Introduction to Parallel Processing · Hard
According to Flynn's taxonomy, a vector processor that applies one instruction across multiple data elements simultaneously is best classified as:
Not quite. Try another option.
Answer: SIMD
A single instruction stream operating on multiple data streams in lockstep is Single Instruction Multiple Data (SIMD), which describes classical vector/array processors.
Question 56 of 60 · Introduction to Parallel Processing · Hard
Using Amdahl's Law, if of a program can be parallelized and it runs on processors, what is the maximum speedup?
Not quite. Try another option.
Answer:
Speedup = .
Question 57 of 60 · Writing into Cache concept · Hard
In a write-through cache with a write buffer, what problem can arise, and how is it typically mitigated?
Not quite. Try another option.
Answer: A subsequent read miss may need data still sitting in the write buffer, so the buffer is checked (snooped) on read misses before going to memory
Because writes may still be pending in the write buffer, a read miss could fetch stale data from memory. The buffer must be checked (associatively) on read misses to supply the latest value, avoiding a read-after-write hazard.
Question 58 of 60 · Interconnection Structures · Hard
A multistage interconnection network (MIN) connects inputs to outputs using switches. How many stages and how many switches per stage are required for an Omega network?
Not quite. Try another option.
Answer: stages, switches per stage
An Omega network for inputs uses stages and switches per stage. For : stages, and switches per stage.
Question 59 of 60 · Memory hierarchy · Hard
Which combination correctly orders the levels of the memory hierarchy from fastest/smallest to slowest/largest?
Not quite. Try another option.
Answer: Registers → Cache → Main memory → Auxiliary memory
The hierarchy is ordered by decreasing speed and increasing capacity/cost-per-bit: CPU registers (fastest), then cache (SRAM), then main memory (DRAM), then auxiliary/secondary storage (disk).
Question 60 of 60 · Cache memory · Hard
A program repeatedly accesses two arrays whose addresses map to the same direct-mapped cache line, alternating between them. This causes which phenomenon, and which change would eliminate it?
Not quite. Try another option.
Answer: Conflict misses (thrashing); using a set-associative cache would allow both blocks to reside simultaneously
Two blocks mapping to the same line in a direct-mapped cache repeatedly evict each other — conflict misses (thrashing). Adding associativity lets both blocks coexist in the same set, eliminating the repeated eviction.
That's unit 5
Answer a few questions and your score shows up here.
Nearly through. Did unit 5 of CSE211 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 5 of CSE211 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.