Blog
DLD CMP-2210 BSSE BSCS 2nd Mid Past Paper 2015 – UOS Main Campus
University of Sargodha main campus (Department of CS & IT) Digital Logic Design (CMP-2210) mid test for BSSE and BSCS 2nd semester, session 2014-2018, held on 28 April 2015 (20 marks, 1 hour). Retyped from the original paper, with solved answers below.
Solved answers
1) 01101010 × 11110001 in 2’s complement
01101010 = +106. 11110001 is negative: its 2’s complement is 00001111 = 15, so it is −15. Product = 106 × (−15) = −1590. 1590 = 0000 0110 0011 0110₂; invert and add 1 → 1111 1001 1100 1010 (16-bit 2’s complement result).
2) Negative-OR = NAND
A negative-OR gate inverts the inputs and then ORs them: X = A’ + B’. By De Morgan’s theorem, A’ + B’ = (AB)’, which is the NAND output. Truth table: A B = 00 → 1, 01 → 1, 10 → 1, 11 → 0 for both gates, so they are equivalent.
3) (FF)₁₆ + (BB)₁₆
F + B = 15 + 11 = 26 = 16 + 10 → write A, carry 1. F + B + 1 = 27 = 16 + 11 → write B, carry 1. Result = (1BA)₁₆ = 442 in decimal (255 + 187 = 442 ✓).
4) 11101000 in 1’s complement
The sign bit is 1, so the number is negative. Invert all bits: 00010111 = 23. Value = −23.
5) Simplify A’BC + AB’C’ + A’B’C’ + AB’C + ABC
Minterms: A’B’C’ (0), A’BC (3), AB’C’ (4), AB’C (5), ABC (7). Grouping on a K-map: (0, 4) → B’C’; (3, 7) → BC; (4, 5) → AB’.
F = B’C’ + BC + AB’ (an equally minimal answer is B’C’ + BC + AC). Algebraically: A’B’C’ + AB’C’ = B’C’; A’BC + ABC = BC; AB’C’ + AB’C = AB’.
