Back to Practice Computer Architecture

CPU Architecture - Practice MCQs for CCAT

50 Questions Section C: Hardware Computer Architecture

CPU Architecture Question Bank for C-CAT

Topic-wise CPU Architecture MCQs for CDAC C-CAT preparation with answers and explanations.

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
BData
CCurrent instruction being executed
DResult
Show Answer & Explanation

Correct Answer: C - Current instruction being executed

IR holds the current instruction being decoded and executed.

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

Correct Answer: A - 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
BBase of stack
CTop of stack
DAccumulator
Show Answer & Explanation

Correct Answer: C - Top of stack

Stack Pointer holds address of top of stack.

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

Correct Answer: D - Reduced Instruction Set Computer

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

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

Correct Answer: A - 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
BInstruction Register
CMemory Address Register
DAccumulator
Show Answer & Explanation

Correct Answer: B - 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?
AALU
BMemory Unit
CControl Unit
DRegister Unit
Show Answer & Explanation

Correct Answer: A - 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?
AFetch, Decode, Execute
BDecode, Fetch, Execute
CExecute, Fetch, Decode
DFetch, Execute, Decode
Show Answer & Explanation

Correct Answer: A - 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
BGenerates control signals to coordinate CPU operations
CStores temporary data
DManages virtual memory
Show Answer & Explanation

Correct Answer: B - 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
BProgram Counter
CIndex Register
DMemory Buffer Register (MBR)
Show Answer & Explanation

Correct Answer: D - 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 current instruction
BStores the base address of a program
CHolds the return address of a subroutine
DPoints to the top of the stack in memory
Show Answer & Explanation

Correct Answer: D - 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
CStatus Register
DIndex Register
Show Answer & Explanation

Correct Answer: D - 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
BSign Flag
COverflow Flag
DZero Flag
Show Answer & Explanation

Correct Answer: D - 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
BStores the instruction opcode
CHolds intermediate results of ALU operations
DCounts clock cycles
Show Answer & Explanation

Correct Answer: C - 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 with extended instruction set
CCPU that can execute multiple instructions per clock cycle using multiple execution units
DCPU with multiple cores
Show Answer & Explanation

Correct Answer: C - 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
BStores loop counter values
CHolds the memory address
DContains flags indicating the result status of operations
Show Answer & Explanation

Correct Answer: D - 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?
AInstruction depends on result of previous instruction not yet available
BWrong data in memory
CData corruption
DNetwork data loss
Show Answer & Explanation

Correct Answer: A - 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.

Q26.
Which unit of the CPU is responsible for performing arithmetic and logical operations?
AArithmetic Logic Unit
BControl Unit
CMemory Unit
DRegister Unit
Show Answer & Explanation

Correct Answer: A - Arithmetic Logic Unit

The ALU (Arithmetic Logic Unit) performs all arithmetic operations (addition, subtraction, etc.) and logical operations (AND, OR, NOT, etc.) within the CPU.

Q27.
What is the primary function of the Control Unit (CU) in a CPU?
AStore data temporarily
BPerform arithmetic calculations
CDecode and execute instructions
DManage cache memory
Show Answer & Explanation

Correct Answer: C - Decode and execute instructions

The Control Unit fetches instructions from memory, decodes them, and generates control signals to coordinate the execution of instructions by other CPU components.

Q28.
Which register in the CPU holds the address of the next instruction to be executed?
AAccumulator
BMemory Address Register
CInstruction Register
DProgram Counter
Show Answer & Explanation

Correct Answer: D - Program Counter

The Program Counter (PC) holds the memory address of the next instruction to be fetched and executed. It is automatically incremented after each instruction fetch.

Q29.
In a 5-stage instruction pipeline, which stage comes immediately after Instruction Fetch?
AExecute
BMemory Access
CWrite Back
DInstruction Decode
Show Answer & Explanation

Correct Answer: D - Instruction Decode

The standard 5-stage pipeline is: Instruction Fetch (IF) → Instruction Decode (ID) → Execute (EX) → Memory Access (MEM) → Write Back (WB).

