All mock tests are FREE till 31 December — register to save your progress
Unit 2 · Computer System Architecture Paper 2 CS · November 2020

The following program is stored in the basic computer (locations in hex): 210 CLA; 211 ADD 217; 212 INC; 213 STA 217; 214 LDA 218; 215 CMA; 216 AND 217; 217 1234H; 218 9CE2H. What is the content of the accumulator after execution?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. 0215H

Explanation

AC = 0, + 1234 = 1234, INC → 1235, stored at 217. Load 9CE2, complement → 631D. AND with 1235: 631D & 1235 = 0215H.

More Computer System Architecture questions