Chapter at a glance
This chapter covers the fundamental concepts of number systems, including their conversion between binary, octal, decimal, and hexadecimal. It also delves into Boolean algebra, logic gates, and their operations, providing a comprehensive understanding of digital logic.
- Positional Number Systems
- Base Conversions (Binary, Octal, Decimal, Hexadecimal)
- Binary Arithmetic (Addition, Subtraction)
- Complement Methods (1's and 2's Complement)
- Boolean Algebra
- Logic Gates (AND, OR, NOT, NAND, NOR, XOR, XNOR)
- De Morgan's Theorems
- Boolean Function and Truth Tables
Exam focus: Students should focus on understanding number system conversions, performing binary arithmetic, and applying Boolean algebra principles to logic gates and their operations, including De Morgan's theorems.
Key formulas and definitions
- Base-n to Decimal: Sum of (digit × base^position)
- Decimal to Base-n: Repeated division/multiplication
- Binary to Octal: Group bits in threes
- Binary to Hexadecimal: Group bits in fours
- Boolean Algebra Laws (Commutative, Distributive, Duality, De Morgan's)
On this page (33 sections)
- Number Systems & Boolean Algebra
- Q1. What is a number system? Why is the binary number system used in digital computers?
- Q2. Explain shortly about the four number systems.
- Q3. Convert binary numbers to decimal
- Q4. Convert decimal numbers to binary
- Q5. Convert octal numbers to decimal
- Q6. Convert decimal numbers to octal
- Q7. Convert hexadecimal numbers to decimal
- Q8. Convert decimal numbers to hexadecimal
- Q9. Convert binary numbers to octal
- Q10. Convert octal numbers to binary
- Q11. Convert binary numbers to hexadecimal
- Q12. Convert hexadecimal numbers to binary
- Q13. Convert as indicated (mixed conversions)
- Q14. Perform binary addition
- Q15. Perform binary subtraction
- Q16. Decimal subtraction using 9's complement method
- Q17. Decimal subtraction using 10's complement method
- Q18. Binary subtraction using 1's complement method
- Q19. Binary subtraction using 2's complement method
- Q20. What is Boolean algebra? Differentiate OR gate and AND gate.
- Q21. What is a Boolean function? Write the Truth Table of Ex-OR gate.
- Q22. What is a logic gate? Explain the NAND gate with Truth Table.
- Q23 & Q24. Differentiate between NAND and NOR gates
- Q25. Differentiate between XOR gate and XNOR gate
- Q26. What is the duality principle?
- Q27. State and prove the Commutative Law
- Q28. State and prove the Distributive Law
- Q29. State and prove De Morgan's Theorems
- Q30. Draw the Venn diagram of AND, OR, and NOT gates
- Long Q1. What is Boolean algebra? Describe AND, OR, NOT, and NAND gates.
- Long Q2. What is a logic gate? Describe any four logic gates.
- Long Q3. Describe any five logic gates with Truth Table and gate symbol.
Solutions and answers
Number Systems & Boolean Algebra
Complete solution guide for Innovative Computer Science, Grade 11 — covering positional number systems, base conversions, binary arithmetic, complement subtraction, and all Boolean algebra & logic gate concepts with fully worked examples.
Q1. What is a number system? Why is the binary number system used in digital computers?
Number System: A number system is a systematic method of representing (expressing) numbers using a consistent set of digits or symbols and a defined base (radix). The base determines how many unique symbols are used and how each position's weight is calculated.
Common number systems include:
- Decimal (base-10): Uses digits 0–9. Everyday human counting system.
- Binary (base-2): Uses digits 0 and 1. Foundation of all digital computing.
- Octal (base-8): Uses digits 0–7. Convenient shorthand for binary.
- Hexadecimal (base-16): Uses digits 0–9 and A–F. Widely used in programming.
- Hardware simplicity: Electronic circuits have two stable states — ON (high voltage / 1) and OFF (low voltage / 0). These naturally map to the two binary digits.
- Reliability: Distinguishing between two states is far more reliable than distinguishing ten voltage levels (as needed for decimal), reducing errors from noise.
- Cost-effectiveness: Designing circuits with two states requires simpler, cheaper, and more compact components.
- Logical operations: Boolean algebra (with values TRUE=1 and FALSE=0) maps perfectly to binary, enabling all arithmetic and logic operations.
- Universal compatibility: All data — numbers, text, images, sound — can be encoded as sequences of 0s and 1s.
Q2. Explain shortly about the four number systems.
- Uses 10 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
- Each position has a weight that is a power of 10.
- Example: 345.67 = 3×10² + 4×10¹ + 5×10⁰ + 6×10⁻¹ + 7×10⁻²
- It is the most familiar and widely used system in daily life.
- Uses only 2 digits: 0 and 1. Each digit is called a bit.
- Each position has a weight that is a power of 2: … 2³, 2², 2¹, 2⁰, 2⁻¹, 2⁻² …
- Example: 1101₂ = 1×2³ + 1×2² + 0×2¹ + 1×2⁰ = 8 + 4 + 0 + 1 = 13₁₀
- It is the native language of all digital computers.
- Uses 8 digits: 0, 1, 2, 3, 4, 5, 6, 7.
- Each position has a weight that is a power of 8.
- Each octal digit corresponds to exactly 3 binary digits (since 2³ = 8).
- Example: 257₈ = 2×8² + 5×8¹ + 7×8⁰ = 128 + 40 + 7 = 175₁₀
- Used as a compact representation of binary numbers (e.g., file permissions in Unix).
- Uses 16 symbols: 0–9 and A–F (where A=10, B=11, C=12, D=13, E=14, F=15).
- Each position has a weight that is a power of 16.
- Each hex digit corresponds to exactly 4 binary digits (since 2⁴ = 16).
- Example: 2AF₁₆ = 2×16² + 10×16¹ + 15×16⁰ = 512 + 160 + 15 = 687₁₀
- Widely used in computer science for memory addresses, colour codes (#FF0000), and machine code.
- Base-n → Decimal: Sum of (digit × baseposition) for every digit.
- Decimal → Base-n: For the integer part, repeatedly divide by n and collect remainders (bottom → top). For the fractional part, repeatedly multiply by n and collect integer parts (top → bottom).
- Binary → Octal: Group bits in threes (from the radix point outward), convert each group.
- Binary → Hexadecimal: Group bits in fours, convert each group.
- Octal/Hex → Binary: Expand each digit to 3 or 4 bits respectively.
Q3. Convert binary numbers to decimal
| # | Binary | Expansion (powers of 2) | Decimal Result |
|---|---|---|---|
| a. | 11011 | 1×2⁴ + 1×2³ + 0×2² + 1×2¹ + 1×2⁰ = 16+8+0+2+1 | 27 |
| b. | 10010 | 1×2⁴ + 0×2³ + 0×2² + 1×2¹ + 0×2⁰ = 16+0+0+2+0 | 18 |
| c. | 10101 | 1×2⁴ + 0×2³ + 1×2² + 0×2¹ + 1×2⁰ = 16+0+4+0+1 | 21 |
| d. | 110110 | 1×2⁵+1×2⁴+0×2³+1×2²+1×2¹+0×2⁰=32+16+0+4+2+0 | 54 |
| e. | 1111011 | 1×2⁶+1×2⁵+1×2⁴+1×2³+0×2²+1×2¹+1×2⁰=64+32+16+8+0+2+1 | 123 |
| f. | 10111.01 | 16+0+4+2+1 + 0×2⁻¹+1×2⁻² = 23 + 0+0.25 | 23.25 |
| g. | 11011.101 | 16+8+0+2+1 + 0.5+0+0.125 = 27.625 | 27.625 |
Q4. Convert decimal numbers to binary
Integer part: Repeatedly divide by 2, collect remainders (read bottom → top).
Fractional part: Repeatedly multiply by 2, collect integer parts (read top → bottom).
| # | Decimal | Worked Steps | Binary Result |
|---|---|---|---|
| a. | 59 | 59÷2=29 r1, 29÷2=14 r1, 14÷2=7 r0, 7÷2=3 r1, 3÷2=1 r1, 1÷2=0 r1 | 111011 |
| b. | 128 | 128÷2=64 r0 → 32 r0 → 16 r0 → 8 r0 → 4 r0 → 2 r0 → 1 r0 → 0 r1 | 10000000 |
| c. | 85 | 85÷2=42 r1 → 21 r0 → 10 r1 → 5 r0 → 2 r1 → 1 r0 → 0 r1 | 1010101 |
| d. | 268 | 268÷2=134 r0 → 67 r0 → 33 r1 → 16 r1 → 8 r0 → 4 r0 → 2 r0 → 1 r0 → 0 r1 | 100001100 |
| e. | 340 | 340÷2=170 r0 → 85 r0 → 42 r1 → 21 r0 → 10 r1 → 5 r0 → 2 r1 → 1 r0 → 0 r1 | 101010100 |
| f. | 0.28 | 0.28×2=0.56 → 0.56×2=1.12 → 0.12×2=0.24 → 0.24×2=0.48 → 0.48×2=0.96 → 0.96×2=1.92 … (repeating cycle 10001…) | 0.010001 (approx) |
| g. | 107.65 | Integer: 107 → 1101011. Fractional: 0.65×2=1.30→0.30×2=0.60→0.60×2=1.20→0.20×2=0.40→0.40×2=0.80→0.80×2=1.60 | 1101011.101001 (approx) |
Q5. Convert octal numbers to decimal
| # | Octal | Expansion | Decimal |
|---|---|---|---|
| a. | 103₈ | 1×8² + 0×8¹ + 3×8⁰ = 64+0+3 | 67 |
| b. | 127₈ | 1×8² + 2×8¹ + 7×8⁰ = 64+16+7 | 87 |
| c. | 245₈ | 2×8² + 4×8¹ + 5×8⁰ = 128+32+5 | 165 |
| d. | 324₈ | 3×8² + 2×8¹ + 4×8⁰ = 192+16+4 | 212 |
| e. | 366₈ | 3×8² + 6×8¹ + 6×8⁰ = 192+48+6 | 246 |
| f. | 0.357₈ | 3×8⁻¹ + 5×8⁻² + 7×8⁻³ = 0.375+0.0977+0.0171 | 0.48975 |
| g. | 21.21₈ | 2×8+1 + 2×8⁻¹+1×8⁻² = 17+0.25+0.015625 | 17.265625 |
Q6. Convert decimal numbers to octal
Fractional part: Repeatedly multiply by 8, collect integer parts.
| # | Decimal | Steps | Octal |
|---|---|---|---|
| a. | 48 | 48÷8=6 r0, 6÷8=0 r6 | 60₈ |
| b. | 215 | 215÷8=26 r7, 26÷8=3 r2, 3÷8=0 r3 | 327₈ |
| c. | 312 | 312÷8=39 r0, 39÷8=4 r7, 4÷8=0 r4 | 470₈ |
| d. | 452 | 452÷8=56 r4, 56÷8=7 r0, 7÷8=0 r7 | 704₈ |
| e. | 784 | 784÷8=98 r0, 98÷8=12 r2, 12÷8=1 r4, 1÷8=0 r1 | 1420₈ |
| f. | 58.5 | Int: 58÷8=7 r2, 7÷8=0 r7 → 72₈. Frac: 0.5×8=4.0 | 72.4₈ |
| g. | 128.75 | Int: 128÷8=16 r0, 16÷8=2 r0, 2÷8=0 r2 → 200₈. Frac: 0.75×8=6.0 | 200.6₈ |
Q7. Convert hexadecimal numbers to decimal
| # | Hex | Expansion | Decimal |
|---|---|---|---|
| a. | 45₁₆ | 4×16¹ + 5×16⁰ = 64+5 | 69 |
| b. | 145₁₆ | 1×16² + 4×16¹ + 5×16⁰ = 256+64+5 | 325 |
| c. | AB8₁₆ | 10×16² + 11×16¹ + 8×16⁰ = 2560+176+8 | 2744 |
| d. | 20A₁₆ | 2×16² + 0×16¹ + 10×16⁰ = 512+0+10 | 522 |
| e. | BCD₁₆ | 11×16² + 12×16¹ + 13×16⁰ = 2816+192+13 | 3021 |
| f. | 79.A₁₆ | 7×16+9 + 10×16⁻¹ = 121+0.625 | 121.625 |
| g. | 59.3₁₆ | 5×16+9 + 3×16⁻¹ = 89+0.1875 | 89.1875 |
Q8. Convert decimal numbers to hexadecimal
| # | Decimal | Steps (÷16) | Hex |
|---|---|---|---|
| a. | 232 | 232÷16=14 r8 → 0 r14(E) | E8₁₆ |
| b. | 788 | 788÷16=49 r4 → 3 r1 → 0 r3 | 314₁₆ |
| c. | 2324 | 2324÷16=145 r4 → 9 r1 → 0 r9 | 914₁₆ |
| d. | 1234 | 1234÷16=77 r2 → 4 r13(D) → 0 r4 | 4D2₁₆ |
| e. | 1345 | 1345÷16=84 r1 → 5 r4 → 0 r5 | 541₁₆ |
| f. | 420.5 | Int: 420÷16=26 r4 → 1 r10(A) → 0 r1 → 1A4₁₆. Frac: 0.5×16=8.0 | 1A4.8₁₆ |
Q9. Convert binary numbers to octal
| # | Binary | Grouped (3-bit) | Octal |
|---|---|---|---|
| a. | 11011101 | 011 · 011 · 101 | 335₈ |
| b. | 1011011 | 001 · 011 · 011 | 133₈ |
| c. | 10111001 | 010 · 111 · 001 | 271₈ |
| d. | 10000101 | 010 · 000 · 101 | 205₈ |
| e. | 1010111 | 001 · 010 · 111 | 127₈ |
| f. | 1101101.11101 | 001·101·101 . 111·010 | 155.72₈ |
Q10. Convert octal numbers to binary
| # | Octal | Each digit → 3 bits | Binary |
|---|---|---|---|
| a. | 64₈ | 6=110, 4=100 | 110100 |
| b. | 72₈ | 7=111, 2=010 | 111010 |
| c. | 127₈ | 1=001, 2=010, 7=111 | 1010111 |
| d. | 265₈ | 2=010, 6=110, 5=101 | 10110101 |
| e. | 456₈ | 4=100, 5=101, 6=110 | 100101110 |
| f. | 74.31₈ | 7=111, 4=100, 3=011, 1=001 | 111100.011001 |
Q11. Convert binary numbers to hexadecimal
| # | Binary | Grouped (4-bit) | Hex |
|---|---|---|---|
| a. | 111101010 | 0001 · 1110 · 1010 | 1EA₁₆ |
| b. | 101101001 | 0001 · 0110 · 1001 | 169₁₆ |
| c. | 1111000101 | 0011 · 1100 · 0101 | 3C5₁₆ |
| d. | 1001001110 | 0010 · 0100 · 1110 | 24E₁₆ |
| e. | 101011001 | 0001 · 0101 · 1001 | 159₁₆ |
| f. | 10000101.111001 | 1000·0101 . 1110·0100 | 85.E4₁₆ |
Q12. Convert hexadecimal numbers to binary
| # | Hex | Each digit → 4 bits | Binary |
|---|---|---|---|
| a. | 103₁₆ | 1=0001, 0=0000, 3=0011 | 100000011 |
| b. | 429₁₆ | 4=0100, 2=0010, 9=1001 | 10000101001 |
| c. | 2AD₁₆ | 2=0010, A=1010, D=1101 | 1010101101 |
| d. | A0C₁₆ | A=1010, 0=0000, C=1100 | 101000001100 |
| e. | BAD₁₆ | B=1011, A=1010, D=1101 | 101110101101 |
| f. | 8F.34₁₆ | 8=1000, F=1111, 3=0011, 4=0100 | 10001111.001101 |
Q13. Convert as indicated (mixed conversions)
| # | Given | Method | Result |
|---|---|---|---|
| a. | (A24)₁₆ → (?)₂ | A=1010, 2=0010, 4=0100 | (101000100100)₂ |
| b. | (DOE)₁₆ → (?)₈ | D=1101, O→0=0000, E=1110 → 110100001110₂ → group 3: 000·101·000·011·101·110 → 110100001110 → regroup 011·010·000·111·011·10 (corrected): 1101 0000 1110₂ = 011·010·000·111·011·10 → 6416₈ |
(6416)₈ |
| c. | (970)₁₆ → (?)₈ | 9=1001, 7=0111, 0=0000 → 100101110000₂ → 010·010·111·000 → 4560₈ | (4560)₈ |
| d. | (773)₈ → (?)₁₆ | 7=111, 7=111, 3=011 → 111111011₂ → 0001·1111·1011 → 1FB₁₆ | (1FB)₁₆ |
| e. | (3467)₈ → (?)₁₆ | 3=011,4=100,6=110,7=111 → 011100110111₂ → 0111·0011·0111 → 737₁₆ | (737)₁₆ |
| f. | (204)₈ → (?)₁₆ | 2=010,0=000,4=100 → 010000100₂ → 0000·1000·0100 → 84₁₆ | (84)₁₆ |
Q14. Perform binary addition
Q15. Perform binary subtraction
| # | Operation | Decimal Check | Result |
|---|---|---|---|
| a. | 1010 − 111 | 10 − 7 = 3 | 11₂ |
| b. | 1100 − 110 | 12 − 6 = 6 | 110₂ |
| c. | 11000 − 10111 | 24 − 23 = 1 | 1₂ |
| d. | 11101 − 1011 | 29 − 11 = 18 | 10010₂ |
| e. | 11011 − 1011 | 27 − 11 = 16 | 10000₂ |
| f. | 10011 − 1101 | 19 − 13 = 6 | 110₂ |
Q16. Decimal subtraction using 9's complement method
- Find the 9's complement of the subtrahend (subtract each digit from 9).
- Add the minuend and the 9's complement of the subtrahend.
- If there is a carry out: result is positive → add the carry to the sum (end-around carry).
- If there is no carry: result is negative → take the 9's complement of the sum and attach a minus sign.
789 + 783 = 1572 → Carry out! Discard carry and add 1: 572 + 1 = 573
458 + 674 = 1132 → Carry! 132 + 1 = 133
1018 + 9341 = 10359 → Carry! 0359 + 1 = 360
0254 + 6453 = 6707 → No carry → 9's complement of 6707 = 9999 − 6707 = 3292 → −3292
0031 + 9458 = 9489 → No carry → 9999 − 9489 = 510 → −510
0028 + 9879 = 9907 → No carry → 9999 − 9907 = 92 → −92
Q17. Decimal subtraction using 10's complement method
- Find the 10's complement of the subtrahend = 9's complement + 1.
- Add the minuend and the 10's complement.
- If there is a carry out: discard it — the remaining sum is the positive result.
- If there is no carry: the result is negative — take the 10's complement of the sum.
123 + 942 = 1065 → Carry! Drop it → 65
4521 + 9412 = 13933 → Carry! → 3933
9855 + 9091 = 18946 → Carry! → 8946
0129 + 8766 = 8895 → No carry → 10's complement of 8895 = 10000−8895 = 1105 → −1105
0028 + 9535 = 9563 → No carry → 10000 − 9563 = 437 → −437
0710 + 1249 = 1959 → No carry → 10000 − 1959 = 8041 → −8041
Q18. Binary subtraction using 1's complement method
- Find the 1's complement of the subtrahend (flip every bit: 0→1, 1→0).
- Add the minuend and the 1's complement.
- If there is a carry out: add it back to the result (end-around carry) → positive answer.
- If there is no carry: result is negative → take the 1's complement of the sum and negate.
1110 + 1001 = 10111 → Carry! → 0111 + 1 = 1000₂ (= 8)
10101 + 10001 = 101110 → Carry! → 01110 + 1 = 10111₂ (= 23 ... wait, 21−14=7=111₂)
Correction: 10101 + 10001 = 100110 → Carry! → 00110 + 1 = 111₂ (= 7)
11001 + 01000 = 100001 → Carry! → 00001 + 1 = 10₂ (= 2)
01001 + 10010 = 11011 → No carry → 1's complement of 11011 = 00100 → −100₂ (= −4)
001001 + 000101 = 001110 → No carry → 1's complement of 001110 = 110001 → −110001₂ (= −49)
01101 + 00101 = 10010 → No carry → 1's complement of 10010 = 01101 → −1101₂ (= −13)
Q19. Binary subtraction using 2's complement method
- Find the 2's complement of the subtrahend = 1's complement + 1 (flip all bits, add 1).
- Add the minuend and the 2's complement.
- If there is a carry out: discard it → the result is positive.
- If there is no carry: result is negative → take the 2's complement of the sum.
1010 + 1001 = 10011 → Carry! Drop it → 11₂ (= 3)
11011 + 10010 = 101101 → Carry! Drop it → 1101₂ (= 13)
11101 + 00101 = 100010 → Carry! Drop → 10₂ (= 2)
0111 + 0101 = 1100 → No carry → 2's complement of 1100: flip→0011 +1 = 0100 → −100₂ (= −4)
0110 + 0100 = 1010 → No carry → 2's complement of 1010: flip→0101 +1 = 0110 → −110₂ (= −6)
01001 + 00101 = 01110 → No carry → 2's complement of 01110: flip→10001 +1 = 10010 → −10010₂ (= −18)
Q20. What is Boolean algebra? Differentiate OR gate and AND gate.
Boolean algebra is a branch of mathematics introduced by George Boole in 1854. It deals with variables that have only two possible values: 0 (FALSE) and 1 (TRUE). It provides the algebraic foundation for designing and analysing digital circuits using three basic operations: AND (multiplication), OR (addition), and NOT (complement).
- Symbol: AND uses a D-shaped (flat input) symbol; OR uses a curved (concave input) arrow-like symbol.
- Boolean expression: AND is written as Y = A · B (multiplication); OR is written as Y = A + B (addition).
- Output logic: AND outputs 1 only when all inputs are 1; OR outputs 1 when at least one input is 1.
- Analogy: AND is like switches in series (all must be ON); OR is like switches in parallel (any one ON suffices).
- Truth table differences:
| A | B | Y = A·B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
| A | B | Y = A+B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
Q21. What is a Boolean function? Write the Truth Table of Ex-OR gate.
A Boolean function is an algebraic expression formed by combining Boolean variables (A, B, C, …) using the operations AND (·), OR (+), NOT ( ' or overbar ), and parentheses. It maps a set of binary inputs to a single binary output. For example, F(A, B) = A·B + A·B is a Boolean function.
| A | B | Y = A ⊕ B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Boolean expression: Y = A ⊕ B = A·B + A·B — outputs 1 when inputs are different.
Q22. What is a logic gate? Explain the NAND gate with Truth Table.
A logic gate is an elementary building block of digital circuits that performs a basic logical operation on one or more binary inputs to produce a single binary output. Each gate implements a specific Boolean function in hardware using transistors.
The NAND gate is the combination of an AND gate followed by a NOT gate. It produces a LOW (0) output only when all inputs are HIGH (1); for all other input combinations, the output is HIGH (1). It is called a universal gate because any Boolean function can be implemented using only NAND gates.
Boolean expression: Y = A · B (read as "A NAND B")
| A | B | A·B | Y = A·B |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 |
- Gate symbol: AND gate symbol with a small circle (bubble) at the output, indicating inversion.
- Universal gate: NOT, AND, and OR can all be built from NAND gates alone.
- Applications: Memory circuits, flip-flops, and combinational logic.
Q23 & Q24. Differentiate between NAND and NOR gates
- Full form: NAND = NOT + AND; NOR = NOT + OR.
- Boolean expression: NAND → Y = A · B; NOR → Y = A + B.
- Gate symbol: NAND = AND symbol with output bubble; NOR = OR symbol with output bubble.
- Output = 0 when: NAND outputs 0 only when ALL inputs are 1; NOR outputs 0 when ANY input is 1.
- Output = 1 when: NAND outputs 1 when at least one input is 0; NOR outputs 1 only when ALL inputs are 0.
- Both are universal gates: Any Boolean function can be implemented using only NAND gates or only NOR gates.
| A | B | Y=A·B |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
| A | B | Y=A+B |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
If A=0, B=1: NAND output = 0·1 = 0 = 1. NOR output = 0+1 = 1 = 0.
Q25. Differentiate between XOR gate and XNOR gate
- Full form: XOR = Exclusive OR; XNOR = Exclusive NOR (or Equivalence gate).
- Boolean expression: XOR → Y = A⊕B = AB + AB; XNOR → Y = A⊕B = AB + AB.
- Output = 1 when: XOR outputs 1 when inputs are different; XNOR outputs 1 when inputs are same.
- Relationship: XNOR is the complement (inverse) of XOR. YXNOR = YXOR.
- Gate symbol: XNOR uses the XOR symbol with a bubble at the output.
- Applications: XOR is used in adders, comparators, and parity generators; XNOR is used in equality comparators and parity checkers.
| A | B | Y = A⊕B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
| A | B | Y = A⊕B |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
Q26. What is the duality principle?
The duality principle states that every valid Boolean equation remains valid if we simultaneously interchange:
- AND (·) ↔ OR (+)
- 0 ↔ 1
For example:
- A + 0 = A → dual → A · 1 = A
- A + 1 = 1 → dual → A · 0 = 0
- A · (B + C) = A·B + A·C → dual → A + (B·C) = (A+B)·(A+C)
The duality principle reduces the number of theorems we need to prove by half — if a theorem is valid, its dual is automatically valid.
Q27. State and prove the Commutative Law
Law 1 (OR): A + B = B + A
Law 2 (AND): A · B = B · A
The order of operands does not affect the result.
| A | B | A+B | B+A | Equal? |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | ✓ |
| 0 | 1 | 1 | 1 | ✓ |
| 1 | 0 | 1 | 1 | ✓ |
| 1 | 1 | 1 | 1 | ✓ |
| A | B | A·B | B·A | Equal? |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | ✓ |
| 0 | 1 | 0 | 0 | ✓ |
| 1 | 0 | 0 | 0 | ✓ |
| 1 | 1 | 1 | 1 | ✓ |
Since both columns are identical in every case, the commutative laws are proved.
Q28. State and prove the Distributive Law
Law 1: A · (B + C) = A·B + A·C (AND distributes over OR)
Law 2: A + (B · C) = (A+B) · (A+C) (OR distributes over AND)
| A | B | C | B+C | A·(B+C) | A·B | A·C | A·B+A·C | Equal? |
|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ✓ |
| 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | ✓ |
| 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | ✓ |
| 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | ✓ |
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ✓ |
| 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | ✓ |
| 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | ✓ |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | ✓ |
Since columns 5 and 8 are identical for every combination, A·(B+C) = A·B + A·C is proved. Law 2 follows by the duality principle.
Q29. State and prove De Morgan's Theorems
Theorem 1: A + B = A · B
"The complement of a sum equals the product of the complements."
Theorem 2: A · B = A + B
"The complement of a product equals the sum of the complements."
| A | B | A+B | A+B | A | B | A·B |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 1 | 0 | 1 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 |
Columns 4 and 7 are identical → Theorem 1 is proved. ✓
Proof of Theorem 2: A·B = A+B| A | B | A·B | A·B | A | B | A+B |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 |
Columns 4 and 7 are identical → Theorem 2 is proved. ✓
Q30. Draw the Venn diagram of AND, OR, and NOT gates
A Venn diagram visually represents the logical operation using overlapping circles (sets). The shaded region indicates where the output is 1 (TRUE).
(overlap only)
Output = 1 only in the intersection (A ∩ B) — where both A and B are TRUE.
(all shaded)
Output = 1 in the union (A ∪ B) — wherever A, B, or both are TRUE.
(outside A)
Output = 1 in the complement of A (A̅) — the area outside circle A.
Long Q1. What is Boolean algebra? Describe AND, OR, NOT, and NAND gates.
Boolean algebra is a mathematical system for analysing and simplifying logical expressions, developed by George Boole in 1854. It operates on variables that take only two values — 0 (FALSE/LOW) and 1 (TRUE/HIGH) — and uses three fundamental operations: AND (conjunction), OR (disjunction), and NOT (negation).
Boolean algebra is the theoretical foundation of all digital electronics: it is used to design, analyse, and simplify logic circuits in computers, calculators, and virtually every digital device.
- Function: Produces 1 only when all inputs are 1.
- Symbol: D-shaped body with a flat input side and a curved output side.
- Expression: Y = A · B (also written Y = AB)
- Analogy: Two switches in series — both must be ON for current to flow.
| A | B | Y = A·B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
- Function: Produces 1 when at least one input is 1.
- Symbol: Curved (concave) input side with a pointed output — resembling an arrow.
- Expression: Y = A + B
- Analogy: Two switches in parallel — current flows if either (or both) is ON.
| A | B | Y = A+B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
- Function: Produces the complement (opposite) of the input.
- Symbol: A triangle pointing right with a small circle (bubble) at the output.
- Expression: Y = A (also written Y = A' or Y = ¬A)
- Single-input gate: The only basic gate with just one input.
| A | Y = A |
|---|---|
| 0 | 1 |
| 1 | 0 |
- Function: Complement of AND — produces 0 only when all inputs are 1.
- Symbol: AND gate symbol with a bubble at the output.
- Expression: Y = A · B
- Universal gate: All other gates (AND, OR, NOT) can be built using NAND gates alone.
| A | B | Y = A·B |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Long Q2. What is a logic gate? Describe any four logic gates.
A logic gate is an electronic circuit that performs a fundamental logical operation on one or more binary inputs to produce a single binary output. Logic gates are the basic building blocks of all digital systems — from simple calculators to complex microprocessors. They are implemented using transistors and are governed by the rules of Boolean algebra.
- Basic gates: AND, OR, NOT
- Universal gates: NAND, NOR
- Special-purpose gates: XOR (Exclusive OR), XNOR (Exclusive NOR)
- Inputs: Two or more | Expression: Y = A · B
- Logic: Output HIGH only when all inputs HIGH.
- Symbol: D-shaped (flat input, curved output).
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
- Inputs: Two or more | Expression: Y = A + B
- Logic: Output HIGH when at least one input HIGH.
- Symbol: Curved input side, pointed output.
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
- Input: One | Expression: Y = A
- Logic: Inverts the input (0→1, 1→0).
- Symbol: Triangle + output bubble.
| A | Y |
|---|---|
| 0 | 1 |
| 1 | 0 |
- Inputs: Two | Expression: Y = A ⊕ B = AB + AB
- Logic: Output HIGH when inputs are different.
- Symbol: OR gate with an extra curved line on the input side.
- Applications: Binary adders (half adder, full adder), parity generators/checkers.
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Long Q3. Describe any five logic gates with Truth Table and gate symbol.
Below are five important logic gates with complete descriptions, Boolean expressions, symbols, and truth tables.
- Symbol: D-shaped (flat left, curved right).
- Expression: Y = A · B
- Logic: 1 only when ALL inputs = 1.
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
- Symbol: Curved (concave) input, pointed output.
- Expression: Y = A + B
- Logic: 1 when ANY or ALL inputs = 1.
| A | B | Y |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
- Symbol: Triangle with output bubble.
- Expression: Y = A
- Logic: Inverts the single input.
| A | Y |
|---|---|
| 0 | 1 |
| 1 | 0 |
- Symbol: AND gate + output bubble.
- Expression: Y = A · B
- Logic: 0 only when ALL inputs = 1; otherwise 1. Universal gate.
| A | B | Y |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
- Symbol: OR gate + output bubble.
- Expression: Y = A + B
- Logic: 1 only when ALL inputs = 0; otherwise 0. Universal gate.
| A | B | Y |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
| Gate | Expression | Output 1 when | Type |
|---|---|---|---|
| AND | Y = A·B | All inputs = 1 | Basic |
| OR | Y = A+B | Any input = 1 | Basic |
| NOT | Y = A | Input = 0 | Basic |
| NAND | Y = A·B | Not all inputs = 1 | Universal |
| NOR | Y = A+B | All inputs = 0 | Universal |
| XOR | Y = A⊕B | Inputs differ | Special |
| XNOR | Y = A⊕B | Inputs same | Special |
Frequently asked questions
What is Number System & Ttheir conversion and Boolean Logic about?
This chapter covers the fundamental concepts of number systems, including their conversion between binary, octal, decimal, and hexadecimal. It also delves into Boolean algebra, logic gates, and their operations, providing a comprehensive understanding of digital logic.
Which topics are covered in Number System & Ttheir conversion and Boolean Logic?
Class 11 Computer Science “Number System & Ttheir conversion and Boolean Logic” covers: Positional Number Systems; Base Conversions (Binary, Octal, Decimal, Hexadecimal); Binary Arithmetic (Addition, Subtraction); Complement Methods (1's and 2's Complement); Boolean Algebra; Logic Gates (AND, OR, NOT, NAND, NOR, XOR, XNOR); De Morgan's Theorems; Boolean Function and Truth Tables.
What should I focus on in Number System & Ttheir conversion and Boolean Logic for the exam?
Students should focus on understanding number system conversions, performing binary arithmetic, and applying Boolean algebra principles to logic gates and their operations, including De Morgan's theorems.
What are the key formulas or definitions in Number System & Ttheir conversion and Boolean Logic?
Base-n to Decimal: Sum of (digit × base^position); Decimal to Base-n: Repeated division/multiplication; Binary to Octal: Group bits in threes; Binary to Hexadecimal: Group bits in fours; Boolean Algebra Laws (Commutative, Distributive, Duality, De Morgan's).
Where can I read the Class 11 Computer Science “Number System & Ttheir conversion and Boolean Logic” solutions?
Right on this page. They are free and you do not need to sign up. For chapter quizzes and the AI tutor, install the Sikshya Plus app.
Study tips
Do not just read it. Practice it.
You have read the solutions for Number System & Ttheir conversion and Boolean Logic. Now test yourself, ask the AI tutor and keep your streak going.




- AI quizzes for this chapterTest yourself with instant feedback and explanations after every answer.
- AI tutor, free, 24/7Stuck on a question? Ask in your own words and get a step-by-step explanation.
- 14 AI tools in one appSummarizer, grammar checker, flashcards, essay help, math solver and more.
- Past questions and notesPast papers and your own notes organized chapter by chapter.