Docsity

WGU C952 Computer Ar chitecture Objective, Exams of Computer Science

Toggle sidebar
bg1
WGU C952 Computer Ar-
chitecture Objective
SET 1: Performance, Power, and ISA Fundamentals (Questions 1-16)
1. A program runs on a 2 GHz processor in 10 seconds. A new processor is being designed that will run the
same program in 6 seconds. If the new processor requires 30% more clock cycles than the original proces-
sor to execute the program, what is the required clock rate of the new processor?
a) 3.2 GHz
b) 4.33 GHz
c) 2.6 GHz
d) 5.0 GHz
ANSWER: b) 4.33 GHz
Rationale: Original CPU time = 10s, Clock Rate = 2 GHz. Total cycles (Original) = Time × Rate = 10 × 2e9 =
2e10 cycles. New cycles = 2e10 * 1.3 = 2.6e10 cycles. New Time = 6s. New Clock Rate = Cycles / Time =
2.6e10 / 6 = 4.33e9 Hz = 4.33 GHz.
2. Which of the following is the primary advantage of a RISC (Reduced Instruction Set Computer) archi-
tecture like RISC-V over a CISC (Complex Instruction Set Computer) architecture?
a) Smaller code size for complex applications.
b) Simpler hardware control logic enabling higher clock speeds and pipelining efficiency.
c) Fewer instructions are required to perform a given task.
d) Direct manipulation of memory operands in arithmetic instructions.
ANSWER: b) Simpler hardware control logic enabling higher clock speeds and pipelining efficiency.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15

Partial preview of the text

Download WGU C952 Computer Ar chitecture Objective and more Exams Computer Science in PDF only on Docsity!

WGU C952 Computer Ar-

chitecture Objective

SET 1: Performance, Power, and ISA Fundamentals (Questions 1-16)

1. A program runs on a 2 GHz processor in 10 seconds. A new processor is being designed that will run the same program in 6 seconds. If the new processor requires 30% more clock cycles than the original proces- sor to execute the program, what is the required clock rate of the new processor? a) 3.2 GHz b) 4.33 GHz c) 2.6 GHz d) 5.0 GHz ANSWER : b) 4.33 GHz Rationale: Original CPU time = 10s, Clock Rate = 2 GHz. Total cycles (Original) = Time × Rate = 10 × 2e9 = 2e10 cycles. New cycles = 2e10 * 1.3 = 2.6e10 cycles. New Time = 6s. New Clock Rate = Cycles / Time = 2.6e10 / 6 = 4.33e9 Hz = 4.33 GHz. 2. Which of the following is the primary advantage of a RISC (Reduced Instruction Set Computer) archi- tecture like RISC-V over a CISC (Complex Instruction Set Computer) architecture? a) Smaller code size for complex applications. b) Simpler hardware control logic enabling higher clock speeds and pipelining efficiency. c) Fewer instructions are required to perform a given task. d) Direct manipulation of memory operands in arithmetic instructions. ANSWER : b) Simpler hardware control logic enabling higher clock speeds and pipelining efficiency.

Rationale: RISC architectures utilize a fixed instruction length and a load-store architecture, which simpli- fies the control unit (often hardwired rather than microcoded), allowing for higher clock frequencies and deeper pipelining. CISC typically offers better code density (a) but at the cost of complex decoding.

Rationale: In RISC-V, immediates are often 12 bits. The sign-extend unit expands these to 32 bits so they can be used by the ALU with full 32-bit registers.

