1|Page : 2024 | Grade A+
CDA Final Exam Study Guide
Questions and Correct Answers
Latest Update, Graded A+
MIPSzy Data Memory begins at address _____.
a.) 0
b.) $zero
c.) 1024
d.) 4096
o :## 4096
In MIPSzy, the addressability is _____.
a.) 2^32 words
b.) 32 bits
c.) 8 bits
d.) 4096 bits
o :## 32 bits
A comment in MIPSzy begins with
Master01: DO NOT COPY AND PASTE!! August 22, 2024 Latest Update
,2|Page : 2024 | Grade A+
a.) !
b.) //
c.) #
d.) /*
o :## #
MIPSzy's Register file has _____ registers.
a.) 16
b.) 7
c.) 32
d.) 8
o :## 8
but actual MIPS has up to 32
True or False: $t0 is a read-only register.
o :## False
What is in $t1 after the execution of the following MIPSzy program?
Master01: DO NOT COPY AND PASTE!! August 22, 2024 Latest Update
,3|Page : 2024 | Grade A+
addi $t1, $zero, 1
addi $t2, $t1, 1
bne $t1, $t2, end
add $t1, $t2, $t1
end: addi $t1, $t1, 1
a.) 2
b.) 0
c.) 1
4.) 4
o :## 2
Which instructions compute $t2 = $t1 + $t1 + 5?
a.)
addi $t2, $t1, 5
addi $t2, $t2, $t2
b.)
Master01: DO NOT COPY AND PASTE!! August 22, 2024 Latest Update
, 4|Page : 2024 | Grade A+
addi $t2, $t1, 5
add $t2, $t2, $t1
c.)
addi $t1, $t1, 5
add $t2, $t1, $t1
d.)
add $t1, $t1, $t1
add $t2, $t2, 5
o :## b
Which instructions compute: $t3 = ($t2-$t1)*$t2
a.)
sub $t1, $zero, $t1
add $t1, $t1, $t2
mul $t3, $t1, $t2
b.)
Master01: DO NOT COPY AND PASTE!! August 22, 2024 Latest Update