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


QUIZ on Chapter 9

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 character, in SPIM assembly language, starts a comment?

A.   #
B.   %
C.   $
D.   //

2.   How many bits are there in each MIPS machine instruction?

A.   8
B.   16
C.   24
D.   32

3.   When you open a source file from the File menu of SPIM, what two things happen?

A.   The file is loaded into memory and execution starts.
B.   SPIM is booted and the file is opened in the editor.
C.   The file is assembled into machine instructions, and the machine instructions are loaded into SPIM's memory.
D.   The program is run and the results are saved to disk.

4.   What is a directive, such as the directive .text?

A.   an assembly language statement that results in one machine language instruction.
B.   one of the menu choices in the SPIM menu system.
C.   a machine language instruction that causes an operation on data.
D.   a statement that tells the assembler something about what the programmer wants, but does not itself directly correspond to a machine instruction.

5.   What is a symbolic address?

A.   a location in memory containing symbolic data.
B.   a byte in memory that holds the address of data.
C.   the symbol given as the argument for a directive.
D.   a name used in assembly language source code for a location in memory.

6.   At what address does the SPIM simulator put the first machine instruction when it is running with the Bare Machine option turned ON?

A.   0x00000000
B.   0x00400000
C.   0x10000000
D.   0xFFFFFFFF

7.   How many general purpose registers does MIPS have?

A.   2
B.   4
C.   16
D.   32

8.   What is a general purpose register?

A.   any register that is displayed in the SPIM register display section.
B.   a register that is directly available to assembly language statements.
C.   a register used for both floating point and integer arithmetic.
D.   any 32 bit register

9.   A MIPS address consists of how many bits?

A.   1
B.   2
C.   4
D.   32

10.   What algorithm does MIPS use for 32-bit addition?

A.   the Binary Addition Algorithm
B.   the two's complement addition algorithm
C.   the unsigned addition algorithm
D.   a proprietary addition algorithm


Click here