100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CSE 230 UPDATED Exam Questions and CORRECT Answers

Rating
-
Sold
-
Pages
10
Grade
A+
Uploaded on
19-08-2025
Written in
2025/2026

CSE 230 UPDATED Exam Questions and CORRECT Answers 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

Show more Read less
Institution
CSE
Course
CSE









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CSE
Course
CSE

Document information

Uploaded on
August 19, 2025
Number of pages
10
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CSE 230 UPDATED Exam Questions and
CORRECT Answers
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

Get to know the seller

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.
MGRADES Stanford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1078
Member since
1 year
Number of followers
102
Documents
68972
Last sold
23 hours ago
MGRADES (Stanford Top Brains)

Welcome to MGRADES Exams, practices and Study materials Just think of me as the plug you will refer to your friends Me and my team will always make sure you get the best value from the exams markets. I offer the best study and exam materials for a wide range of courses and units. Make your study sessions more efficient and effective. Dive in and discover all you need to excel in your academic journey!

3.8

171 reviews

5
73
4
30
3
46
2
8
1
14

Recently viewed by you

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

Frequently asked questions