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


QUIZ on Chapter 11

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 is it called when a logical operation is performed between the bits of each column of the operands to produce a result bit for each column?

A.   logic operation
B.   column operation
C.   bitwise operation
D.   immediate operation

2.   When an operation is actually performed, what is true of the operands in the ALU?

A.   At least one operand must be 32 bits wide.
B.   Each operand can be any size.
C.   Each operand can be any size up to 64 bits.
D.   Each operand must be 32 bits wide.

3.   What is it called with a bit pattern is copied into a register?

A.   The register is loaded with the pattern.
B.   The register is stuffed with the pattern.
C.   The register is stored with the pattern.
D.   The register is cached with the pattern.

4.   Which of the following instructions sets all the bits in the low order byte of register $8 and leaves all other bits unchanged?

A.   ori $8,$8,0xFF
B.   ori $8,$0,0x00FF
C.   xori $8,$8,0xFF
D.   andi $8,$8,0xFF

5.   Which of the following instructions sets bit 0 of register $8 and clears all other bits?

A.   ori $8,$8,0x1
B.   ori $8,$0,0x0001
C.   andi $8,$0,0x01
D.   andi $8,$8,0xFF

6.   What is the result of performing an exclusive or of a bit pattern with itself?

A.   The result is the same as the original.
B.   The result is the reverse of the original.
C.   The result is all zero bits.
D.   The result is all one bits.

7.   Do all machine instructions follow the same format?

A.   No. There are several basic formats for machine instructions.
B.   No. The format for each opcode is completely different than for any other opcode.
C.   Yes. The only difference between machine instructions is the opcode.
D.   Yes. The 32 bits are divided into 4 equal parts.

8.   When a machine instruction has an immediate operand, how many bits does that operand have?

A.   8
B.   16
C.   depends on the opcode
D.   as many bits as needed for the data

9.   Perform an AND operation between these two operands:

0110
1100

A.   1111
B.   0101
C.   0110
D.   0100

10.   Perform an XOR operation between these two operands:

0110
1100

A.   1110
B.   1101
C.   1010
D.   0100


Click here