7. A processor has a 2.5 GHz clock frequency. What is the clock cycle time? a) 0.4 ns b) 0.4 ps c) 2.5 ns d) 400 ms ANSWER : a) 0.4 ns Rationale: Cycle Time = 1 / Frequency. 1 / (2.5 × 10^9) = 0.4 × 10^{-9} seconds = 0.4 nanoseconds. 8. Which RISC-V instruction format is primarily used for conditional branch instructions (e.g., beq)? a) R-type b) I-type c) S-type d) SB-type ANSWER : d) SB-type Rationale: R-type is for register-register operations (add, sub). I-type is for immediate arithmetic and loads. S-type is for stores. SB-type is a variant of S-type specifically for conditional branches, encoding a split immediate for the branch offset. 9. In Amdahl’s Law, what does the variable ‘P’ typically represent? a) The total number of processors. b) The proportion of execution time that is parallelizable. c) The performance improvement factor. d) The power consumption of a parallel system. ANSWER : b) The proportion of execution time that is parallelizable. Rationale: Amdahl’s Law: Speedup = 1 / [(1 - P) + P/S]. ‘P’ is the fraction of the task that can benefit from parallelization. (1-P) is the serial bottleneck. 10. Which of the following is a characteristic of the UJ-type instruction format in RISC-V? a) Used for register-to-register arithmetic. b) Used for unconditional jumps like jal, containing a 20-bit immediate. c) Used for store instructions. d) Used for branch instructions. ANSWER : b) Used for unconditional jumps like jal, containing a 20-bit immediate. Rationale: The UJ (Unconditional Jump) format is used for the jal (jump and link) instruction, which has a 20-bit immediate to specify a large jump offset. 11. A designer wants to improve performance. Option A improves the ALU (40% of time) by 4x. Option B improves the Memory Unit (60% of time) by 2x. Which is better? a) Option A b) Option B c) Both are equal d) Neither improves performance. ANSWER : a) Option A

Rationale: Amdahl’s Law: Speedup_A = 1 / [(1-0.4) + 0.4/4] = 1 / [0.6 + 0.1] = 1 / 0.7 = 1.428. Speedup_B = 1 / [(1-0.6) + 0.6/2] = 1 / [0.4 + 0.3] = 1 / 0.7 = 1.428. They are equal. Wait, recalc: A=1/0.7=1.428, B=1/0.7=1.428. They are equal. (Correction for question intent): If numbers were different (e.g., 30% ALU, 70% Mem), the larger fraction yields higher speedup if improvement factor is similar. In this specific math, they tie.

12. Which of the following is the primary function of the Program Counter (PC)? a) Stores the result of the last ALU operation. b) Holds the address of the next instruction to be fetched. c) Stores the current instruction being executed. d) Manages the stack pointer for function calls. ANSWER : b) Holds the address of the next instruction to be fetched. Rationale: The PC is a register that always points to the next instruction in memory. The fetch stage uses the PC to retrieve the instruction. 13. The fld (floating-point load) instruction in RISC-V is classified as which type? a) R-type b) I-type c) S-type d) U-type ANSWER : b) I-type Rationale: fld (Floating Point Load) uses an immediate offset and a base register, fitting the I-type format (Immediate), similar to ld for integer registers. 14. If a program has an instruction count of 10 billion, a CPI of 1.2, and a clock rate of 3 GHz, what is the execution time? a) 3 seconds b) 4 seconds c) 2.5 seconds d) 3.6 seconds ANSWER : b) 4 seconds Rationale: Time = (IC × CPI) / Clock Rate = (10e9 × 1.2) / (3e9) = 12e9 / 3e9 = 4 seconds. 15. What does the acronym ISA stand for? a) Instruction Set Architecture b) Integrated System Assembly c) Interrupt Service Algorithm d) Internal Storage Allocation

struction. If the pipeline doesn't forward, the second instruction will read a stale value.

