Computer Architecture and Organization
CIS · Quiz · Summer 26
Paper 1 of 6Section A · Batch 24 · Md Shahinur Rahman (স জি ব) (1)Switch
Section A · Batch 24
Paper 1 of 6
Read the questions as text
Read off the PDF by AI, so it may have mistakes. The PDF is the original.
Quiz Test 02 (Missing Quiz)
Course Code: CIS131
Course Title: Computer Architecture and Organization
Exam Duration: 40 mins
Marks: 15
Answer ALL Questions:
1. Encode the following MIPS instructions into their 32-bit machine code:
a) add $t2, $s3, $s4
b) lw $t3, 17($s2)
Use the following register numbers and opcodes:
$t2 = $10; $t3 = $14; $s2 = $18; $s3 = $19; $s4 = $20;
add opcode = 100000; lw opcode = 100011
[4]
2. What are the differences between Immediate and Indirect Addressing Modes?
[3]
3. Mention one use case of Direct Addressing Mode.
[1]
4. A web application spends part of its execution time processing image compression. A new hardware accelerator makes the compression task run 7 times faster, while the rest of the application remains unchanged. If compression accounts for 45% of the total execution time, find the overall system speedup.
[3]
5. Consider two programs A and B that solve a given problem. A is scheduled to run on a processor P1 operating at 2.2 GHz and B is scheduled to run on processor P2 running at 3.6 GHz. A has a total of 6500 instructions, out of which 15% are load/store instructions, 45% are ALU instructions, and the rest are branch instructions. B is composed of 20% ALU instructions. The number of branch instructions in B is 35%, and the rest are load/store instructions. Total instruction count of B is 8000. In both P1 and P2, branch instructions have an average CPI of 4 and ALU instructions have an average CPI of 2. Both architectures differ in the CPI of load/store instructions. They are 3 and 2 for P1 and P2, respectively.
a) Find CCT for each processor.
b) Calculate the average CPI for both.
c) Calculate the execution time for both.
d) Determine which processor is faster and by what speedup factor.
[4]