MCQ On CPU Registers
Q1. What is the primary function of a CPU register?.
- To store large amounts of data for long-term use.
- To provide high-speed, temporary storage for data and instructions currently being used by the CPU.
- To handle input and output operations with peripheral devices.
- To manage virtual memory and swap space on a hard drive.
Answer: b, To provide high-speed, temporary storage for data and instructions currently being used by the CPU.
Q2. The register that holds the address of the next instruction to be fetched from memory is the:.
- Instruction Register (IR)
- Memory Address Register (MAR)
- Program Counter (PC)
- Accumulator (AC)
Answer: c, Program Counter (PC)
Q3. Which register holds the instruction currently being executed or decoded?.
- Storing the address of the next instruction to be executed.
- Holding the memory address of the data to be accessed.
- Instruction Register (IR)
- Temporarily storing the result of an arithmetic or logical operation.
Answer: c, Instruction Register (IR)
Q4. Which type of register is often used to hold intermediate results of arithmetic and logical operations?.
- Memory Address Register (MAR)
- Accumulator (AC)
- Program Counter (PC)
- Memory Data Register (MDR)
Answer: b, Accumulator (AC)
Q5. The Memory Address Register (MAR) and Memory Data Register (MDR) help the CPU communicate with which component?.
- The CPU and the hard disk.
- The CPU and the main memory (RAM).
- The ALU and the control unit.
- The cache memory and the virtual memory.
Answer: b, The CPU and the main memory (RAM).
Q6. What is a key difference between General-Purpose Registers and Special-Purpose Registers?.
- General-Purpose Registers are always larger in size than Special-Purpose Registers.
- General-Purpose Registers can be used for various tasks, while Special-Purpose Registers are designated for a specific function.
- General-Purpose Registers are only accessible by the operating system, while Special-Purpose Registers can be used by any program.
- Special-Purpose Registers are visible to the user, while General-Purpose Registers are not.
Answer: b, General-Purpose Registers can be used for various tasks, while Special-Purpose Registers are designated for a specific function.
Q7. Which of the following registers is typically not accessible by the programmer?.
- Program Counter (PC)
- General-Purpose Registers
- Memory Address Register (MAR)
- Accumulator (AC)
Answer: c, Memory Address Register (MAR)
Q8. In a modern CPU, which register holds temporary data during calculations and logical operations?.
- Temporary Register (TR)
- Program Counter (PC)
- Instruction Register (IR)
- Memory Address Register (MAR)
Answer: a, Temporary Register (TR)
Q9. What does a "Flag" or "Status" register contain?.
- The address of the next instruction.
- The status of the CPU and the results of various operations.
- Data to be written to memory.
- The instruction currently being executed.
Answer: b, The status of the CPU and the results of various operations.
Q10. When an instruction is fetched from memory, it is first placed in which register?.
- Program Counter (PC)
- Memory Data Register (MDR)
- Memory Address Register (MAR)
- Instruction Register (IR)
Answer: d, Instruction Register (IR)
Q11. Which of the following registers holds the address of an instruction?.
- DR
- PC
- IR
- More than one of the above
Answer: b, PC
Q12. Which addressing mode is useful for initializing registers to a constant value?.
- implied mode
- immediate mode
- register mode
- register indirect mode
Answer: b, immediate mode
Q13. Which of the following is a group of bits that instructs the computer to perform a specific operation?.
- address
- memory
- program counter
- instruction code
Answer: d, instruction code
Q14. A register is defined as ___________.
- The group of latches for storing one bit of information
- The group of latches for storing n-bit of information
- The group of flip-flops suitable for storing one bit of information
- The group of flip-flops suitable for storing binary information
Answer: d, The group of flip-flops suitable for storing binary information
Solution: A register is defined as the group of flip-flops suitable for storing binary information. Each flip-flop is a binary cell capable of storing one bit of information. The data in a register can be transferred from one flip-flop to another.
Q15. The register is a type of ___________.
- Sequential circuit
- Combinational circuit
- CPU
- Latches
Answer: a, Sequential circuit
Solution: Register’s output depends on the past and present states of the inputs. The device which follows these properties is termed as a sequential circuit. Whereas, combinational circuits only depend on the present values of inputs.
Q16. The length of a register is called _______.
- word limit
- word size
- register limit
- register size
Answer: b, word size
Solution: The length of a register is called word size. It tells the number of bits a register can store. Registers are a part of the CPU.
Q17. The _________ holds the contents of the accessed memory word..
- MAR
- MBR
- PC
- IR
Answer: b, MBR
Solution: The MBR holds the contents of the accessed (read/written) memory word. MBR stands for Memory Buffer Register.
Q18. Which of the following is not a visible register?.
- General Purpose Registers
- Address Register
- Status Register
- MAR
Answer: d, MAR
Solution: MAR or the memory address register is not a visible register. This register is user inaccessible. It contains the address of the memory block to be read or written to.
Q19. What kind of a flag is the sign flag?.
- General Purpose
- Status
- Address
- Instruction
Answer: b, Status
Solution: Sign flag is a type of status register or the flag register. It is used to indicate the sign of certain bits.