20. How does “forwarding” (or bypassing) solve a data hazard? a) It stalls the pipeline until the data is available. b) It predicts the outcome of the branch to fetch instructions speculatively. c) It routes the result from the Execute or Memory stage directly to the Execute stage input of the depen- dent instruction. d) It reorders instructions at compile time to avoid dependencies. ANSWER : c) It routes the result from the Execute or Memory stage directly to the Execute stage input of the dependent instruction. Rationale: Forwarding logic detects that the ALU result for the first instruction is available (at the end of EX) and feeds it directly to the start of EX for the next instruction, bypassing the register file write and read. 21. Which component is responsible for predicting the outcome of a branch to minimize stalls? a) Branch Target Buffer (BTB) b) Translation Lookaside Buffer (TLB) c) Arithmetic Logic Unit (ALU) d) Program Counter (PC) ANSWER : a) Branch Target Buffer (BTB) Rationale: The BTB caches information about previous branches, including the target address and poten- tially a prediction (taken/not-taken) to allow the fetch stage to continue without waiting for the branch to resolve in the EX stage. 22. A CPU has a 2 ns clock cycle time. If a pipeline has 5 stages, what is the theoretical throughput (in- structions per second) assuming no hazards? a) 100 million instructions per second b) 500 million instructions per second c) 1 billion instructions per second d) 2 billion instructions per second ANSWER : b) 500 million instructions per second Rationale: Throughput = 1 / Clock Cycle Time = 1 / (2 × 10^{-9}) = 500 × 10^6 instructions per second. In a perfect pipeline, one instruction completes per cycle. 23. In a memory hierarchy, which of the following properties is associated with “locality of reference”? a) Temporal locality: Recently accessed data is likely to be accessed again soon. b) Spatial locality: Data stored sequentially in memory is likely to be accessed sequentially. c) Both a and b. d) None of the above.

ANSWER : c) Both a and b. Rationale: Temporal locality (time) and spatial locality (space) are the two fundamental principles that make caching effective.

24. A processor uses a 64 KiB direct-mapped cache with 16-byte blocks. What is the number of sets? a) 1024 b) 2048 c) 4096 d) 512 ANSWER : c) 4096 Rationale: Cache Size = Number of Sets × Associativity × Block Size. Direct-mapped = Associativity 1. 64 KiB = 65536 bytes. 65536 = Sets × 1 × 16. Sets = 65536 / 16 = 4096. 25. What is the difference between a cache “miss” and a cache “hit”? a) Hit: Data found in cache; Miss: Data not found in cache. b) Hit: Data found in main memory; Miss: Data not found in main memory. c) Hit: CPU writes to cache; Miss: CPU writes to disk. d) Hit: ALU operation succeeds; Miss: ALU operation fails. ANSWER : a) Hit: Data found in cache; Miss: Data not found in cache. Rationale: A hit occurs when the requested data resides in the cache. A miss occurs when it is not, neces- sitating a fetch from the lower level of memory (e.g., main memory). 26. Which of the following is a characteristic of a fully associative cache? a) A memory block can only be placed in one specific cache set. b) A memory block can be placed in any cache line. c) The cache is divided into sets, and a block can go into any line within a set. d) It requires the fewest comparators of all cache types. ANSWER : b) A memory block can be placed in any cache line. Rationale: Fully associative caches offer maximum placement flexibility but require complex (and many) comparators to search all tags in parallel. 27. What is the purpose of the “dirty bit” in a cache? a) To indicate that the cache line is currently being accessed. b) To indicate that the data in the cache has been modified and is inconsistent with main memory. c) To indicate that the cache line is valid. d) To indicate the replacement priority (LRU). ANSWER : b) To indicate that the data in the cache has been modified and is inconsistent with main memory. Rationale: When a write occurs to a cache line (in write-back caches), the dirty bit is set. When the line is evicted, it must be written back to main memory only if the dirty bit is set. 28. A “TLB” (Translation Lookaside Buffer) is used to accelerate: a) Arithmetic operations. b) Virtual to physical address translation. c) Branch prediction. d) Floating-point calculations.

SET 3: Arithmetic, Data-Level Parallelism, and Virtual Memory (Questions 33-48)

