COMP1521 Revision Quiz

COMP1521 Revision Quiz

University

30 Qs

quiz-placeholder

Similar activities

CHFI Module 3 Review

CHFI Module 3 Review

University

25 Qs

Parts of a Computer #2 - Cables and Ports

Parts of a Computer #2 - Cables and Ports

6th Grade - Professional Development

25 Qs

ITS301-Unit1 OHS Trial Test 2

ITS301-Unit1 OHS Trial Test 2

University

25 Qs

Computer Software Quiz

Computer Software Quiz

University

25 Qs

Unit 1: Post Test: Fundamentals of Computer Systems

Unit 1: Post Test: Fundamentals of Computer Systems

10th Grade - University

25 Qs

Compro. Final 1/64 part1

Compro. Final 1/64 part1

University

25 Qs

TM103 - Ch.1 Quiz

TM103 - Ch.1 Quiz

University

25 Qs

gamez tik7

gamez tik7

12th Grade - University

25 Qs

COMP1521 Revision Quiz

COMP1521 Revision Quiz

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Terence Tao

Used 52+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

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

Media Image

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

$lo

$v0

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?