Practice Computer Architecture MCQs for HEC USAT-CS (Computer Science) computer science — topic-wise sets with solved answers.
Q1. What is the primary function of the Instruction Register (IR)?
Answer: To store the current instruction being executed
Explanation: IR holds the current instruction, allowing the control unit to decode and execute it.
Q2. Which cache mapping technique maps a block to a specific cache line?
Answer: Direct Mapping
Explanation: Direct mapping assigns each block to a specific cache line using the formula: cache line = (block address) mod (number of cache lines).
Q3. What is the hit ratio if 80 out of 100 memory accesses are found in the cache?
Answer: 0.8
Explanation: Hit ratio = (number of hits) / (total number of accesses) = 80 / 100 = 0.8.
Q4. A CPU has a clock cycle time of 2 ns. What is the clock speed?
Answer: 1 GHz
Explanation: Clock speed = 1 / clock cycle time = 1 / 2 ns = 1 / (2 * 10^-9 s) = 500 * 10^6 Hz = 500 MHz, but since 1/2ns = 0.5*10^9 Hz, it is 500 MHz or 0.5 GHz, the closest answer is 500 MHz.
Q5. What is the main advantage of a pipelined processor?
Answer: Increased instruction-level parallelism
Explanation: Pipelining increases instruction-level parallelism by breaking down the instruction execution process into stages.
Q6. A computer system has 4GB of RAM. What is the minimum number of bits required to address each byte?
Answer: 32
Explanation: 4GB = 2² * 2³0 bytes = 2³2 bytes, so 32 bits are required to address each byte.
Q7. What is the primary function of the Program Counter (PC)?
Answer: To store the address of the next instruction
Explanation: PC holds the address of the next instruction to be fetched, allowing the CPU to sequence through instructions.
Q8. Which of the following is a type of cache coherence protocol?
Answer: MESI
Explanation: MESI is a cache coherence protocol that ensures data consistency across multiple processors.
Q9. What is the main disadvantage of a direct-mapped cache?
Answer: Conflict misses
Explanation: Direct-mapped caches can suffer from conflict misses when multiple blocks map to the same cache line.
Q10. A processor has a 5-stage pipeline. What is the maximum speedup achievable?
Answer: 5
Explanation: Maximum speedup = number of pipeline stages = 5, assuming ideal conditions.
Q11. What is the purpose of the Memory Address Register (MAR)?
Answer: To store the address of the memory location
Explanation: MAR holds the address of the memory location being accessed. NET computer science MCQs often test this core concept.
Q12. Which of the following is a characteristic of a RISC processor?
Answer: Simple instruction set
Explanation: RISC processors have a simple instruction set, which improves execution speed. NET computer science MCQs often test this core concept.
Q13. What is the main advantage of a multi-core processor?
Answer: Improved multi-threaded performance
Explanation: Multi-core processors improve multi-threaded performance by executing multiple threads concurrently. NET computer science MCQs often test this core concept.
Q14. A computer system has a 2-way set-associative cache. What is the main advantage?
Answer: Reduced conflict misses
Explanation: 2-way set-associative cache reduces conflict misses by allowing two blocks to be stored in the same set.
Q15. What is the purpose of the Memory Buffer Register (MBR)?
Answer: To store the data being transferred
Explanation: MBR holds the data being transferred between the CPU and memory. NET computer science MCQs often test this core concept.
Q16. Which of the following is a type of parallelism?
Answer: All of the above
Explanation: All three options are types of parallelism that can be exploited in computer architecture.
Q17. What is the main disadvantage of a unified cache?
Answer: Conflict between instruction and data accesses
Explanation: Unified caches can suffer from conflicts between instruction and data accesses. NET computer science MCQs often test this core concept.
Q18. A processor has a clock speed of 2 GHz. What is the clock cycle time?
Answer: 0.5 ns
Explanation: Clock cycle time = 1 / clock speed = 1 / 2 GHz = 1 / (2 * 10^9 Hz) = 0.5 * 10^-9 s = 0.5 ns.
Q19. What is the primary function of the Control Unit?
Answer: To generate control signals
Explanation: The control unit generates control signals that manage the flow of data and instructions within the CPU.
Q20. Which of the following cache replacement policies is based on the order of access?
Answer: FIFO
Explanation: FIFO replaces the block that has been in the cache the longest, based on the order of access.
Loading...