Q30.
What is a pipeline hazard?
AA situation where the pipeline runs at maximum speed
BA condition that prevents the next instruction from executing in the next clock cycle
CA method to increase pipeline stages
DA technique for branch prediction
Show Answer & Explanation

Correct Answer: B - A condition that prevents the next instruction from executing in the next clock cycle

A pipeline hazard is a situation that prevents the next instruction in the pipeline from executing during its designated clock cycle, causing stalls or bubbles in the pipeline.

Q31.
Which type of pipeline hazard occurs when an instruction depends on the result of a previous instruction still in the pipeline?
AData hazard
BStructural hazard
CControl hazard
DResource hazard
Show Answer & Explanation

Correct Answer: A - Data hazard

A data hazard occurs when an instruction depends on the result of a previous instruction that has not yet completed execution, creating a read-after-write (RAW) dependency.

Q32.
RISC architecture is characterized by:
AComplex instructions with variable lengths
BSimple, fixed-length instructions
CLarge number of addressing modes
DMicroprogrammed control unit
Show Answer & Explanation

Correct Answer: B - Simple, fixed-length instructions

RISC (Reduced Instruction Set Computer) uses simple, fixed-length instructions that can be executed in one clock cycle, with a hardwired control unit and emphasis on register-to-register operations.

Q33.
Which of the following is a characteristic of CISC architecture?
AFixed-length instructions
BVariable-length instructions with complex addressing modes
CSingle-cycle execution
DLarge number of general-purpose registers
Show Answer & Explanation

Correct Answer: B - Variable-length instructions with complex addressing modes

CISC (Complex Instruction Set Computer) features variable-length instructions, complex addressing modes, and instructions that may take multiple clock cycles to execute.

Q34.
What technique is used to resolve data hazards without stalling the pipeline?
ABranch prediction
BInstruction reordering
CData forwarding (bypassing)
DCache coherence
Show Answer & Explanation

Correct Answer: C - Data forwarding (bypassing)

Data forwarding (also called bypassing) passes the result of an instruction directly from the pipeline stage where it is produced to the stage where it is needed, without waiting for write-back.

Q35.
The Instruction Register (IR) stores:
AThe address of the next instruction
BThe stack pointer value
CThe result of the last operation
DThe currently executing instruction
Show Answer & Explanation

Correct Answer: D - The currently executing instruction

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

Q36.
In a pipelined processor, what is the ideal speedup with k stages?
Ak times
Bk/2 times
C2k times
Dlog(k) times
Show Answer & Explanation

Correct Answer: A - k times

In an ideal pipeline with k stages, the speedup is k times compared to a non-pipelined processor, as k instructions can be in different stages of execution simultaneously.

Q37.
Which of the following is NOT a general-purpose register?
AAccumulator
BBase Register
CProgram Counter
DIndex Register
Show Answer & Explanation

Correct Answer: C - Program Counter

The Program Counter is a special-purpose register that holds the address of the next instruction. Accumulator, Base Register, and Index Register are general-purpose registers used for data manipulation.

Q38.
What is superscalar architecture?
AA CPU with a single pipeline
BA CPU with very long instruction words
CA CPU that can execute multiple instructions per clock cycle using multiple pipelines
DA CPU that operates at very high clock speed
Show Answer & Explanation

Correct Answer: C - A CPU that can execute multiple instructions per clock cycle using multiple pipelines

A superscalar processor has multiple execution units (pipelines) that allow it to dispatch and execute more than one instruction per clock cycle, increasing throughput.

Q39.
Branch prediction is used to handle which type of pipeline hazard?
AControl hazard
BData hazard
CStructural hazard
DWrite hazard
Show Answer & Explanation

Correct Answer: A - Control hazard

Control hazards occur due to branch instructions. Branch prediction attempts to guess the outcome of a branch before it is resolved, allowing the pipeline to continue fetching instructions speculatively.

Q40.
What does the MAR (Memory Address Register) hold?
AData to be written to memory
BThe stack pointer
CThe current instruction opcode
DAddress of the memory location to be accessed
Show Answer & Explanation

Correct Answer: D - Address of the memory location to be accessed

The Memory Address Register (MAR) holds the address of the memory location that is to be read from or written to during a memory access operation.

Q41.
Which processor design uses hardwired control unit?
ACISC
BNeither
CBoth CISC and RISC
DRISC
Show Answer & Explanation

Correct Answer: D - RISC

RISC processors typically use a hardwired control unit which is faster but less flexible, while CISC processors traditionally use microprogrammed control units to handle complex instructions.

Q42.
What is the function of the MDR (Memory Data Register)?
AHolds the data being transferred to or from memory
BHolds the address of data in memory
CStores the program counter value
DDecodes instructions
Show Answer & Explanation

Correct Answer: A - Holds the data being transferred to or from memory

The Memory Data Register (MDR), also called Memory Buffer Register (MBR), holds the data that is being read from or written to the memory location specified by MAR.

Q43.
In the fetch-decode-execute cycle, what happens during the decode phase?
AThe instruction is fetched from memory
BResults are written back to memory
CThe instruction is executed by the ALU
DThe opcode is interpreted and operands are identified
Show Answer & Explanation

Correct Answer: D - The opcode is interpreted and operands are identified

During the decode phase, the control unit interprets the opcode of the instruction, identifies the operands, and generates the appropriate control signals for execution.

Q44.
What is the purpose of an instruction pipeline flush?
ATo clear all instructions from the pipeline when a branch is mispredicted
BTo speed up execution
CTo add more instructions to the pipeline
DTo reset the clock speed
Show Answer & Explanation

Correct Answer: A - To clear all instructions from the pipeline when a branch is mispredicted

A pipeline flush discards all instructions currently in the pipeline. This is necessary when a branch is mispredicted, as the speculatively fetched instructions are invalid and must be discarded.

Q45.
Which RISC processor family is used in most modern smartphones?
Ax86
BARM
CMIPS
DSPARC
Show Answer & Explanation

Correct Answer: B - ARM

ARM (Advanced RISC Machine) processors are the dominant RISC architecture in smartphones and mobile devices due to their low power consumption and high performance-per-watt ratio.

Q46.
A structural hazard in pipelining occurs when:
ATwo instructions need the same data
BA branch instruction is encountered
CTwo instructions try to use the same hardware resource simultaneously
DAn interrupt occurs
Show Answer & Explanation

Correct Answer: C - Two instructions try to use the same hardware resource simultaneously

A structural hazard occurs when two or more instructions in the pipeline need to use the same hardware resource (such as memory or an ALU) at the same time.

Q47.
What is the role of the accumulator register?
AStores intermediate results of ALU operations
BStores the address of the next instruction
CStores the stack base address
DStores interrupt vectors
Show Answer & Explanation

Correct Answer: A - Stores intermediate results of ALU operations

The accumulator is a register that stores the intermediate results of arithmetic and logical operations performed by the ALU. It serves as an implicit operand in many instructions.

Q48.
VLIW (Very Long Instruction Word) architecture relies on:
ACompiler to detect and schedule parallel operations
BHardware to detect parallelism at runtime
COperating system for scheduling
DBranch prediction logic
Show Answer & Explanation

Correct Answer: A - Compiler to detect and schedule parallel operations

VLIW architecture relies on the compiler to detect instruction-level parallelism and pack multiple independent operations into a single long instruction word at compile time.

Q49.
Which flag in the status register indicates that the result of an operation is zero?
ACarry flag
BOverflow flag
CZero flag
DSign flag
Show Answer & Explanation

Correct Answer: C - Zero flag

The Zero flag (Z) is set to 1 when the result of an arithmetic or logical operation is zero, and cleared to 0 otherwise. It is commonly used in conditional branch instructions.

Q50.
What is the key advantage of pipelining in a CPU?
AReduces the complexity of instructions
BIncreases instruction throughput
CDecreases the number of registers needed
DEliminates the need for cache memory
Show Answer & Explanation

Correct Answer: B - Increases instruction throughput

Pipelining increases instruction throughput by allowing multiple instructions to be in different stages of execution simultaneously, even though the execution time of a single instruction is not reduced.

Showing 1-10 of 50 questions