• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 13 pages
Exam (elaborations)

CSE230 Exam 2025 Questions and Answers

Document preview thumbnail
Preview 2 out of 13 pages

CSE230 Exam 2025 Questions and Answers

Content preview

CSE230 Exam 2025 Questions and
Answers


After having run both of the following instructions, what value will be in register

t8?

li $t8, 2

li $t8, 4 - ANSWER-4

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

sw $t0, 0($t1) - 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? - ANSWER-t2 will contain 2 and t3 will contain

1

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

j label

Which of the following instructions will read a value from memory and copy it into

a register? - ANSWER-lw - The load immediate (li) instruction loads a value given


COPYRIGHT ©️ 2025 ALL RIGHTS RESERVED...TRUSTED & VERIFIED 1

, 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?

- 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? - ANSWER-Memory address: 0xf0100000

If switch 2 and switch 3 are both set, what value will be read from the switches? -

ANSWER-12 (2^2 + 2^3)

Which types of instructions have branch delay slots? - 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? - ANSWER-0xff

Which value, when written to the memory address of the LED array, will turn on

LEDs 0, 2, and 4? - ANSWER-0b10101



COPYRIGHT ©️ 2025 ALL RIGHTS RESERVED...TRUSTED & VERIFIED 2

Document information

Uploaded on
August 17, 2025
Number of pages
13
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
KatelynWhitman
3.6
(260)
Sold
1255
Followers
485
Items
43943
Last sold
14 hours ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions