Quiz 6.6

DIRECTIONS: Read each question carefully. Then click on the dot next to the answer that most closely fits the question. Try to answer all questions on this quiz and when you are done, click on the grade me button at the bottom.


Coverage: Sections 6.5 and 6.6

  1. What is the following sum?
        0 1 1 0 1 1
      + 0 0 1 0 1 0
      -------------
1 0 1 0 0 1
0 1 1 0 0 0
1 0 0 1 0 1

  1. What is the following sum, assuming these are unsigned binary numbers?
        1 1 1 0
      + 1 1 1 1
      ---------
1 0 0 0 1
1 1 0 1
1 1 1 0 1

  1. Now assuming these are 4-bit 2's complement binary numbers, what is the following sum?
        1 1 1 0
      + 1 1 1 1
      ---------
1 0 0 0 0 1
1 1 0 1
1 1 1 0 1

  1. Was there overflow in problem 3, assuming these were unsigned numbers?
yes
no

  1. Was there overflow in problem 3, assuming these were 2's complement numbers?
yes
no

  1. Which of these bits says that the bit pattern is all 0s?
C
N
V
Z

  1. What does the V stand for in the CNVZ condition bits?
overflow
valid
or
verified

  1. Which bit will be 1 if the value in question is 10000000?
C
N
V
Z

  1. When does the V bit get turned on?
when there is a carry-out from the last addition
when there is overflow if the numbers are interpreted as 2's complement
when there is overflow if the numbers are interpreted as unsigned
when the first and last bits are both 1

  1. The following picture shows how the condition code bits are calculated. Which labeled is right? (Fill the empty boxes from left to right.)

GIFs/cnvz_calc.gif
N C V Z
V C N Z
C V N Z