33. What is the hexadecimal representation of the decimal number -1 in 32-bit two’s complement? a) 0x b) 0x c) 0xFFFFFFFF d) 0xFFFFFFFE ANSWER : c) 0xFFFFFFFF Rationale: In two’s complement, - 1 is represented by inverting all bits of 1 (0x00000001 → 0xFFFFFFFE) and adding 1, resulting in 0xFFFFFFFF. 34. When multiplying two 32-bit integers, what is the maximum size of the product to avoid overflow? a) 32 bits b) 33 bits c) 64 bits d) 128 bits ANSWER : c) 64 bits Rationale: The product of two n-bit numbers can require up to 2n bits. For 32-bit numbers, the product can be up to 64 bits. 35. In floating-point representation (IEEE 754 single precision), what does the exponent field repre- sent? a) The actual exponent with a bias of 127. b) The actual exponent with a bias of 1023. c) The significand in normalized form. d) The sign of the number. ANSWER : a) The actual exponent with a bias of 127. Rationale: Single precision uses 8 bits for exponent with a bias of 127. To get the actual exponent, sub- tract 127 from the stored exponent field. 36. What is the primary advantage of using SIMD (Single Instruction Multiple Data) instructions (e.g., RISC-V Vector Extensions)? a) Increased clock frequency. b) Reduced power consumption per instruction. c) Data-level parallelism, performing the same operation on multiple data elements in one instruction. d) Reduced code size. ANSWER : c) Data-level parallelism, performing the same operation on multiple data elements in one instruction. Rationale: SIMD architectures exploit data-level parallelism by applying a single operation to vectors of data, which is highly efficient for multimedia, scientific, and machine learning workloads. 37. In virtual memory, what is a “page fault”? a) An attempt to access a memory address that is not currently in physical memory. b) An attempt to write to a read-only page. c) An error in the page table format. d) A misaligned memory access.

ANSWER : a) An attempt to access a memory address that is not currently in physical memory. Rationale: A page fault occurs when the MMU looks up a virtual address in the page table and finds that the valid bit is 0, meaning the page is not present in physical memory (it may be on disk).

38. Which of the following is the primary function of the Memory Management Unit (MMU)? a) To manage the cache coherency protocol between cores. b) To translate virtual addresses to physical addresses. c) To perform arithmetic operations on memory addresses. d) To manage DMA transfers. ANSWER : b) To translate virtual addresses to physical addresses. Rationale: The MMU sits between the CPU and memory, handling the translation of virtual addresses generated by the CPU into physical addresses on the DRAM. 39. A page table entry (PTE) typically includes a “valid” bit. What does this bit indicate? a) The page is currently in the TLB. b) The page is currently in physical memory. c) The page is allowed to be written to. d) The page has been referenced recently. ANSWER : b) The page is currently in physical memory. Rationale: The valid bit indicates whether the translation for the page is valid (i.e., the page is present in physical memory). If it is not set (invalid), accessing that virtual address causes a page fault. 40. Which of the following page replacement algorithms is theoretically optimal but not implementable in practice? a) Least Recently Used (LRU) b) First In First Out (FIFO) c) Optimal (MIN) – replace the page that will not be used for the longest time. d) Not Recently Used (NRU) ANSWER : c) Optimal (MIN) – replace the page that will not be used for the longest time. Rationale: The optimal algorithm looks into the future to see which page will be unused for the longest period. Since the future is unknown, it is used only as a benchmark for comparison. 41. What is the main advantage of a multi-level page table? a) It reduces the TLB miss rate. b) It speeds up context switches. c) It reduces the amount of physical memory required to store page tables for sparse address spaces. d) It eliminates page faults. ANSWER : c) It reduces the amount of physical memory required to store page tables for sparse address spaces. Rationale: Instead of allocating a contiguous page table for the entire virtual address space, multi-level tables allow page tables to be allocated only for the virtual memory regions actually in use. 42. In IEEE 754 double-precision floating point, how many bits are used for the significand (mantissa) including the implicit leading bit? a) 23 bits b) 24 bits c) 52 bits

