Computer Architecture
SWE · Quiz · Fall 26
Paper 2 of 2Section L · Batch 46 · Md Fuad Hassan Shiraji (2)Switch
Section L · Batch 46
Paper 2 of 2
Read the questions as text
Read off the PDF by AI, so it may have mistakes. The PDF is the original.
Daffodil International University
Faculty of Science & Information Technology
Department of Software Engineering
Course Code: SE222, Course Title: Computer Architecture
Quiz-2 Section: 46 L Marks: 15
Student ID :
Location | Data / instruction
500 | 33601
501 | 53602
502 | 63603
503 | 73604
504 | 23603
. | .
. | .
. | .
3601 | 008
3602 | 004
3603 | 002
3604 | 012
Opcode
0010 = Subtract memory value from AC
0011 = Load AC from memory
0101 = Add memory value to AC
0110 = Store AC into memory
0111 = If AC > memory value, AC = AC + 1;
else, AC = AC + 2
1. Execute the instructions sequentially and complete the table below. Whenever a memory value changes, rewrite the corresponding entry directly in the memory table provided above. (10 Marks)
Step | PC | IR | Operation | AC
2. Assume the CPU is executing a sequence of instructions in a program, and an interrupt can occur while the program is running. Visualize the instruction execution cycle considering interrupts. (5 marks)