Assembly Programming
Fundamentals Exam Questions &
Answers (Grade A+)
How many registers are there in MIPS architecture? -
correct answer ✅32
Which registers are used to return values from a procedure? -
correct answer ✅$v0, $v1
What register holds the return address after a procedure call? -
correct answer ✅$ra
What are the three basic instruction formats in MIPS? -
correct answer ✅R-type, I-type, J-type
What are the fields in R-type instruction format? -
correct answer ✅opcode, rs, rt, rd, shamt, Func
How many bits are in each field of R-type instruction format? -
correct answer ✅6, 5, 5, 5, 5, 6
, Computer Architecture and MIPS
Assembly Programming
Fundamentals Exam Questions &
Answers (Grade A+)
What are the fields in I-type instruction format? -
correct answer ✅opcode, rs, rt, offset
How many bits are in each field of I-type instruction format? -
correct answer ✅6, 5, 5, 16
What are the fields in J-type instruction format? -
correct answer ✅opcode, address
How many bits are in the J-type instruction format? -
correct answer ✅6, 26
What does the 'jal' instruction do? -
correct answer ✅Branches to the procedure location
What does the 'jr $ra' instruction do? -
correct answer ✅Branches to the first statement after the
procedure call