• Verkeerd document? Gratis ruilen
  • Geschreven door studenten die geslaagd zijn
  • Direct beschikbaar na je betaling
  • Online lezen of als PDF
Verkopen
Kies je studieland
Kies je taal
Document preview thumbnail
Voorbeeld 2 van de 10 pagina's
Tentamen (uitwerkingen)

CSE230 Question and answers rated A+ 2025/2026

Document preview thumbnail
Voorbeeld 2 van de 10 pagina's

CSE230 Question and answers rated A+ 2025/2026 After having run both of the following instructions, what value will be in register t8? li $t8, 2 li $t8, 4 - correct answer 4 If register t0 contains 0 and t1 contains 4, what will the following instruction do? sw $t0, 0($t1) - correct answer Copy the contents of register t0 into the memory address, 4 If register t2 contains 1 and register t3 contains 1, what value will they contain after running the following instruction? - correct answer t2 will contain 2 and t3 will contain 1 Which of the follow

Voorbeeld van de inhoud

CSE230 Question and answers rated A+
2025/2026
After having run both of the following instructions, what value will be in register t8?

li $t8, 2

li $t8, 4 - correct answer 4



If register t0 contains 0 and t1 contains 4, what will the following instruction do?

sw $t0, 0($t1) - correct answer Copy the contents of register t0 into the memory address, 4



If register t2 contains 1 and register t3 contains 1, what value will they contain after running the
following instruction? - correct answer t2 will contain 2 and t3 will contain 1



Which of the following code snippets results in a loop? - correct answer label:

j label



Which of the following instructions will read a value from memory and copy it into a register? - correct
answer lw - The load immediate (li) instruction loads a value given in the instruction (i.e. an immediate
value) directly into a register and does not interact with memory. The store word (sw) instruction
performs a write to memory rather than a read. Both the add immediate (addiu) and shift left logical (sll)
instructions only interact with registers and do not read from or write to memory.



Which of the following instructions will write a value from a register into memory? - correct answer sw -
The load immediate (li) instruction loads a value given in the instruction (i.e. an immediate value)
directly into a register and does not interact with memory. The store word (sw) instruction performs a
write to memory rather than a read. Both the add immediate (addiu) and shift left logical (sll)
instructions only interact with registers and do not read from or write to memory.



At any given time while a program is running, where is the current value of the switches located? -
correct answer Memory address: 0xf0100000

, If switch 2 and switch 3 are both set, what value will be read from the switches? - correct answer 12
(2^2 + 2^3)



Which types of instructions have branch delay slots? - correct answer Jump and branch instructions



What is the smallest value that can be written to the address of the LED array in order to turn on all 8
LEDs? - correct answer 0xff



Which value, when written to the memory address of the LED array, will turn on LEDs 0, 2, and 4? -
correct answer 0b10101



Assume that register $t2 contains 0xf0100000. Which instruction will copy the current value of the
switches into register $s1? - correct answer lw $s1, 0($t2)

The first argument in the load word instruction is the destination register, which is where the value
copied from memory will be placed.



Assume that register $s3 contains 0xf0200000 and register $t4 contains 0b101. Which instruction will
turn on LEDs 2 and 0? - correct answer sw $t4, 0($s3)

The first argument in the store word instruction is the source register, which is where the value being
copied to memory will come from.



The following branch will never be taken:

bne $t0, $t0, label - correct answer True



If registers $t1, $t2, and $t3 all contain 2, what value will each of them contain after running the
following instruction?

addu $t1, $t2, $t3 - correct answer $t1 - 4

$t2 - 2

Documentinformatie

Geüpload op
18 oktober 2025
Aantal pagina's
10
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden
$16.49

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
flyhigher329
3.7
(61)
Verkocht
386
Volgers
175
Items
18474
Laatst verkocht
3 weken geleden




Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen