Computer Architecture MCQs set 3 for Bahria University Entry Test computer science — 20 solved questions.
Q1. What is the term for a CPU design that uses a single pipeline for instruction execution?
Answer: Pipelining
Explanation: Pipelining is a technique where instructions are processed in a linear sequence of stages, improving instruction throughput.
Q2. In a cache memory system, what is the term for a cache miss that occurs when the requested data is not in the cache?
Answer: Compulsory Miss
Explanation: A compulsory miss occurs when the data is accessed for the first time, and it's not in the cache.
Q3. What is the primary advantage of using a Harvard Architecture?
Answer: Separate instruction and data buses
Explanation: Harvard Architecture uses separate buses for instructions and data, improving bandwidth and reducing contention.
Q4. What is the term for the technique of increasing the clock speed of a CPU by using multiple processing stages?
Answer: Pipelining
Explanation: Pipelining breaks down instruction execution into stages, allowing for increased clock speeds.
Q5. In a virtual memory system, what is the term for the mapping of virtual addresses to physical addresses?
Answer: Address Translation
Explanation: Address Translation maps virtual addresses to physical addresses using page tables or segment tables.
Q6. Which of the following cache replacement policies replaces the least recently used cache line?
Answer: LRU (Least Recently Used)
Explanation: LRU replaces the cache line that has not been accessed for the longest time, reducing cache misses.
Q7. What is the term for a CPU that can execute multiple instructions in a single clock cycle?
Answer: Superscalar
Explanation: Superscalar CPUs execute multiple instructions in parallel, improving instruction-level parallelism. NET computer science MCQs often test this core concept.
Q8. In a DMA (Direct Memory Access) transfer, what is the role of the DMA controller?
Answer: To transfer data between I/O devices and memory
Explanation: The DMA controller manages data transfer between I/O devices and memory, offloading the CPU.
Q9. What is the primary advantage of using a multi-core processor?
Answer: Enhanced multithreading capabilities
Explanation: Multi-core processors provide multiple execution cores, enabling concurrent execution of multiple threads.
Q10. What is the term for the process of predicting the outcome of a branch instruction?
Answer: Branch Prediction
Explanation: Branch Prediction predicts the outcome of branch instructions, reducing branch penalties. NET computer science MCQs often test this core concept.
Q11. In a computer system, what is the function of the Interrupt Controller?
Answer: To handle interrupts from I/O devices
Explanation: The Interrupt Controller prioritizes and handles interrupts from I/O devices, notifying the CPU.
Q12. What is the term for the technique of executing instructions speculatively, before the branch outcome is known?
Answer: Speculative Execution
Explanation: Speculative Execution executes instructions before the branch outcome is known, improving instruction-level parallelism.
Q13. In a pipelined CPU, what is the term for a situation where an instruction depends on the result of a previous instruction?
Answer: Data Hazard
Explanation: Data Hazards occur when an instruction depends on the result of a previous instruction, requiring data forwarding or stalls.
Q14. Which of the following cache mapping techniques uses a tag to identify the cache line?
Answer: All of the above
Explanation: All three techniques use tags to identify cache lines, though they differ in how they map main memory to cache.
Q15. What is the hit ratio of a cache memory if the cache access time is 10 ns and main memory access time is 100 ns, and the effective access time is 15 ns?
Answer: 0.95
Explanation: Using the formula: Effective Access Time = Hit Ratio * Cache Access Time + (1 - Hit Ratio) * Main Memory Access Time, we can solve for Hit Ratio.
Q16. In a pipelined processor, what is the primary cause of pipeline stalls?
Answer: All of the above
Explanation: Pipeline stalls occur due to cache misses, branch mispredictions, and data dependencies, as they disrupt the smooth flow of instructions.
Q17. In a 2-level cache hierarchy, what is the purpose of the L2 cache?
Answer: To reduce the access time to main memory
Explanation: The L2 cache acts as a secondary cache, reducing the access time to main memory by storing data that is not in the L1 cache.
Q18. What is the function of the Memory Address Register (MAR) in a CPU?
Answer: To store the memory address
Explanation: The MAR holds the memory address of the data being accessed. NET computer science MCQs often test this core concept.
Q19. In a CPU, what is the function of the Arithmetic Logic Unit (ALU)?
Answer: To perform arithmetic and logical operations
Explanation: The ALU performs arithmetic and logical operations on data, such as addition, subtraction, and bitwise operations.
Q20. What is the main advantage of using a cache memory?
Answer: Reduced average memory access time
Explanation: Cache memory reduces the average memory access time by storing frequently accessed data in a faster, more accessible location.