ANSWER : a) 0x Rationale: 1.0 + 2.0 = 3.0. 3.0 in IEEE 754 single precision is represented as 0x40400000.

46. In the context of virtual memory, “thrashing” occurs when: a) The TLB is too small. b) The CPU spends more time swapping pages between RAM and disk than executing instructions. c) The page table is corrupted. d) A program attempts to access memory it does not own. ANSWER : b) The CPU spends more time swapping pages between RAM and disk than executing instruc- tions. Rationale: Thrashing happens when the working set of active processes exceeds available physical mem- ory, causing constant page faults and disk I/O, leading to a severe drop in CPU utilization. 47. Which of the following RISC-V instructions would most likely be used to implement a switch-case statement? a) beq b) jal c) jalr (Jump and Link Register) d) auipc ANSWER : c) jalr (Jump and Link Register) Rationale: Switch-case often uses a jump table (an array of addresses). jalr can jump to an address com- puted by adding an offset to a base register, allowing dynamic indexing into the jump table. 48. What does the “precise exception” model require of a pipelined processor? a) All exceptions must be handled immediately, stalling the pipeline. b) When an exception occurs, all instructions before the faulting instruction must be completed, and all subsequent instructions must be flushed (or nullified). c) Exceptions are ignored until the end of the program. d) The processor must restart the program from the beginning. ANSWER : b) When an exception occurs, all instructions before the faulting instruction must be com- pleted, and all subsequent instructions must be flushed (or nullified). Rationale: Precise exceptions allow the operating system to save the state of the machine as if the excep- tion occurred exactly on that instruction. This simplifies restarting execution. **SET 4: Multicore, Coherency, and Advanced Topics (Questions 49-64)

  1. What is the primary issue in a multi-core system when multiple cores cache the same memory loca- tion and one core writes to it?** a) Cache thrashing b) Cache coherency c) Virtual memory fragmentation d) Pipeline hazards

ANSWER : b) Cache coherency Rationale: Cache coherency ensures that changes to a shared memory location are propagated to all caches in a timely manner, maintaining consistency.

50. The MESI cache coherency protocol defines four states. What does the ‘E’ (Exclusive) state mean? a) The cache line is invalid. b) The cache line is present in this cache only and is clean (matches main memory). c) The cache line is present in this cache only and is dirty (modified). d) The cache line may be shared among multiple caches. ANSWER : b) The cache line is present in this cache only and is clean (matches main memory). Rationale: Exclusive (E) means the data is only in this cache and is consistent with main memory. If the core writes to it, it transitions to Modified (M). 51. In the MESI protocol, if a cache line is in the ‘Shared’ (S) state and a write occurs to that line, what happens? a) The write proceeds silently. b) The cache line transitions to Modified, and an invalidation broadcast is sent to all other caches. c) The cache line transitions to Exclusive. d) A bus error occurs. ANSWER : b) The cache line transitions to Modified, and an invalidation broadcast is sent to all other caches. Rationale: When a core writes to a shared line, it must gain exclusive ownership. It invalidates copies in other caches (via bus snooping) and marks its own line as Modified (M). 52. What is “false sharing” in a multi-core system? a) Two cores sharing a physical core via hyper-threading. b) Two cores accessing different parts of the same cache line, causing unnecessary invalidation traffic. c) Two cores sharing a TLB entry. d) Two processes sharing the same page table. ANSWER : b) Two cores accessing different parts of the same cache line, causing unnecessary invalida- tion traffic. Rationale: False sharing occurs when threads on different cores modify variables that reside on the same cache line. Even though the variables are logically independent, the coherency protocol treats the line as shared, causing performance degradation. 53. Which of the following is a characteristic of a “multiprocessor” with a “snooping bus” architecture? a) All caches observe (snoop) bus transactions to maintain coherency. b) Communication occurs via a centralized directory. c) It is only scalable to thousands of processors. d) It cannot be used with write-back caches. ANSWER : a) All caches observe (snoop) bus transactions to maintain coherency. Rationale: In snooping (or bus-based) coherency, all cache controllers monitor the shared bus for read/ write operations to maintain a consistent view of memory. 54. What is the primary advantage of a “directory-based” cache coherence protocol over a “snooping” protocol? a) Simpler hardware implementation. b) Lower latency for memory accesses.

committed (written to the architectural state) in the original program order. This ensures precise excep- tions.

59. Which of the following is a typical use case for GPUs (Graphics Processing Units) in modern comput- ing? a) Running the operating system kernel. b) General-purpose parallel computation (GPGPU) like matrix multiplication. c) High-precision scalar arithmetic. d) Serial task execution. ANSWER : b) General-purpose parallel computation (GPGPU) like matrix multiplication. Rationale: GPUs contain thousands of small cores optimized for data-parallel throughput, making them ideal for workloads like machine learning, scientific simulations, and graphics. 60. What does the “R” in the RISC-V acronym stand for? a) Reduced b) RISC c) Revised d) Register ANSWER : a) Reduced Rationale: RISC-V stands for "Reduced Instruction Set Computer - 5". The "V" signifies it is the fifth major version from UC Berkeley. 61. In the context of hardware security, what is a “Spectre” vulnerability? a) A vulnerability in the memory controller. b) A vulnerability that exploits speculative execution to read unauthorized memory. c) A physical attack using voltage glitching. d) A bug in the ALU design. ANSWER : b) A vulnerability that exploits speculative execution to read unauthorized memory. Rationale: Spectre attacks trick the processor into speculatively executing instructions that access secret data, then exfiltrate that data via a side channel (like cache timing). 62. What is the function of the csrrw (Control and Status Register Read Write) instruction in RISC-V? a) To perform arithmetic on the stack pointer. b) To atomically swap the value in a CSR with a value in an integer register. c) To jump to an exception handler. d) To flush the pipeline.

ANSWER : b) To atomically swap the value in a CSR with a value in an integer register. Rationale: csrrw is used to read the current value of a CSR into a register while simultaneously writing a new value to the CSR, useful for context switching and enabling/disabling interrupts.

63. A “superscalar” processor is one that: a) Uses a very deep pipeline. b) Uses a very wide word (e.g., 128-bit). c) Can issue multiple instructions per clock cycle. d) Has multiple cores. ANSWER : c) Can issue multiple instructions per clock cycle. Rationale: Superscalar architectures have multiple execution units and can fetch, decode, and issue multi- ple instructions simultaneously, achieving an IPC (instructions per cycle) greater than 1. 64. What is the purpose of the “hardware performance counters” found in modern CPUs? a) To control the CPU fan speed. b) To measure events like cache misses, branch mispredictions, and instructions retired for profiling. c) To encrypt memory. d) To manage the power supply. ANSWER : b) To measure events like cache misses, branch mispredictions, and instructions retired for profiling. Rationale: Performance counters are special registers that count hardware events. Developers use them to profile applications, identify bottlenecks, and optimize code. **SET 5: Synthesis, Advanced Memory, and System-Level (Questions 65-80)

  1. Which of the following is a key advantage of using a “non-blocking” cache?** a) It allows the CPU to continue executing instructions while handling a cache miss. b) It prevents cache coherency issues. c) It reduces the TLB miss rate. d) It eliminates the need for virtual memory. ANSWER : a) It allows the CPU to continue executing instructions while handling a cache miss. Rationale: A non-blocking (or lockup-free) cache allows the processor to continue issuing memory re- quests while a previous miss is being serviced by the memory hierarchy, often using a "miss status holding register" (MSHR). 66. In a virtual memory system, the “page table” is stored in: a) The TLB. b) The cache. c) Main memory. d) A dedicated register file. ANSWER : c) Main memory. Rationale: The page table is a data structure stored in physical memory that maps virtual pages to physical frames. The TLB is a hardware cache of recent page table entries. 67. What is the primary disadvantage of using a “write-back” cache policy compared to “write- through”?

ANSWER : c) Reducing the supply voltage (Dynamic Voltage and Frequency Scaling - DVFS). Rationale: Dynamic power consumption is proportional to CV²f. Reducing voltage (V) has a quadratic ef- fect on power savings. DVFS is a common technique to save energy when peak performance is not needed.

72. A computer uses an 8-bit address bus. How many bytes of memory can it directly address? a) 64 bytes b) 128 bytes c) 256 bytes d) 512 bytes ANSWER : c) 256 bytes Rationale: 2^8 = 256 unique addresses. Assuming byte-addressable memory, that equals 256 bytes. 73. What is the primary function of the “Exception Program Counter” (EPC) in RISC-V? a) To store the current instruction for debugging. b) To hold the address of the instruction that caused an exception or interrupt. c) To store the stack pointer during context switches. d) To hold the address of the interrupt handler. ANSWER : b) To hold the address of the instruction that caused an exception or interrupt. Rationale: When an exception occurs, the hardware saves the PC of the faulting (or interrupted) instruc- tion into the EPC (a CSR) so that the OS can return to it after handling the exception. 74. Which of the following is a primary characteristic of “hardware multithreading” (e.g., Intel Hyper- Threading)? a) It duplicates the entire core to run multiple threads. b) It allows a single physical core to appear as multiple logical cores by sharing execution resources. c) It requires the OS to be specifically recompiled. d) It doubles the clock frequency. ANSWER : b) It allows a single physical core to appear as multiple logical cores by sharing execution resources. Rationale: Hardware multithreading duplicates the architectural state (program counter, registers) but shares the execution units, allowing the core to switch between threads quickly to hide latency. 75. In a RISC-V assembly program, what is the purpose of the ecall instruction? a) To end the program. b) To allocate memory on the heap. c) To make a request to the operating system (e.g., print, read file). d) To call a function within the same program. ANSWER : c) To make a request to the operating system (e.g., print, read file). Rationale: ecall (environment call) triggers a trap into the operating system (or emulator) to perform a system call. The specific function is typically determined by the value in a register (e.g., a7 in RISC-V Linux). 76. Which of the following is the most common cause of a “cold miss” (or compulsory miss) in a cache? a) A cache line is evicted due to conflict. b) The cache is too small to hold the working set. c) The data is being accessed for the first time. d) Another core invalidated the line.

ANSWER : c) The data is being accessed for the first time. Rationale: Cold misses occur when data is brought into the cache for the first time. They are unavoidable to some extent but can be reduced by increasing block size (to prefetch nearby data).

77. A program contains a long series of independent add instructions. A superscalar processor with 2 ALUs and in-order execution can potentially sustain what IPC (Instructions Per Cycle)? a) 0. b) 1. c) 2. d) 4. ANSWER : c) 2. Rationale: With two ALUs and no dependencies, the processor can theoretically issue and execute two add instructions per cycle, achieving an IPC of 2.0. 78. What does “P/E” ratio refer to in the context of data center design? a) Performance per Energy b) Power per Execution c) Performance per Watt d) Process Efficiency ANSWER : c) Performance per Watt Rationale: In modern computing, especially data centers, "Performance per Watt" is a critical metric be- cause power consumption and cooling costs often dominate total cost of ownership. 79. Which of the following is a valid reason to use a “pseudo-instruction” like nop? a) To perform a floating-point operation. b) To create a small delay or align code for branch targets. c) To disable interrupts. d) To flush the TLB. ANSWER : b) To create a small delay or align code for branch targets. Rationale: nop (no operation) is often used for padding, alignment, or very short timing delays. In RISC-V, it is often implemented as addi x0, x0, 0.