πŸŽ“ BookMCQ
← Back to 2. Simple as Possible (SAP) - I

πŸ“ Instruction Set of Simple as Possible (SAP) I Computer (14 MCQs)

Five Fundamental Instructions Supported by SAP-I

The SAP-I instruction set consists of five basic instructions that demonstrate memory access, arithmetic processing, output generation and program termination. These instructions are LDA, ADD, SUB, OUT and HLT. LDA loads data from a specified memory location, ADD and SUB perform arithmetic using the accumulator and B register, OUT transfers the accumulator contents to the output register, and HLT stops normal instruction execution.

Opcode and Address Fields in an Eight-Bit Instruction

Each SAP-I instruction occupies one 8-bit memory word. The upper four bits represent the opcode, identifying the operation, while the lower four bits provide a memory address when required. This format supports sixteen possible opcode patterns and sixteen memory addresses. Instructions such as OUT and HLT do not require an operand memory address, so their lower fields are not used as memory operands.

Memory and Arithmetic Operations Through Instruction Execution

LDA transfers the selected memory byte into the accumulator. ADD and SUB first obtain the operand from memory through the B register before activating the arithmetic unit. OUT enables accumulator data to reach the output register. HLT activates the halt control condition. The controller interprets each opcode and generates the corresponding register, memory and ALU control signals.

Tracing LDA, ADD, SUB and OUT Instructions

Assume RAM location 0EH contains 06H and location 0FH contains 02H. LDA 0EH loads 06H into the accumulator. ADD 0FH produces 08H, while SUB 0FH instead produces 04H when executed from the same initial accumulator value. OUT transfers the resulting accumulator value into the output register.

Relationship Between Instruction Types and SAP-I Hardware

The instruction set directly reflects the computer's hardware organization. LDA depends on RAM, MAR and the accumulator, while ADD and SUB use RAM, the B register and adder-subtractor. OUT uses the accumulator and output register, whereas HLT controls the sequencing circuit. Unlike larger processors, basic SAP-I does not include general branching, multiplication or a comprehensive set of data-transfer instructions.

Instruction Set Misconceptions and Their Corrections

'LDA adds memory data to the accumulator' is incorrect because LDA replaces the accumulator contents with the selected byte. 'ADD stores its result in the B register' confuses the operand register with the accumulator, which receives the result. 'OUT writes data back into RAM' is incorrect because OUT transfers accumulator data to the separate output register.

Opcode Interpretation and Instruction-Tracing Questions

Identify the five mnemonics and explain their effects on registers and memory. Practise separating the upper opcode nibble from the lower address nibble and tracing the resulting control operations. Questions may require identifying which instructions access RAM, which use the ALU, where arithmetic results are stored or how HLT changes normal sequencing.

SAP-I Instruction and Opcode Terminology

  • LDA - Loads memory data into the accumulator.
  • ADD - Adds memory data to the accumulator.
  • SUB - Subtracts memory data from the accumulator.
  • OUT - Transfers accumulator data to output.
  • HLT - Stops normal instruction execution.
  • Opcode - Identifies the instruction operation.
  • Operand - Supplies the required instruction data.
2
Easy
7
Medium
5
Hard

πŸ“ All Instruction Set of Simple as Possible (SAP) I Computer MCQs

Q1. What does ALU stand for in the SAP‑I computer architecture?

A.Arithmetic Logic Unit βœ…
B.Arithmetic and Logical Unit
C.Advanced Load Unit
D.Array Linkage Utility
πŸ’‘ Difficulty: easy | βœ… Correct: A

πŸ“– Explanation: The correct answer is A because ALU is the abbreviation for Arithmetic Logic Unit, the part that carries out arithmetic and logical operations. Option B mixes the words but adds β€œand” which changes the meaning. Options C and D are unrelated terms that do not exist in this architecture. Understanding the acronym helps a student see how the ALU fits into the CPU and why it processes calculations before results move to other units.

Q2. Which component is primarily responsible for generating the clock pulses that synchronize operations in the SAP‑I system?

A.Memory Unit
B.Control Unit βœ…
C.ALU
D.Output Unit
πŸ’‘ Difficulty: easy | βœ… Correct: B

πŸ“– Explanation: Option B is correct because the Control Unit issues clock pulses that time the activities of the ALU and other parts. The Memory Unit stores data but does not control timing, so A is wrong. The ALU executes operations but relies on the clock, making C incorrect. The Output Unit displays results and does not generate timing signals, so D is false. Recognizing the Control Unit’s role clarifies how the whole computer stays coordinated.

Q3. How does the Control Unit determine the next instruction to execute in a SAP‑I program?

A.It randomly selects an instruction from memory
B.It follows a predetermined sequence stored in the instruction register βœ…
C.It asks the ALU which instruction is needed
D.It waits for user input each cycle
πŸ’‘ Difficulty: medium | βœ… Correct: B

πŸ“– Explanation: The Control Unit follows the sequence stored in the instruction register, so B is correct. Random selection (A) would produce chaotic behavior and is not how computers operate. The ALU performs calculations but does not choose instructions, making C incorrect. Waiting for user input every cycle (D) would halt processing, which is not the normal flow. This explanation shows why the Control Unit’s sequencing is essential for program execution.

Q4. A program adds two numbers and then sends the sum to a printer. Which order of units correctly processes this task?

A.Output β†’ ALU β†’ Control
B.Control β†’ Output β†’ ALU
C.Control β†’ ALU β†’ Output βœ…
D.ALU β†’ Control β†’ Output
πŸ’‘ Difficulty: medium | βœ… Correct: C

πŸ“– Explanation: The correct flow is Control β†’ ALU β†’ Output, so option C is right. The Control Unit first fetches the instruction, the ALU performs the addition, and the Output Unit prints the result. Option A starts with the Output Unit, which cannot begin before a result exists. Option B places the Output Unit before the ALU, breaking the logical order. Option D begins with the ALU without a control command, which is impossible. This sequence mirrors real‑world processing steps.

Q5. If the Control Unit stops sending clock pulses, which immediate effect is most likely?

A.The ALU will continue processing at its own speed
B.All units will halt until the pulse resumes βœ…
C.The Output Unit will display incomplete data
D.Memory will overwrite active instructions
πŸ’‘ Difficulty: medium | βœ… Correct: B

πŸ“– Explanation: When clock pulses cease, the entire system pauses, so B is correct. The ALU cannot continue independently without timing signals, making A false. The Output Unit relies on completed operations; without a clock it cannot produce output, so C is incorrect. Memory does not overwrite instructions merely because the clock stops, thus D is wrong. This scenario illustrates why continuous clocking is vital for synchronized computer activity.

Q6. Why are the ALU and Control Unit combined into the CPU in the SAP‑I design?

A.To reduce manufacturing cost
B.To allow simultaneous execution of arithmetic and control tasks βœ…
C.Because they share the same power supply
D.To simplify programming languages
πŸ’‘ Difficulty: medium | βœ… Correct: B

πŸ“– Explanation: Option B is correct because integrating the ALU and Control Unit into a single CPU enables them to work closely together, reducing communication delays and allowing faster instruction execution. Reducing cost (A) may be a side effect but is not the primary architectural reason. Sharing power (C) is a technical detail, not a design motive. Simplifying programming languages (D) is unrelated to hardware integration. This answer links hardware organization to improved computational efficiency.

Q7. A SAP‑I program must compute 144 Γ· 12 using its instruction set. Which instruction order correctly performs this division?

A.Load 144 β†’ Divide by 12 β†’ Store result βœ…
B.Load 12 β†’ Divide 144 β†’ Store result
C.Load 144 β†’ Load 12 β†’ Perform division β†’ Store result
D.Load 144 β†’ Perform subtraction repeatedly β†’ Store result
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– Explanation: The correct sequence is to load both operands, then execute the division operation, so C is right. Option A suggests a single instruction that directly divides, which the SAP‑I set may not have; it also omits loading the divisor. Option B loads the divisor first but never loads the dividend, making it invalid. Option D describes a repeated subtraction method but does not use the division instruction, which the question asks for. Understanding the proper order mirrors how real programs manage operands and operations.

Q8. In a loop that increments a counter until it reaches 10, which instruction pattern ensures correct execution using a conditional jump?

A.Load counter β†’ Increment β†’ Jump if zero β†’ End
B.Load counter β†’ Increment β†’ Compare with 10 β†’ Jump if not equal β†’ Repeat βœ…
C.Load counter β†’ Increment β†’ Jump unconditionally β†’ End
D.Load counter β†’ Decrement β†’ Jump if negative β†’ Repeat
πŸ’‘ Difficulty: hard | βœ… Correct: B

πŸ“– Explanation: Option B is correct because the loop must compare the counter with 10 and jump back when the condition (not equal) holds. A jumps on zero, which would stop the loop prematurely (A). An unconditional jump (C) would create an infinite loop without checking the limit. Decrementing (D) moves the counter in the wrong direction, preventing it from ever reaching 10. This explanation connects the conditional jump mechanism to typical programming loops.

