In MIPS, which of the following is used when calling a function?
COMP1521 Revision Quiz

Quiz
•
Computers
•
University
•
Medium
Terence Tao
Used 49+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
jal
sb
add
li
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In MIPS, how are arguments by convention passed to a function?
They are stored in the stack
They are stored in registers $a0
–$a3
They are stored in the data segment
They are stored in registers $t0
–$t3
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In MIPS, which register is by convention used to store the return value of a function?
$v0
$a0
$t0
$s0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
By convention, what is the primary difference between the $t
registers and $s
registers in MIPS?
$t
: used for arithmetic operations
$s
: used for logical operations
$t
: stores function arguments$s
: stores temporary values
$t
: may not be preserved across function calls
$s
: preserved across function calls
$t
: used for data transfers
$s
: used for arithmetic and logical operations
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
In MIPS, how do you access the second element of a 32-bit integer array stored in memory?
(The memory address of the array is stored in $s0
.)
lw $t0, 2($s0)
la $t0, 4($s0)
lw $t0, 4($s0)
lb $t0, 8($s0)
6.
MULTIPLE CHOICE QUESTION
45 sec • 3 pts
In MIPS, how would the wam
field be accessed?
(The memory address of the struct is stored in $s0
.)
lw $t0, 18($s0)
lw $t0, 20($s0)
lw $t0, 19($s0)
lw $t0, 16($s0)
7.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
In MIPS, which registers are used to store the result of mult
?
$hi
$mul
$v0
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
Computer Basics

Quiz
•
University
25 questions
Computer Literacy Quiz

Quiz
•
University
30 questions
Elements of Art and Principles of Design - Quiz 1

Quiz
•
10th Grade - Professi...
25 questions
Профессиональная иностранная терминология_7

Quiz
•
University
30 questions
Binary Number System

Quiz
•
6th Grade - University
25 questions
QUIZ 4

Quiz
•
University
25 questions
Operating Systems Quiz

Quiz
•
9th Grade - University
25 questions
PHP dan MySQL

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade