Boolean Algebra & Logic Gates
Level: 2 (Recall / Standard textbook problems) Time Limit: 30 minutes Total Marks: 40
Q1. Convert the following. (4 marks) (a) Binary to decimal. (b) Decimal to hexadecimal.
Q2. Find the 8-bit two's complement representation of . Show your working. (4 marks)
Q3. State De Morgan's two theorems in Boolean form. (4 marks)
Q4. Construct the truth table for the function . What single common gate does this represent? (4 marks)
Q5. Complete the outputs of the following 2-input gates for inputs : (4 marks) (a) NAND (b) NOR (c) XOR (d) XNOR
Q6. Using Boolean algebra laws, simplify the expression: (5 marks) Name one law used at each simplification step.
Q7. Convert (octal) to binary, and then group the binary into hexadecimal. (4 marks)
Q8. A logic function of three variables is only for minterms . (5 marks) (a) Write the SOP (sum of minterms) expression in terms of . (b) Simplify using a Karnaugh map to its minimal form.
Q9. Show that a NAND gate is universal by implementing the NOT and AND functions using only NAND gates. Draw/describe the connections. (4 marks)
Q10. Two logic gates are cascaded. Gate 1 has a propagation delay of and Gate 2 has . What is the total worst-case propagation delay of the cascade? (2 marks)
End of Paper
Answer keyMark scheme & solutions
Q1. (4 marks) (a) . Bits: . (2 marks) (b) : . So ? Check: , , , so . (2 marks) Why: rem → high digit E, low digit D.
Q2. (4 marks) (1 mark). Invert bits → (1 mark). Add 1 → (2 marks). Why: two's complement = invert then +1 of the magnitude.
Q3. (4 marks) (2 marks). (2 marks). Why: complement of a product is the sum of complements, and vice versa.
Q4. (4 marks)
| A | B | F | ||
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 0 |
(3 marks for correct table). This is the XOR gate (1 mark).
Q5. (4 marks, 1 each) For : (a) NAND (b) NOR (c) XOR (d) XNOR
Q6. (5 marks) — distributive (1) — complement law (1) — identity (1) — absorption/redundancy (2) Final: .
Q7. (4 marks) Each octal digit → 3 bits: , , , . Binary (2 marks). Group in 4s from right: (2 marks).
Q8. (5 marks) (a) Minterms correspond to (odd minterms). (2 marks). (b) K-map: all four cells where are 1 → the entire column/rows. (3 marks). Why: every minterm has regardless of , so .
Q9. (4 marks) NOT: tie both inputs of a NAND together: (2 marks). AND: first NAND gives ; feed that through a NAND-as-inverter: (2 marks). Why: NAND can produce NOT and (NAND+NOT) = AND, showing functional completeness.
Q10. (2 marks) Total delay (delays add in a cascade).
[
{"claim":"Binary 10110110 = 182 decimal","code":"result = (int('10110110',2)==182)"},
{"claim":"237 decimal = ED hex","code":"result = (format(237,'X')=='ED')"},
{"claim":"-45 in 8-bit two's complement = 11010011","code":"result = (format((-45)%256,'08b')=='11010011')"},
{"claim":"Octal 6270 = binary 110010111000 = hex CB8","code":"v=int('6270',8); result = (bin(v)[2:]=='110010111000' and format(v,'X')=='CB8')"},
{"claim":"Cascade delay 8ns + 5ns = 13ns","code":"result = (8+5==13)"}
]