Docsity

WGU C952 Computer Architecture Practice Examination, Exams of Nursing

Toggle sidebar
bg1
WGU C952 Computer Architecture
Practice Examination
Description
This comprehensive practice examination covers foundational computer
architecture concepts tested in WGU C952, aligned with the Computer
Architecture objective assessment. Topics include instruction set architecture,
CPU organization, pipelining, memory hierarchy, cache design, virtual memory,
I/O systems, storage technologies, parallelism, and performance metrics.
Features 300 original questions with detailed rationales to prepare for the
Objective Assessment.
Question 1
Which component of a computer is responsible for executing instructions and
performing arithmetic and logical operations?
A. Memory unit B. Control unit C. Central Processing Unit (CPU) D. Input/Output
subsystem
Correct Answer: C
Rationale:
The CPU is the central component that fetches, decodes, and executes
instructions, performing arithmetic and logical operations. Option A stores data
and instructions. Option B is part of the CPU that directs operations but does not
execute them alone. Option D handles input and output.
Key Concept:
The CPU executes instructions and performs computations.
Question 2
Which architecture principle states that instructions and data are stored in the
same memory space?
A. Harvard architecture B. Von Neumann architecture C. RISC architecture D.
CISC architecture
Correct Answer: B
Rationale:
The Von Neumann architecture uses a single memory space for both instructions
and data, connected by a shared bus. Option A uses separate memories for
instructions and data. Option C describes a reduced instruction set. Option D
describes a complex instruction set.
Key Concept:
Von Neumann architecture shares memory for instructions and data.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download WGU C952 Computer Architecture Practice Examination and more Exams Nursing in PDF only on Docsity!

WGU C952 Computer Architecture

Practice Examination

Description

This comprehensive practice examination covers foundational computer architecture concepts tested in WGU C952, aligned with the Computer Architecture objective assessment. Topics include instruction set architecture, CPU organization, pipelining, memory hierarchy, cache design, virtual memory, I/O systems, storage technologies, parallelism, and performance metrics. Features 300 original questions with detailed rationales to prepare for the Objective Assessment. Question 1 Which component of a computer is responsible for executing instructions and performing arithmetic and logical operations? A. Memory unit B. Control unit C. Central Processing Unit (CPU) D. Input/Output subsystem Correct Answer: C Rationale: The CPU is the central component that fetches, decodes, and executes instructions, performing arithmetic and logical operations. Option A stores data and instructions. Option B is part of the CPU that directs operations but does not execute them alone. Option D handles input and output. Key Concept: The CPU executes instructions and performs computations. Question 2 Which architecture principle states that instructions and data are stored in the same memory space? A. Harvard architecture B. Von Neumann architecture C. RISC architecture D. CISC architecture Correct Answer: B Rationale: The Von Neumann architecture uses a single memory space for both instructions and data, connected by a shared bus. Option A uses separate memories for instructions and data. Option C describes a reduced instruction set. Option D describes a complex instruction set. Key Concept: Von Neumann architecture shares memory for instructions and data.

Question 3 What is the primary difference between Harvard and Von Neumann architectures? A. Harvard uses separate memories for instructions and data B. Harvard uses a single memory for everything C. Von Neumann uses separate memories D. They are identical Correct Answer: A Rationale: The Harvard architecture uses physically separate memory units for instructions and data, allowing simultaneous access. Option B describes Von Neumann. Option C is incorrect. Option D is incorrect. Key Concept: Harvard architecture separates instruction and data memories. Question 4 Which type of instruction set architecture uses a large number of complex instructions that can perform multiple operations? A. RISC B. CISC C. VLIW D. EPIC Correct Answer: B Rationale: CISC (Complex Instruction Set Computer) uses complex instructions that can perform multiple operations in a single instruction. Option A uses simplified instructions. Option C uses very long instruction words. Option D is a type of VLIW. Key Concept: CISC uses complex, multi-operation instructions. Question 5 Which type of instruction set architecture emphasizes a small, highly optimized set of instructions? A. CISC B. RISC C. VLIW D. Stack Correct Answer: B Rationale: RISC (Reduced Instruction Set Computer) uses a small, highly optimized set of simple instructions that execute in one cycle. Option A uses complex instructions. Option C uses very long instruction words. Option D is a different architecture.

Key Concept: Registers are fast, small storage within the CPU. Question 9 Which register holds the address of the next instruction to be executed? A. Accumulator B. Program Counter (PC) C. Memory Address Register (MAR) D. Instruction Register (IR) Correct Answer: B Rationale: The Program Counter (PC) holds the address of the next instruction to be fetched and executed. Option A holds intermediate results. Option C holds memory addresses. Option D holds the current instruction. Key Concept: The Program Counter points to the next instruction. Question 10 Which register holds the current instruction being executed? A. Program Counter B. Instruction Register (IR) C. Accumulator D. Memory Data Register Correct Answer: B Rationale: The Instruction Register (IR) holds the current instruction being decoded and executed. Option A holds the next instruction address. Option C holds intermediate results. Option D holds data from memory. Key Concept: The Instruction Register holds the current instruction. Question 11 What is the function of the Memory Address Register (MAR)? A. To hold data being transferred to/from memory B. To hold the address of memory being accessed C. To hold the current instruction D. To hold arithmetic results Correct Answer: B Rationale: The MAR holds the address of the memory location being read from or written to. Option A is the MDR. Option C is the IR. Option D is the accumulator.

Key Concept: The MAR holds memory addresses for access. Question 12 What is the function of the Memory Data Register (MDR)? A. To hold memory addresses B. To hold data being transferred to/from memory C. To hold the current instruction D. To hold the program counter Correct Answer: B Rationale: The MDR holds data being transferred to or from memory. Option A is the MAR. Option C is the IR. Option D is the PC. Key Concept: The MDR holds data during memory transfers. Question 13 What is the accumulator used for in a CPU? A. To store memory addresses B. To hold intermediate arithmetic and logic results C. To hold the program counter D. To hold the instruction register Correct Answer: B Rationale: The accumulator holds intermediate results of arithmetic and logic operations. Option A is the MAR. Option C is the PC. Option D is the IR. Key Concept: The accumulator holds intermediate computation results. Question 14 What is the instruction cycle? A. The time to execute one instruction B. The fetch-decode-execute sequence C. The clock speed D. The memory access time Correct Answer: B Rationale: The instruction cycle consists of fetching the instruction, decoding it, and executing it. Option A is a subset. Option C is clock speed. Option D is memory access time. Key Concept:

Execute performs the operation. Question 18 What is pipelining in computer architecture? A. Storing data in memory B. Overlapping execution of multiple instructions C. Increasing clock speed D. Adding more memory Correct Answer: B Rationale: Pipelining overlaps the execution of multiple instructions by dividing instruction processing into stages. Option A is memory. Option C is clock speed. Option D is memory. Key Concept: Pipelining overlaps instruction execution. Question 19 How many stages are in a classic RISC pipeline? A. 3 B. 5 C. 7 D. 9 Correct Answer: B Rationale: The classic RISC pipeline has 5 stages: Fetch, Decode, Execute, Memory, and Write-back. Options A, C, and D are incorrect. Key Concept: The classic RISC pipeline has 5 stages. Question 20 What is a pipeline hazard? A. A condition that prevents the next instruction from executing in the designed clock cycle B. A type of memory C. A CPU register D. A clock signal Correct Answer: A Rationale: A pipeline hazard is a condition that prevents the next instruction in the pipeline from executing in its designated clock cycle. Option B is memory. Option C is a register. Option D is a clock signal. Key Concept: Pipeline hazards prevent ideal pipeline execution.

Question 21 What is a data hazard in pipelining? A. A hazard caused by memory access B. A hazard caused by data dependencies between instructions C. A hazard caused by branch instructions D. A hazard caused by clock speed Correct Answer: B Rationale: A data hazard occurs when an instruction depends on the result of a previous instruction that has not yet completed. Option A is a structural hazard. Option C is a control hazard. Option D is not a hazard type. Key Concept: Data hazards arise from data dependencies. Question 22 What is a control hazard in pipelining? A. A hazard caused by data dependencies B. A hazard caused by branch instructions C. A hazard caused by memory access D. A hazard caused by register conflicts Correct Answer: B Rationale: A control hazard occurs when the pipeline must make a decision based on the result of a branch instruction. Option A is a data hazard. Option C is a structural hazard. Option D is a data hazard. Key Concept: Control hazards arise from branch instructions. Question 23 What is a structural hazard in pipelining? A. A hazard caused by resource conflicts B. A hazard caused by data dependencies C. A hazard caused by branch instructions D. A hazard caused by clock speed Correct Answer: A Rationale: A structural hazard occurs when two instructions compete for the same hardware resource. Option B is a data hazard. Option C is a control hazard. Option D is not a hazard type.

Key Concept: Branch prediction predicts branch outcomes. Question 27 What is speculative execution? A. Executing instructions before knowing if they are needed B. Executing instructions in order C. Executing instructions slowly D. Executing instructions sequentially Correct Answer: A Rationale: Speculative execution executes instructions before knowing if they are needed, based on branch prediction. If the prediction is wrong, results are discarded. Option B is in-order execution. Option C is slow execution. Option D is sequential execution. Key Concept: Speculative execution executes instructions speculatively. Question 28 What is the primary purpose of cache memory? A. To increase storage capacity B. To reduce memory access latency C. To increase clock speed D. To reduce power consumption Correct Answer: B Rationale: Cache memory reduces memory access latency by storing frequently accessed data closer to the CPU. Option A is storage. Option C is clock speed. Option D is power. Key Concept: Cache reduces memory access latency. Question 29 What is the principle of locality? A. Programs tend to access a small portion of memory at any given time B. Programs access all memory equally C. Programs access memory randomly D. Programs access memory sequentially Correct Answer: A Rationale:

The principle of locality states that programs tend to access a small portion of memory at any given time, making caching effective. Option B is incorrect. Option C is incorrect. Option D is a type of locality. Key Concept: Locality means programs access small memory portions. Question 30 What is temporal locality? A. The tendency to access the same data repeatedly B. The tendency to access nearby data C. The tendency to access random data D. The tendency to access all data Correct Answer: A Rationale: Temporal locality is the tendency to access the same data or instructions repeatedly over time. Option B is spatial locality. Option C is random access. Option D is incorrect. Key Concept: Temporal locality means reusing the same data. Question 31 What is spatial locality? A. The tendency to access nearby data B. The tendency to access the same data repeatedly C. The tendency to access random data D. The tendency to access all data Correct Answer: A Rationale: Spatial locality is the tendency to access data located near recently accessed data. Option B is temporal locality. Option C is random access. Option D is incorrect. Key Concept: Spatial locality means accessing nearby data. Question 32 What is the cache hit rate? A. The percentage of accesses found in cache B. The percentage of accesses not found in cache C. The cache size D. The cache speed Correct Answer: A

The three types of cache misses are compulsory (first access), capacity (cache too small), and conflict (set conflicts). Options B, C, and D are incorrect. Key Concept: Cache misses: compulsory, capacity, and conflict. Question 36 What is a compulsory miss? A. A miss that occurs on the first access to a block B. A miss due to cache capacity C. A miss due to conflicts D. A miss due to hardware failure Correct Answer: A Rationale: A compulsory (cold) miss occurs on the first access to a block that has never been in the cache. Option B is a capacity miss. Option C is a conflict miss. Option D is hardware failure. Key Concept: Compulsory misses occur on first access. Question 37 What is a capacity miss? A. A miss due to the cache being too small B. A miss on first access C. A miss due to conflicts D. A miss due to hardware failure Correct Answer: A Rationale: A capacity miss occurs when the cache cannot contain all the blocks needed during execution. Option B is a compulsory miss. Option C is a conflict miss. Option D is hardware failure. Key Concept: Capacity misses occur when cache is too small. Question 38 What is a conflict miss? A. A miss due to multiple blocks mapping to the same cache location B. A miss on first access C. A miss due to cache capacity D. A miss due to hardware failure Correct Answer: A Rationale:

A conflict miss occurs when multiple blocks map to the same cache set, causing eviction even when the cache is not full. Option B is a compulsory miss. Option C is a capacity miss. Option D is hardware failure. Key Concept: Conflict misses occur due to set conflicts. Question 39 What is direct-mapped cache? A. Each memory block maps to exactly one cache line B. Each memory block can map to any cache line C. Each memory block maps to a set of cache lines D. Each memory block maps to multiple caches Correct Answer: A Rationale: In direct-mapped cache, each memory block maps to exactly one cache line based on its address. Option B is fully associative. Option C is set-associative. Option D is incorrect. Key Concept: Direct-mapped cache maps each block to one line. Question 40 What is fully associative cache? A. Each memory block can map to any cache line B. Each memory block maps to exactly one cache line C. Each memory block maps to a set of cache lines D. Each memory block maps to multiple caches Correct Answer: A Rationale: In fully associative cache, each memory block can be stored in any cache line. Option B is direct-mapped. Option C is set-associative. Option D is incorrect. Key Concept: Fully associative cache allows any mapping. Question 41 What is set-associative cache? A. Each memory block maps to a set of cache lines B. Each memory block maps to exactly one cache line C. Each memory block can map to any cache line D. Each memory block maps to multiple caches Correct Answer: A

