Computer Architecture

CPU Architecture — Practice MCQs for CCAT

25 Questions Section C: Hardware Computer Architecture

Practice 25 CPU Architecture multiple-choice questions designed for CDAC CCAT exam preparation. Click "Show Answer" to reveal the correct option with detailed explanation.

Q1.
Which register holds the address of the next instruction?
AAccumulator
BProgram Counter
CStack Pointer
DInstruction Register
Show Answer & Explanation

Correct Answer: B — Program Counter

Program Counter (PC) holds address of next instruction to fetch.

Q2.
Instruction Register (IR) holds:
AAddress of instruction
BCurrent instruction being executed
CData
DResult
Show Answer & Explanation

Correct Answer: B — Current instruction being executed

IR holds the current instruction being decoded and executed.

Q3.
ALU performs:
AOnly arithmetic
BOnly logical
CArithmetic and logical operations
DMemory access
Show Answer & Explanation

Correct Answer: C — Arithmetic and logical operations

ALU (Arithmetic Logic Unit) performs both arithmetic and logical operations.

Q4.
Control Unit generates:
AData
BControl signals
CAddresses
DResults
Show Answer & Explanation

Correct Answer: B — Control signals

Control Unit generates control signals to coordinate CPU operations.

Q5.
Stack Pointer (SP) points to:
ANext instruction
BTop of stack
CBase of stack
DAccumulator
Show Answer & Explanation

Correct Answer: B — Top of stack

Stack Pointer holds address of top of stack.

Q6.
RISC stands for:
AReduced Instruction Set Computer
BRandom Instruction Set Computer
CRegular Instruction Set Code
DRapid Instruction Sequence Computer
Show Answer & Explanation

Correct Answer: A — Reduced Instruction Set Computer

RISC = Reduced Instruction Set Computer with simple, fast instructions.

Q7.
CISC has:
ASimple instructions
BComplex instructions, variable length
CFixed instruction length
DNo addressing modes
Show Answer & Explanation

Correct Answer: B — Complex instructions, variable length

CISC (Complex Instruction Set Computer) has complex, variable-length instructions.

Q8.
Pipelining increases:
AInstruction execution time
BThroughput
CMemory
DRegisters
Show Answer & Explanation

Correct Answer: B — Throughput

Pipelining increases throughput by overlapping instruction execution.

Q9.
Number of stages in basic instruction cycle:
A2
B3
C4 or 5
D10
Show Answer & Explanation

Correct Answer: C — 4 or 5

Basic cycle: Fetch, Decode, Execute, Memory, Write-back (4-5 stages).

Q10.
Hazard in pipeline that occurs due to branch:
AData hazard
BStructural hazard
CControl hazard
DMemory hazard
Show Answer & Explanation

Correct Answer: C — Control hazard

Control hazard occurs due to branch instructions changing flow.

Q11.
What is the function of the Program Counter (PC) register?
AStores the result of ALU operations
BHolds the address of the next instruction to be fetched
CStores the current instruction being executed
DCounts the number of programs running
Show Answer & Explanation

Correct Answer: B — Holds the address of the next instruction to be fetched

The Program Counter holds the memory address of the next instruction to be fetched from memory.

Q12.
Which register holds the instruction currently being decoded and executed?
AProgram Counter
BMemory Address Register
CInstruction Register
DAccumulator
Show Answer & Explanation

Correct Answer: C — Instruction Register

The Instruction Register (IR) holds the instruction that is currently being decoded and executed by the CPU.

Q13.
What is the purpose of the Memory Address Register (MAR)?
AStores data to be written to memory
BHolds the address of memory location to be accessed
CStores the result of arithmetic operations
DHolds the instruction opcode
Show Answer & Explanation

Correct Answer: B — Holds the address of memory location to be accessed

MAR holds the address of the memory location that is to be read from or written to.

Q14.
Which component of CPU performs arithmetic and logical operations?
AControl Unit
BMemory Unit
CALU
DRegister Unit
Show Answer & Explanation

Correct Answer: C — ALU

The Arithmetic Logic Unit (ALU) performs all arithmetic operations (add, subtract) and logical operations (AND, OR, NOT).

Q15.
What are the stages of the basic instruction cycle in correct order?
AExecute, Fetch, Decode
BDecode, Fetch, Execute
CFetch, Decode, Execute
DFetch, Execute, Decode
Show Answer & Explanation

Correct Answer: C — Fetch, Decode, Execute

The instruction cycle consists of Fetch (get instruction from memory), Decode (interpret the instruction), and Execute (perform the operation).

Q16.
What is the function of the Control Unit in a CPU?
APerforms arithmetic calculations
BStores temporary data
CGenerates control signals to coordinate CPU operations
DManages virtual memory
Show Answer & Explanation

Correct Answer: C — Generates control signals to coordinate CPU operations

The Control Unit generates timing and control signals that coordinate the operations of all CPU components.

Q17.
Which register temporarily holds data being transferred between CPU and memory?
AAccumulator
BMemory Buffer Register (MBR)
CIndex Register
DProgram Counter
Show Answer & Explanation

Correct Answer: B — Memory Buffer Register (MBR)

The Memory Buffer Register (MBR) or Memory Data Register (MDR) temporarily holds data being transferred to or from memory.

Q18.
What is pipelining in CPU architecture?
AConnecting multiple CPUs together
BExecuting multiple instructions simultaneously in different stages
CStoring multiple instructions in cache
DTransferring data between registers
Show Answer & Explanation

Correct Answer: B — Executing multiple instructions simultaneously in different stages

Pipelining allows multiple instructions to be in different stages of execution simultaneously, improving CPU throughput.

Q19.
What is the purpose of the Stack Pointer (SP) register?
APoints to the top of the stack in memory
BStores the base address of a program
CHolds the return address of a subroutine
DPoints to the current instruction
Show Answer & Explanation

Correct Answer: A — Points to the top of the stack in memory

The Stack Pointer contains the address of the top of the stack, used for PUSH and POP operations.

Q20.
Which type of register is used for loop counting and array indexing?
AAccumulator
BProgram Counter
CIndex Register
DStatus Register
Show Answer & Explanation

Correct Answer: C — Index Register

Index registers are used for modifying operand addresses during program execution, useful for array indexing and loop counting.

Q21.
Which flag is set when an arithmetic operation results in zero?
ACarry Flag
BZero Flag
COverflow Flag
DSign Flag
Show Answer & Explanation

Correct Answer: B — Zero Flag

The Zero Flag (ZF) is set to 1 when the result of an arithmetic or logical operation is zero.

Q22.
What is the function of the Accumulator register?
AStores memory addresses
BHolds intermediate results of ALU operations
CStores the instruction opcode
DCounts clock cycles
Show Answer & Explanation

Correct Answer: B — Holds intermediate results of ALU operations

The Accumulator is a special register that holds one operand and the result of ALU operations.

Q23.
What is superscalar architecture?
ACPU with very large registers
BCPU that can execute multiple instructions per clock cycle using multiple execution units
CCPU with extended instruction set
DCPU with multiple cores
Show Answer & Explanation

Correct Answer: B — CPU that can execute multiple instructions per clock cycle using multiple execution units

Superscalar architecture has multiple execution units allowing it to execute more than one instruction per clock cycle.

Q24.
What is the purpose of the Condition Code Register (CCR)?
AStores the current instruction
BContains flags indicating the result status of operations
CHolds the memory address
DStores loop counter values
Show Answer & Explanation

Correct Answer: B — Contains flags indicating the result status of operations

The Condition Code Register or Status Register contains flags (Zero, Carry, Overflow, Sign) that indicate the status of the last operation.

Q25.
What is data hazard in pipelining?
AWrong data in memory
BInstruction depends on result of previous instruction not yet available
CData corruption
DNetwork data loss
Show Answer & Explanation

Correct Answer: B — Instruction depends on result of previous instruction not yet available

Data hazard occurs when an instruction depends on the result of a previous instruction that has not yet completed.