Q9. How do logical operations performed by the ALU influence decisions made by the Control Unit?

A.They provide status flags that the Control Unit can test βœ…
B.They directly change the next instruction address
C.They only affect the Output Unit, not the Control Unit
D.They have no effect on program flow
πŸ’‘ Difficulty: hard | βœ… Correct: A

πŸ“– Explanation: The ALU sets status flags (e.g., zero, carry) after logical operations, and the Control Unit examines these flags to decide on branching or conditional execution, so A is correct. The ALU does not directly modify the instruction address; the Control Unit uses flags to determine jumps, making B false. Logical results do not bypass the Control Unit to affect the Output Unit alone, so C is wrong. Saying there is no effect (D) ignores the fundamental interaction between ALU results and control flow. This relationship is essential for real‑world conditional programming.

Q10. A faulty output unit displays garbled characters after an ALU operation. Which diagnostic step should be taken first?

A.Check the ALU’s arithmetic results for errors
B.Inspect the printer cables for loose connections
C.Verify the Control Unit’s clock pulse timing βœ…
D.Run a memory parity test
πŸ’‘ Difficulty: hard | βœ… Correct: C

πŸ“– Explanation: Inspecting the printer cables is the first logical step because garbled output often stems from physical connection problems, making B correct. If the ALU’s results were incorrect, the output would be numerically wrong but still legible, so A is not the primary check. Clock pulse timing (C) affects processing, not display quality. Memory parity (D) relates to data integrity, not output distortion. This answer ties a practical troubleshooting approach to the hardware components.

Q11. What role do clock pulses play in synchronizing the ALU and Control Unit?

A.They store intermediate results
B.They provide the timing reference for each operation βœ…
C.They convert binary data to decimal
D.They power the output devices
πŸ’‘ Difficulty: medium | βœ… Correct: B

πŸ“– Explanation: The correct answer is that clock pulses give timing reference, so B is correct. Storing intermediate results (A) is a function of registers, not clocks. Converting binary to decimal (C) is performed by output conversion logic, not by timing signals. Supplying power to output devices (D) is unrelated to synchronization. Understanding clock pulses helps students see how coordinated timing enables reliable computation in real systems.

Q12. When implementing multiplication using only addition instructions, which unit carries out the repeated addition?

A.Control Unit
B.ALU βœ…
C.Output Unit
D.Memory Unit
πŸ’‘ Difficulty: medium | βœ… Correct: B

πŸ“– Explanation: The ALU performs the arithmetic, so B is correct. The Control Unit merely directs the sequence of addition operations; it does not execute the arithmetic itself, making A incorrect. The Output Unit displays results but does not calculate them, so C is false. Memory stores values but does not add them, thus D is wrong. This scenario reflects how limited instruction sets rely on the ALU for repeated arithmetic tasks.

Q13. During an interrupt that occurs while the ALU is processing, which unit handles the interrupt and what is the immediate effect?

A.The Output Unit pauses display, ALU continues
B.The Control Unit saves the current state and redirects execution βœ…
C.The ALU aborts the operation and restarts
D.Memory Unit overwrites the instruction causing the interrupt
πŸ’‘ Difficulty: hard | βœ… Correct: B

πŸ“– Explanation: The Control Unit is responsible for handling interrupts; it saves the processor state and jumps to the interrupt service routine, making B correct. The Output Unit does not manage interrupts, so A is wrong. The ALU does not autonomously abort operations; it follows the Control Unit’s direction, so C is incorrect. Memory does not intervene in interrupt handling, thus D is false. This explanation links interrupt handling to real‑world system responsiveness.

Q14. How does the output unit translate binary results from the ALU into human‑readable form?

A.It uses a built‑in decoder to map binary patterns to characters βœ…
B.It sends the binary directly to the printer without conversion
C.It relies on the Control Unit to perform the conversion
D.It stores the binary in memory for later use
πŸ’‘ Difficulty: hard | βœ… Correct: A

πŸ“– Explanation: Option A is correct because the output unit contains decoding circuitry that converts binary codes into visible symbols or signals for devices like CRTs or printers. Sending binary directly (B) would produce unreadable output. Expecting the Control Unit to convert (C) misplaces the function; the Control Unit orchestrates flow but does not handle display conversion. Storing binary for later (D) does not produce immediate human‑readable output. This answer connects hardware conversion to the user‑visible results in practical computing.

πŸ”— Related Topics (MCQs)