Rationale: LRU (Least Recently Used) evicts the block that has not been accessed for the longest time. Option B is MRU. Option C is FIFO. Option D is LIFO. Key Concept: LRU evicts the least recently used block. Question 45 What is FIFO replacement policy? A. Evict the block that was loaded first B. Evict the least recently used block C. Evict the most recently used block D. Evict the newest block Correct Answer: A Rationale: FIFO (First In, First Out) evicts the block that was loaded first. Option B is LRU. Option C is MRU. Option D is LIFO. Key Concept: FIFO evicts the oldest loaded block. Question 46 What is write-through cache? A. Writes update both cache and memory B. Writes update only cache C. Writes update only memory D. Writes are buffered Correct Answer: A Rationale: In write-through cache, writes update both the cache and main memory simultaneously. Option B is write-back. Option C is write-around. Option D is buffering. Key Concept: Write-through updates both cache and memory. Question 47 What is write-back cache? A. Writes update cache and only write to memory when the block is evicted B. Writes update both cache and memory C. Writes update only memory D. Writes are buffered Correct Answer: A Rationale:

In write-back cache, writes update the cache, and memory is updated only when the block is evicted. Option B is write-through. Option C is write-around. Option D is buffering. Key Concept: Write-back delays memory writes until eviction. Question 48 What is the advantage of write-back cache over write-through cache? A. Fewer memory writes B. Simpler design C. Faster reads D. Lower cost Correct Answer: A Rationale: Write-back cache reduces memory writes by only writing to memory when a block is evicted. Option B is incorrect—write-through is simpler. Option C is incorrect. Option D is incorrect. Key Concept: Write-back reduces memory writes. Question 49 What is the memory hierarchy? A. A structure organizing memory by speed, size, and cost B. A type of cache C. A type of memory D. A type of processor Correct Answer: A Rationale: The memory hierarchy organizes memory levels by speed, size, and cost, from fast/small/expensive to slow/large/cheap. Option B is cache. Option C is memory. Option D is processor. Key Concept: Memory hierarchy organizes memory by speed, size, and cost. Question 50 What is the order of the memory hierarchy from fastest to slowest? A. Registers, Cache, Main Memory, Secondary Storage B. Cache, Registers, Main Memory, Secondary Storage C. Main Memory, Cache, Registers, Secondary Storage D. Secondary Storage, Main Memory, Cache, Registers Correct Answer: A Rationale:

A page fault occurs when a program accesses a page that is not currently in physical memory. Option B is cache miss. Option C is error. Option D is interrupt. Key Concept: Page faults occur when pages are not in memory. Question 54 What is the page table? A. A data structure that maps virtual addresses to physical addresses B. A type of cache C. A type of register D. A type of memory Correct Answer: A Rationale: The page table maps virtual addresses to physical addresses in virtual memory systems. Option B is cache. Option C is register. Option D is memory. Key Concept: Page tables map virtual to physical addresses. Question 55 What is the Translation Lookaside Buffer (TLB)? A. A cache for page table entries B. A type of cache C. A type of register D. A type of memory Correct Answer: A Rationale: The TLB is a small cache that stores recently used page table entries to speed up address translation. Option B is cache. Option C is register. Option D is memory. Key Concept: TLB caches page table entries. Question 56 What is the purpose of the TLB? A. To speed up virtual address translation B. To store data C. To store instructions D. To manage memory Correct Answer: A Rationale: The TLB speeds up virtual address translation by caching recently used page table entries. Option B is data. Option C is instructions. Option D is memory management.

Key Concept: TLB speeds up address translation. Question 57 What is a TLB miss? A. A page table entry not found in the TLB B. A page fault C. A cache miss D. A type of error Correct Answer: A Rationale: A TLB miss occurs when a page table entry is not found in the TLB, requiring a page table lookup. Option B is a page fault. Option C is cache miss. Option D is error. Key Concept: TLB misses require page table lookups. Question 58 What is the difference between a TLB miss and a page fault? A. A TLB miss means the page is in memory; a page fault means it is not B. A TLB miss means the page is not in memory; a page fault means it is C. They are the same D. They are unrelated Correct Answer: A Rationale: A TLB miss means the page table entry is not in the TLB, but the page may still be in memory. A page fault means the page is not in physical memory. Option B is the reverse. Option C is incorrect. Option D is incorrect. Key Concept: TLB miss: entry not cached; page fault: page not in memory. Question 59 What is memory interleaving? A. A technique to increase memory bandwidth by spreading addresses across multiple memory banks B. A type of cache C. A type of register D. A type of processor Correct Answer: A Rationale: