CDA Final Exam Study Guide |LATEST VERSION |NEW UPDATE |GUARANTEED PASS| |BEST STUDYING MATERIAL WITH 150+ QUESTIONS
4 views 0 purchase
Course
CDA
Institution
CDA
Assume $t1 holds 5100. Which instruction copies the contents of data memory 5100 (DM[5100]) into $t0?
a.) sw $t1, 0($t0)
b.) addi $t0, $t1, 5100
c.) lw $t0, 0($t1)
d.) lw $1, 0($t0) - ANSWER c
Assume:
$t0: 8
$t1: 10
What is in $t2 after the instruction
slt $t2, $t0, $t1
a.) 8
b.) 10
c.)...
CDA Final Exam Study Guide |LATEST
VERSION |NEW UPDATE |GUARANTEED
PASS|2024-2025 |BEST STUDYING
MATERIAL WITH 150+ QUESTIONS
Assume $t1 holds 5100. Which instruction copies the contents of data memory 5100
(DM[5100]) into $t0?
a.) sw $t1, 0($t0)
b.) addi $t0, $t1, 5100
c.) lw $t0, 0($t1)
d.) lw $1, 0($t0)
- ANSWER c
Assume:
$t0: 8
$t1: 10
What is in $t2 after the instruction
slt $t2, $t0, $t1
a.) 8
b.) 10
c.) 0
d.) 1
,- ANSWER 1
Assume $t1 holds 5100. Which instruction copies the contents of $t0 into memory location
5100 (DM[5100])?
a.) lw $t1, 0($t0)
b.) sw $t0, 0($t1)
c.) addi $t1, $t0, 5000
d.) lw $t0, 0($t1)
- ANSWER b
Which of the following MIPSzy instructions is a data transfer instruction?
a.) slt $t2, $t1, $t3
b.) lw $t1, 0($t1)
c.) addi $t1, $t2, 1
d.) beq $t1, $t2, target
- ANSWER b
True or False: A subroutine should push all the registers it uses onto the program stack at the
beginning of the subroutine.
- ANSWER True
A subroutine is returned using the instruction _____?
a.) return
b.) end
c.) j $ra
,d.) jr $ra
- ANSWER jr $ra
Which register holds the top of the program stack?
a.) $sp
b.) $t1,
c.) $t0
d.) $ra
- ANSWER $sp
A subroutine is called using the instruction:
a.) call
b.) jal
c.) sub
d.) j
- ANSWER jal
Which register holds the subroutine return address?
a.) $ra
b.) $t0
c.) $sp
d.) $t3
- ANSWER $ra
, Assume that a subroutine, sub, is loaded beginning at address 1000. A program calls sub with
the instruction: jal sub. If jal sub is at address 2000, what is in $ra after jal sub executes?
a.) 2000
b.) 1000
c.) 2004
d.) 1004
- ANSWER c
What address the assembler will use for the label "equal" when it translates the program given
below to machine instructions?
Assume that the program is loaded in the instruction memory beginning at address 200.
a.) 216
b.) 203
c.) 200
d.) 212
- ANSWER 212
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller lisarhodes411. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $14.49. You're not tied to anything after your purchase.