CPUs and architecture

What is the correct basic order in which a CPU processes an instruction?

  1. AExecute → decode → fetch
  2. BFetch → decode → execute
  3. CDecode → fetch → execute
Show answer and explanation

Answer: B. Fetch → decode → execute

The CPU fetches an instruction from memory, decodes it to determine what to do, and executes the operation. Where needed, it writes the result back to a register or memory. Pipelining overlaps these stages so they proceed in parallel.

  • A. An instruction cannot be executed before it is fetched.
  • B. Correct. Fetch, decode, then execute.
  • C. An instruction cannot be decoded before it is fetched.
Practice this topic Back to topic

More CPUs and architecture questions

  1. What is the role of the ALU (arithmetic logic unit) in a CPU?
  2. What does a CPU's program counter (PC) hold?
  3. Which correctly describes the write-back policy for caches?
  4. Which correctly describes a set-associative cache?
  5. What is the typical size of a cache line (cache block) in many current CPUs?