Created 06/19/03; edited: 02/17/08, 02/27/11


QUIZ on Chapter 15

Instructions: For each question, choose the single best answer. Make your choice by clicking on its button. You can change your answers at any time. When the quiz is graded, the correct answers will appear with each question.



1.   What operation copies data from main memory into a general purpose register?

A.   load
B.   store
C.   add
D.   move

2.   What operation copies data to main memory from a general purpose register?

A.   load
B.   store
C.   add
D.   move

3.   Does a load operation alter main memory?

A.   no
B.   yes
C.   sometimes
D.   only if register zero is used

4.   Does a store operation alter the register?

A.   no
B.   yes
C.   sometimes
D.   only if register zero is used

5.   Which one of the following addresses is word aligned?

A.   0x00432157
B.   0x0000703
C.   0x01777774
D.   0x00002032

6.   Which one of the following addresses is word aligned?

A.   0x10000000
B.   0x00010703
C.   0x01374008
D.   0x00024033

7.   Here is a 32-bit pattern:

0x00224477

This pattern is to be stored in main memory using bytes at addresses 0x10000000, 0x10000001, 0x10000002, and 0x10000003. On a little endian processor, what bit pattern is contained in address 0x10000002?

A.   0x00
B.   0x22
C.   0x44
D.   0x77

8.   Here is a 32-bit pattern:

0x0A0B0C0D

This pattern is to be stored in main memory using bytes at addresses 0x10000004, 0x10000005, 0x10000006, and 0x10000007. On a LITTLE endian processor, what bit pattern is contained in address 0x10000004?

A.   0x0A
B.   0x0B
C.   0x0C
D.   0x0D

9.   A lw is to load register $7 from location 0x10000000 in memory. Register $10 contains 0x10000008. Write the assembly language instruction:

A.   lw $7,0x08($10)
B.   lw $7,-4($10)
C.   lw $7,-8($10)
D.   lw $7,$10-(8)

10.   Say that somehow register $10 has been loaded with the address 0x10000000. Write the instruction that alters $10 so that it contains 0x100000F0.

A.   ori $10, $0, 0x00F0
B.   or $10, $10, 0x00F0
C.   ori $10, $10, 0x00F0
D.   andi $10, $10, 0x00F0


Click here