1In a General Register Organization, which component is typically used to select which register's data is placed onto the common bus?
A.Decoder
B.Multiplexer (MUX)
C.Encoder
D.Flip-Flop
Correct Answer: Multiplexer (MUX)
Explanation:In a bus-organized register file, multiplexers are used to select the contents of a specific register to be transferred to the bus based on the selection lines.
Incorrect! Try again.
2Which control word field is responsible for selecting the source register for the A-input of the ALU in a general register organization?
A.SELA
B.SELB
C.OPR
D.SELD
Correct Answer: SELA
Explanation:In a typical control word format, SELA selects the register for the first ALU input, SELB for the second, and SELD for the destination.
Incorrect! Try again.
3A stack organized computer uses which address instruction format for arithmetic operations?
A.Three-address instructions
B.Two-address instructions
C.One-address instructions
D.Zero-address instructions
Correct Answer: Zero-address instructions
Explanation:Stack computers use zero-address instructions (e.g., ADD) because the operands are implicitly the top two elements of the stack.
Incorrect! Try again.
4In a memory stack where the stack grows towards lower memory addresses, what is the sequence of operations for a PUSH instruction?
A.
B.
C.
D.
Correct Answer:
Explanation:If the stack grows toward lower addresses, the Stack Pointer (SP) must be decremented first to point to the new empty location (or top), and then data is written to memory.
Incorrect! Try again.
5What is the result of evaluating the Reverse Polish Notation (RPN) expression using a stack?
9Which addressing mode is most suitable for handling array data structures?
A.Immediate Addressing
B.Register Addressing
C.Indexed Addressing
D.Implied Addressing
Correct Answer: Indexed Addressing
Explanation:Indexed addressing uses an index register to offset a base address, making it ideal for iterating through arrays.
Incorrect! Try again.
10In Indirect Addressing Mode, what does the address field of the instruction contain?
A.The operand itself
B.The address of the operand
C.The address of the address of the operand
D.The effective address calculated by the ALU
Correct Answer: The address of the address of the operand
Explanation:In Indirect Addressing, the instruction specifies a memory location that contains the actual address of the operand.
Incorrect! Try again.
11What is the primary characteristic of a RISC (Reduced Instruction Set Computer) architecture regarding instruction length?
A.Variable instruction length
B.Fixed instruction length
C.Length depends on the opcode
D.Length depends on the addressing mode
Correct Answer: Fixed instruction length
Explanation:RISC architectures typically use fixed instruction lengths to simplify instruction decoding and pipelining.
Incorrect! Try again.
12Which of the following is a characteristic of CISC (Complex Instruction Set Computer) architecture?
A.Large number of registers
B.Hardwired control unit
C.Variable format instructions
D.Single cycle execution
Correct Answer: Variable format instructions
Explanation:CISC architectures support variable length instructions and diverse formats to accommodate complex operations.
Incorrect! Try again.
13In RISC architecture, most operations are performed in:
A.Memory
B.Registers
C.I/O devices
D.Cache only
Correct Answer: Registers
Explanation:RISC uses a Load/Store architecture where arithmetic and logic operations are performed only on registers; memory is accessed only via Load and Store instructions.
Incorrect! Try again.
14Which control unit implementation is typically found in CISC architectures?
A.Hardwired Control
B.Microprogrammed Control
C.Pipelined Control
D.Software Control
Correct Answer: Microprogrammed Control
Explanation:CISC often uses microprogrammed control to manage complex instructions, whereas RISC favors hardwired control for speed.
Incorrect! Try again.
15A Three-Address Instruction format looks like: ADD R1, A, B. What does this instruction do?
A.
B.
C.
D.
Correct Answer:
Explanation:In memory-to-memory three-address formats, the operation adds the contents of address A and address B and stores the result in address R1 (or register R1, depending on specific notation, but generally source A/B and destination R1).
Incorrect! Try again.
16Which instruction format implies the use of the Accumulator register?
A.Three-address
B.Two-address
C.One-address
D.Zero-address
Correct Answer: One-address
Explanation:One-address instructions (e.g., ADD X) imply that the second operand and the destination is the Accumulator ().
Incorrect! Try again.
17In the context of data transfer, what does DMA stand for?
A.Direct Memory Allocation
B.Direct Memory Access
C.Dual Memory Access
D.Dynamic Memory Access
Correct Answer: Direct Memory Access
Explanation:DMA stands for Direct Memory Access, a feature allowing hardware subsystems to access main system memory independently of the CPU.
Incorrect! Try again.
18Which data transfer method involves the CPU constantly checking the status of the I/O device?
A.Interrupt-driven I/O
B.DMA
C.Programmed I/O (Polling)
D.Serial Transfer
Correct Answer: Programmed I/O (Polling)
Explanation:In Programmed I/O (Polling), the CPU stays in a loop checking the status flag of the I/O interface until it is ready.
Incorrect! Try again.
19During a DMA transfer, who controls the system bus?
A.The CPU
B.The DMA Controller
C.The Main Memory
D.The I/O Device
Correct Answer: The DMA Controller
Explanation:During DMA, the CPU grants bus control to the DMA Controller, which manages the transfer directly between memory and I/O.
Incorrect! Try again.
20What is Cycle Stealing in the context of DMA?
A.The CPU takes cycles from the DMA controller.
B.The DMA controller transfers one word at a time by borrowing a bus cycle from the CPU.
C.The DMA controller halts the CPU for the entire duration of the block transfer.
D.The Operating System steals cycles from idle processes.
Correct Answer: The DMA controller transfers one word at a time by borrowing a bus cycle from the CPU.
Explanation:Cycle stealing allows the DMA to transfer one data word when the bus is idle or by forcing the CPU to pause for one cycle, rather than blocking the CPU for the whole block.
Incorrect! Try again.
21Which type of interrupt is initiated by an instruction within the program (e.g., division by zero)?
A.External Interrupt
B.Hardware Interrupt
C.Internal Interrupt (Trap)
D.Maskable Interrupt
Correct Answer: Internal Interrupt (Trap)
Explanation:Internal interrupts, also known as traps or exceptions, arise from illegal or erroneous use of an instruction or data (e.g., overflow, divide by zero).
Incorrect! Try again.
22What is the function of the Processor Status Word (PSW)?
A.To hold the next instruction address
B.To store the top of the stack
C.To hold the current status of the CPU, including condition flags
D.To decode the instruction opcode
Correct Answer: To hold the current status of the CPU, including condition flags
Explanation:The PSW is a register that contains status information (like Zero, Carry, Overflow flags) and control information (like interrupt enable bits).
Incorrect! Try again.
23Which flag in the PSW is set if an arithmetic result is zero?
A.C (Carry)
B.S (Sign)
C.Z (Zero)
D.V (Overflow)
Correct Answer: Z (Zero)
Explanation:The Z (Zero) flag is set to 1 if the ALU operation result is zero.
Incorrect! Try again.
24In a 2's complement system, which flag indicates an overflow condition for signed arithmetic?
A.C (Carry)
B.Z (Zero)
C.V (Overflow)
D.P (Parity)
Correct Answer: V (Overflow)
Explanation:The V flag indicates that the result of a signed number operation is too large to fit in the register (arithmetic overflow).
Incorrect! Try again.
25The Sign Flag (S) in the PSW usually copies which bit of the result?
A.The Least Significant Bit (LSB)
B.The Most Significant Bit (MSB)
C.The middle bit
D.The parity bit
Correct Answer: The Most Significant Bit (MSB)
Explanation:In signed arithmetic, the MSB represents the sign (0 for positive, 1 for negative). The S flag copies this bit.
Incorrect! Try again.
26What happens to the Program Counter (PC) when a subroutine is called using a CALL instruction?
A.It is reset to 0.
B.Its content (return address) is pushed onto the stack.
C.It remains unchanged.
D.It is decremented.
Correct Answer: Its content (return address) is pushed onto the stack.
Explanation:To return to the main program later, the address of the next instruction (PC) is saved (pushed to stack) before jumping to the subroutine.
Incorrect! Try again.
27What is a Vectored Interrupt?
A.An interrupt that always goes to a fixed memory location.
B.An interrupt where the device supplies the address (or vector) of the interrupt service routine.
C.An interrupt caused by a vector processor.
D.An interrupt that cannot be disabled.
Correct Answer: An interrupt where the device supplies the address (or vector) of the interrupt service routine.
Explanation:In vectored interrupts, the interrupting source provides branching information (the interrupt vector) to identify the specific code to execute.
Incorrect! Try again.
28Which addressing mode is often used to access the operand when the address is computed by adding a constant value to the contents of the Program Counter?
A.Register Indirect
B.Relative Addressing
C.Indexed Addressing
D.Immediate Addressing
Correct Answer: Relative Addressing
Explanation:Relative addressing uses the PC relative to an offset (constant) to find the Effective Address.
Incorrect! Try again.
29In the instruction format, the Opcode specifies:
A.The location of the operand
B.The operation to be performed
C.The address of the next instruction
D.The priority of the interrupt
Correct Answer: The operation to be performed
Explanation:The Opcode (Operation Code) field specifies the type of operation (e.g., ADD, MOV, JMP) the CPU must execute.
Incorrect! Try again.
30What is the primary advantage of using General Register Organization over Accumulator-based organization?
A.Simpler hardware
B.Faster memory access
C.Reduced traffic to memory and flexible programming
D.Smaller instruction size
Correct Answer: Reduced traffic to memory and flexible programming
Explanation:General registers allow intermediate results to be stored internally in the CPU, reducing the need to access slow main memory.
Incorrect! Try again.
31Which component manages the priority of simultaneous interrupts?
A.ALU
B.DMA Controller
C.Priority Interrupt Controller
D.Program Counter
Correct Answer: Priority Interrupt Controller
Explanation:A Priority Interrupt Controller (PIC) hardware determines which interrupt request has the highest priority and should be serviced first.
Incorrect! Try again.
32The Auto-increment addressing mode is useful for:
A.Accessing a single variable
B.Accessing constants
C.Iterating sequentially through a block of data
D.Branching to subroutines
Correct Answer: Iterating sequentially through a block of data
Explanation:Auto-increment automatically updates the register to point to the next data element, simplifying loops over arrays or blocks.
Incorrect! Try again.
33In RISC, the register file is typically:
A.Small (less than 8 registers)
B.Large (32 or more registers)
C.Non-existent
D.Only used for floating point
Correct Answer: Large (32 or more registers)
Explanation:RISC architectures employ large register files to keep variables locally and minimize memory access (Load/Store model).
Incorrect! Try again.
34Which term describes the overlapping of instruction execution phases to increase throughput?
A.Polling
B.Pipelining
C.Interrupts
D.Direct Memory Access
Correct Answer: Pipelining
Explanation:Pipelining is a technique where multiple instructions are overlapped in execution (e.g., one fetching while another decodes).
Incorrect! Try again.
35In Base Register Addressing, the effective address is calculated as:
A.
B.
C.
D.
Correct Answer:
Explanation:Base register addressing sums the contents of a Base Register and a displacement (offset) to locate operands, often used for relocatable code.
Incorrect! Try again.
36What happens when a stack Overflow occurs?
A.The stack is empty.
B.An attempt is made to push data into a full stack.
C.An attempt is made to pop data from an empty stack.
D.The stack pointer becomes zero.
Correct Answer: An attempt is made to push data into a full stack.
Explanation:Stack overflow is an error condition that occurs when the stack runs out of allocated memory space during a push operation.
Incorrect! Try again.
37Which transfer mode uses Handshaking signals (Request/Acknowledge)?
A.Synchronous Transfer
B.Asynchronous Transfer
C.Isochronous Transfer
D.Clocked Transfer
Correct Answer: Asynchronous Transfer
Explanation:Asynchronous data transfer uses handshaking signals to coordinate data transfer between units that operate at different clock speeds or are unclocked.
Incorrect! Try again.
38The RET (Return) instruction at the end of a subroutine typically:
A.Jumps to the start of memory
B.Pops the return address from the stack into the PC
C.Clears the Accumulator
D.Resets the Stack Pointer
Correct Answer: Pops the return address from the stack into the PC
Explanation:The RET instruction restores the Program Counter with the address saved on the stack during the CALL, resuming the main program.
Incorrect! Try again.
39A RISC processor aims to achieve a CPI (Cycles Per Instruction) of approximately:
A.1
B.5
C.10
D.0.1
Correct Answer: 1
Explanation:The goal of RISC is to execute one instruction per clock cycle on average, often achieved via pipelining.
Incorrect! Try again.
40In Implied Addressing Mode, the operand is:
A.Specified in the instruction
B.Stored in the memory
C.Implicitly defined by the instruction definition (e.g., CMA complements Accumulator)
D.Located at the address in the Index Register
Correct Answer: Implicitly defined by the instruction definition (e.g., CMA complements Accumulator)
Explanation:Implied addressing does not strictly require an address field because the location is known from the opcode (e.g., 'Clear Carry' affects the carry flag).
Incorrect! Try again.
41The collection of all status bits (flags) and control bits is often referred to as:
A.ALU
B.Register File
C.CCR (Condition Code Register) or PSW
D.MAR (Memory Address Register)
Correct Answer: CCR (Condition Code Register) or PSW
Explanation:The Condition Code Register or Processor Status Word aggregates the status flags (Z, S, V, C) and control bits.
Incorrect! Try again.
42Which of the following instructions is likely to be found in a CISC machine but not a RISC machine?
A.LOAD R1, A
B.ADD R1, R2, R3
C.MOV A, M[SI+100]
D.STORE R2, B
Correct Answer: MOV A, M[SI+100]
Explanation:Complex instructions with complex addressing modes (like moving memory to register with indexed offset) are typical of CISC. RISC separates Load/Store from arithmetic.
Incorrect! Try again.
43What is the logic equation for the Carry Flag (C) typically generated by an adder?
A.End carry out of the MSB position
B.XOR of the last two carries
C.Result equals zero
D.MSB of the result
Correct Answer: End carry out of the MSB position
Explanation:The Carry flag is set if the arithmetic operation generates a carry out of the most significant bit position (for unsigned arithmetic overflow).
Incorrect! Try again.
44In the context of Interrupts, what does Masking mean?
A.Deleting the interrupt
B.Temporarily ignoring or disabling specific interrupts
C.Executing the interrupt immediately
D.Hiding the data bus
Correct Answer: Temporarily ignoring or disabling specific interrupts
Explanation:Masking an interrupt involves setting a bit to preventing the CPU from responding to that specific interrupt request.
Incorrect! Try again.
45Which register is used to point to the next instruction to be fetched?
A.IR
B.PC
C.MAR
D.MDR
Correct Answer: PC
Explanation:The Program Counter (PC) holds the memory address of the next instruction to be fetched and executed.
Incorrect! Try again.
46The Burst Mode in DMA transfer:
A.Transfers a block of data continuously until completion
B.Transfers one byte and releases the bus
C.Is slower than cycle stealing
D.Requires CPU intervention for every byte
Correct Answer: Transfers a block of data continuously until completion
Explanation:In Burst Mode, the DMA controller takes control of the bus and transfers the entire block of data before releasing control back to the CPU.
Incorrect! Try again.
47Which of the following is NOT a typical field in an instruction format?
A.Opcode
B.Mode Field
C.Address Field
D.Date Field
Correct Answer: Date Field
Explanation:Instruction formats contain opcodes, addressing modes, and operand addresses/values. They do not contain timestamps or dates.
Incorrect! Try again.
48Logic Shift Left (LSL) by 1 bit is equivalent to:
A.Division by 2
B.Multiplication by 2
C.Addition of 2
D.Subtraction of 2
Correct Answer: Multiplication by 2
Explanation:In binary arithmetic, shifting bits to the left by one position multiplies the integer value by 2.
Incorrect! Try again.
49Which addressing mode uses the equation , where the PC then increments?
A.Immediate
B.Direct (Absolute)
C.Indirect
D.Register
Correct Answer: Direct (Absolute)
Explanation:In Direct addressing (assuming the address follows the opcode), the EA is the value located at the address pointer by PC (which is the address part of the instruction).
Incorrect! Try again.
50What distinguishes Supervisor Mode (or Kernel Mode) from User Mode in the PSW?
A.Supervisor mode allows execution of privileged instructions.
B.User mode runs faster.
C.Supervisor mode consumes less power.
D.There is no difference.
Correct Answer: Supervisor mode allows execution of privileged instructions.
Explanation:The PSW contains a mode bit. In Supervisor mode, the CPU can execute all instructions, including privileged ones (like I/O or memory management), which are restricted in User mode.
Incorrect! Try again.
Give Feedback
Help us improve by sharing your thoughts or reporting issues.