Blog
DLD BSIT BSCS 2nd Mid Past Paper – UOS Main Campus
University of Sargodha main campus (Department of Computer Science & IT) DLD mid-term paper for BSIT/CS 2nd semester (Regular), 60 minutes. Only Questions 5 and 6 were readable in the available copy. Retyped from the original paper, with solved answers below.
Solved answers
Q5 (a) – 225.325 to base 3 (4)
Integer part (repeated division by 3): 225 ÷ 3 = 75 r 0; 75 ÷ 3 = 25 r 0; 25 ÷ 3 = 8 r 1; 8 ÷ 3 = 2 r 2; 2 ÷ 3 = 0 r 2 → read upwards: 22100₃. Check: 2·81 + 2·27 + 1·9 = 225 ✓.
Fraction (repeated multiplication by 3): 0.325 × 3 = 0.975 → 0; 0.975 × 3 = 2.925 → 2; 0.925 × 3 = 2.775 → 2; 0.775 × 3 = 2.325 → 2; then 0.325 repeats.
225.325 = 22100.0222 0222…₃ (the block 0222 repeats).
Q5 (b) – 94 + 58 in octal (4)
94 = 1·64 + 3·8 + 6 = 136₈; 58 = 7·8 + 2 = 72₈.
Octal addition: 6 + 2 = 8 = 10₈ → write 0, carry 1; 3 + 7 + 1 = 11 = 13₈ → write 3, carry 1; 1 + 1 = 2. Sum = 230₈.
Back to decimal: 2·64 + 3·8 + 0 = 152 = 94 + 58 ✓.
Q6 (a) – Complement and reduce (6)
F = B’D + A’BC’ + ACD + A’BC → minterms Σ(1, 3, 4, 5, 6, 7, 9, 11, 15).
Complement by De Morgan (original form): F’ = (B + D’)(A + B’ + C)(A’ + C’ + D’)(A + B’ + C’).
Reduced complement (K-map of the remaining minterms 0, 2, 8, 10, 12, 13, 14): F’ = B’D’ + AD’ + ABC’ (8 literals).
The original function itself also reduces to F = A’B + B’D + CD. Implement F with three AND gates and one OR gate, and F’ the same way; the reduced forms need far fewer gates than the original.
Q6 (b)
The circuit for this part was not visible in the available copy, so it cannot be solved here.
