Computer Organisation COSC 2400
Computer Organisation COSC 2400
Computer Organisation
COSC 2400
Date:
Time:
Student ID:
________________________________________________
Student Name:
________________________________________________
Written by:
Approved by:
Section A
Please read through the questions below, and circle the correct answer.
There is only one correct answer. Each question is worth 1 mark.
Semester 1 2010
Computer Organisation – COSC 2400
Practice Examination Paper 2010
6) How many address bits are required for a 4096-bit memory organized as a
512 X 8 memory?
a) 512
b) 8
c) 9
d) 4096
7) Signals A and B are inputs to a gate. The output of the gate is signal C.
Which type of gate is it?
A. AND
B. OR
C. NAND
D. NOR
8) The binary numbers A=1010 and B=1011 are applied to the inputs of a
comparator. The outputs are:
A. A>B=1, A<B=0, A=B=0
B. A>B=0, A<B=1, A=B=1
C. A>B=0, A<B=0, A=B=1
D. A>B=0, A<B=1, A=B=0
10)The inputs to a full-adder are A=1, B=1 and Cin=1. The outputs are
A. ∑=0, Cout=0
B. ∑=0, Cout=1
C. ∑=1, Cout=0
D. ∑=1, Cout=1
Semester 1 2010
Computer Organisation – COSC 2400
Practice Examination Paper 2010
a) F=A
b) F = A’
c) F = A+B’
d) F = A’+B’
13) A gate that could be used to compare two logic levels and provide a HIGH
output if they are equal in a(n)
a) XOR gate
b) XNOR gate
c) NAND gate
d) NOR gate
14) Which of the following rules states that if one input of an AND gate is always
1, the output is equal to the other input?
A. A+1=1
B. A+A=A
C. A*A=A
D. A*1=A
19)Derive the Boolean expression for the logic circuit shown below:
A. CA+CB+CD
B. C(A+B)D’
C. C(A+B)+D
D. CA+CD+B
Semester 1 2010
Computer Organisation – COSC 2400
Practice Examination Paper 2010
Questions 21 to 25
21)
_____________________________________________________
_____________________________________________________
move.b #$1A1, d0
_____________________________________________________
_____________________________________________________
_______________________________________________________
mulu.w d3,d4
_______________________________________________________
Semester 1 2010
Computer Organisation – COSC 2400
Practice Examination Paper 2010
JMP THE_END
TOP_LOOP:
MULU.W D2,D3
LOOP_TEST:
CMP #2, D3
THE_END:
MOVE.B #9,D0
TRAP #15
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
MOVE.B #0, D1
CMP D2, D1
BNE THE_END
MOVE.B #1, D1
MOVE.B #0, D2
ADD.B #1, D2
ADD.B D1, D2
Semester 1 2010
Computer Organisation – COSC 2400
Practice Examination Paper 2010
THE_END:
MOVE.B #9,D0
TRAP #15
D2 _________________________
(2+2+2+2+2=10 marks)
22)
a) For the NOR gate determine the output waveform in relation to the
inputs.
Semester 1 2010
Computer Organisation – COSC 2400
Practice Examination Paper 2010
(1+1=2 marks)
[A’B’(C+BD)+A’B’]C’
[(A+B’)’+(C’+D)]’
Semester 1 2010
Computer Organisation – COSC 2400
Practice Examination Paper 2010
(2+2=4 marks)
25)
a) For the parallel adder determine the complete sum by analysis of the logical
operation of the circuit. Verify your result by longhand addition of the two input
numbers.
b) What is the difference between a half adder and a full adder? Draw a diagram
for each.
Semester 1 2010
Computer Organisation – COSC 2400
Practice Examination Paper 2010
(2+2 = 4 marks)
Law
Name Form
Num
L1 A A = A
Idempotent Laws
L2 A+A=A
Involution Law L3 (A’)’ = A
L4 A A’ = 0
Complement Laws
L5 A + A’ = 1
L6 A0=0
L7 A1=A
Identity Laws
L8 A+0=A
L9 A+1=1
L10 A+AB=A
Absorption Laws
L11 A + A’ B = A + B
L12 AB=BA
Commutative Laws
L13 A+B=B+A
L14 (A B) C = A (B C) = A B C
Associative Laws
L15 A+(B+C)=A+(B+C)=A+B+C
L16 A(B + C) = A B + A C
Distributive Laws
L17 A + B C = (A + B)(A +C)
DeMorgan’s Theorems
(X Y)’ = X’ + Y’
(X + Y)’ = X’ Y’
Semester 1 2010