265 Midterm 01 Winter 2010 Answers
265 Midterm 01 Winter 2010 Answers
Midterm Examination # 1
Wednesday, February 10, 2010
SAMPLE ANSWERS
Question 1. [ 6 marks ]
Using Boolean algebra, prove the following theorems. For each step in the proofs state
the specific axiom that is used. Each part is worth 3 marks. [NOTE: The full list of all
axioms is provided for each student on the last page of this examination.]
(a) X+X = X
Proof:
= (X+X)(X+X’) Complementation
= X+(XX’) Distributivity
= X+0 Complementation
= X Identity
(b) X’ + XY = X’ + Y
Proof:
= 1.(X’ + Y) Complementation
= X’ + Y Identity
Page 3 of 9
Question 2. [ 13 marks ]
Answer each question below.
C. Convert the positive decimal real number 1.1 to an unsigned binary number. [ 2
marks ]
1 / 2 = 0 rem 1 1
D. Convert the positive decimal real number 4.375 to an unsigned binary number. [ 2
marks ]
4 / 2 = 2 rem 0
2 / 2 = 1 rem 0
1 / 2 = 0 rem 1 100
E. State the exact values of the largest positive value and the smallest negative value
that can be defined in an L-bit representation using signed-binary (ie. 2’s
complement) notation. [ 2 marks ]
F. State the exact number of different (ie. unique) bit arrangements that can be
represented in an L-bit representation. [ 1 mark ]
G. State the 16-bit BCD representation of the number 691810 in binary form (ie. as 16
bits). [ 1 mark ]
Question 3. [ 9 marks ]
Part A. State the six (6) fundamental logic gates (excluding the inverter) and, for each
gate, provide a complete truth table that fully defines the logic of each gate. Each
correctly identified gate and truth table is worth 1 mark. [6 marks]
AND OR
X/Y 0 1 X/Y 0 1
0 0 0 0 0 1
1 0 1 1 1 1
NAND NOR
X/Y 0 1 X/Y 0 1
0 1 1 0 1 0
1 1 0 1 0 0
XOR XNOR
X/Y 0 1 X/Y 0 1
0 0 1 0 1 0
1 1 0 1 0 1
Part B. State the five (5) principal components of the von Neuman architecture for a
stored program digital computer. [ 3 marks ]
Question 4. [ 8 marks ]
Answer all parts of this question. In each part you may use only Boolean algebra and
fundamental postulates – truth tables are not permitted.
Part A. Simplify the following Boolean expression using Boolean algebra (no truth
tables or Karnaugh maps). Express your answer in both SOP and POS forms. [3 marks]
ANSWER:
A’BC + ABC’ + ABC = (A’+A)BC + AB(C’+C)
= BC + AB
Part B. Simplify the following Boolean expression using Boolean algebra. [2 marks]
ANSWER:
(BC’ + A’D)(AB’ + CD’)
= 0 + 0 + 0 + 0
= 0 Final Answer
Part C. Using De Morgan’s theorem and Boolean algebra, show that: [3 marks]
(AB)’+(A’B’)’ = 1
ANSWER:
(AB)’+(A’B’)’
Question 5. [ 6 marks ]
Part A. [ 3 marks ]
Simplify the following Boolean SOP expression using the Karnaugh map technique.
Express your answer in SOP form.
F(X,Y,Z) = ∑ m(0,2,5,6)
ANSWER:
Kmap YZ/00 01 11 10
X/0 1 0 0 1
1 0 1 0 1
Part B. [ 3 marks ]
Simplify the following Boolean SOP expression, with don’t care conditions, using the
Karnaugh map technique. Express your answer in SOP form.
F(W,X,Y,Z) = ∑ m(0,2,5,6,8,12)
dc(W,X,Y,Z) = ∑ m(1,4,10,15)
Kmap YZ/00 01 11 10
WX/00 1 D 0 1
01 D 1 0 1
11 1 0 D 0
10 1 0 0 D
This page contains information provided freely for each student to use for the
examination, if required. You may detach this page.
Boolean Postulates: