Section A — 1 Mark Questions
1. What is an analog circuit? [1 Mark]
Answer: An analog circuit is an electronic circuit in which the voltage or current varies continuously with time to represent information.
2. What is a digital circuit? [1 Mark]
Answer: A digital circuit is an electronic circuit that operates on discrete values, typically represented by binary levels 0 and 1.
3. Convert the decimal number 10 to binary. [1 Mark]
Answer: 1010
4. Convert the binary number 1101 to decimal. [1 Mark]
Answer: 13
5. What does BCD stand for? [1 Mark]
Answer: Binary Coded Decimal
6. What is the base of the octal number system? [1 Mark]
Answer: 8
7. What is the base of the hexadecimal number system? [1 Mark]
Answer: 16
8. State the output of an AND gate when both inputs are 1. [1 Mark]
Answer: 1
9. State the output of an OR gate when both inputs are 0. [1 Mark]
Answer: 0
10. What is the primary function of a NOT gate? [1 Mark]
Answer: Inverting the input logic level.
11. Which logic gates are known as universal gates? [1 Mark]
Answer: NAND and NOR gates.
12. What is the output of an XOR gate when both inputs are the same? [1 Mark]
Answer: 0
13. What is the output of an XNOR gate when both inputs are different? [1 Mark]
Answer: 0
14. What basic electronic components are primarily used to realize basic gates like AND and OR? [1 Mark]
Answer: Diodes and transistors.
15. What is the purpose of a half adder? [1 Mark]
Answer: To add two single-bit binary numbers and produce a sum and carry.
16. How many inputs does a full adder have? [1 Mark]
Answer: Three inputs.
17. What is the 1's complement of the binary number 1011? [1 Mark]
Answer: 0100
18. In binary subtraction using 1's complement, what is done if there is a final carry? [1 Mark]
Answer: It is added back to the least significant bit (end-around carry).
19. How many binary bits are used to represent a single BCD digit? [1 Mark]
Answer: 4 bits.
20. What is the hexadecimal equivalent of the decimal number 15? [1 Mark]
Answer: F
Section B — 2/3 Mark Questions
1. Differentiate between analog and digital circuits. [2 Marks]
Answer: Analog circuits process continuous signals that can take any value over a given range, whereas digital circuits process discrete signals represented by binary states (0 and 1). Analog circuits are more susceptible to noise, while digital circuits offer higher noise immunity and reliability.
2. Convert the decimal number 45 into binary. [2 Marks]
Answer: Successive division by 2 gives: 45 / 2 = 22 remainder 1, 22 / 2 = 11 remainder 0, 11 / 2 = 5 remainder 1, 5 / 2 = 2 remainder 1, 2 / 2 = 1 remainder 0, 1 / 2 = 0 remainder 1. Reading the remainders from bottom to top, the binary equivalent is 101101.
3. Convert the hexadecimal number 2C3 to decimal. [3 Marks]
Answer: Each digit is multiplied by 16 raised to its position power starting from 0 on the right. 2C3 in hex = (2 × 162) + (C × 161) + (3 × 160). Since C = 12 in decimal, this becomes (2 × 256) + (12 × 16) + (3 × 1) = 512 + 192 + 3 = 707 in decimal.
4. Explain why NAND and NOR gates are called universal gates. [2 Marks]
Answer: NAND and NOR gates are called universal gates because any basic logic function or Boolean expression—specifically AND, OR, and NOT—can be implemented using only NAND gates or only NOR gates without needing any other gate type.
5. Draw or describe the truth table and logical operation of an XOR gate. [2 Marks]
Answer: An XOR (exclusive-OR) gate outputs 1 when an odd number of inputs are 1, and 0 otherwise. Its truth table for inputs A and B is: 00→0, 01→1, 10→1, 11→0. It is often used for inequality detection and binary addition.
6. Explain the difference between a half adder and a full adder. [3 Marks]
Answer: A half adder adds two single-bit inputs (A and B) and produces two outputs: Sum and Carry. It cannot handle a carry input from a previous addition stage. A full adder adds three single-bit inputs (A, B, and Carry-in Cin) and produces a Sum and a Carry-out, making it suitable for multi-bit binary addition.
7. Perform binary addition of 1011 and 0110. [2 Marks]
Answer: Aligning the bits: 1011 + 0110. Adding column by column from right to left: 1+0=1, 1+1=10 (write 0, carry 1), 0+1+1(carry)=10 (write 0, carry 1), 1+0+1(carry)=10 (write 0, carry 1). The final result including the overflow carry is 10001.
8. Explain how subtraction of two binary numbers is performed using 1's complement. [3 Marks]
Answer: To subtract B from A (A - B) using 1's complement: first, find the 1's complement of the subtrahend B. Second, add this complemented value to the minuend A. Third, if there is a carry out (end-around carry) from the most significant bit, add it to the result. If there is no carry, take the 1's complement of the result and make it negative.
9. Write short notes on BCD (Binary Coded Decimal). [2 Marks]
Answer: BCD is a digital encoding method where each decimal digit from 0 to 9 is represented by its unique 4-bit binary equivalent. For example, decimal 47 is represented in BCD as 0100 0111. It is widely used in systems displaying numerical data like digital clocks and calculators.
10. Realize a NOT gate using a transistor. [3 Marks]
Answer: A NOT gate can be built using a single bipolar junction transistor in a common-emitter configuration. The input is applied to the base through a resistor, and the output is taken from the collector terminal connected to a supply voltage via a collector resistor. When the input is high (1), the transistor saturates, pulling the collector output low (0). When the input is low (0), the transistor is cut off, leaving the collector output high (1).
Section C — 5 Mark Questions
1. Explain the realization of AND, OR, and NOT gates using diodes and transistors. [5 Marks]
Answer:
Introduction
Basic logic gates can be constructed using discrete semiconductor devices such as diodes and bipolar junction transistors, forming the foundation of Diode-Transistor Logic (DTL) and Diode Logic (DL).
AND Gate Realization
An AND gate can be built using two diodes and a resistor. The cathodes of the diodes serve as inputs A and B, while the anodes are connected to a positive supply voltage through a resistor and act as the output. If either input is low (0), its diode conducts, pulling the output voltage down to logic 0. The output is high (1) only when both inputs are high.
OR Gate Realization
An OR gate is constructed using diodes with their anodes serving as inputs and their cathodes connected together to a common resistor tied to ground. If any input is high (1), its respective diode conducts, forcing the output to go high. The output remains low only when all inputs are low.
NOT Gate Realization
A NOT gate utilizes a single transistor. When a high input is applied to the base, the transistor turns fully ON, creating a low-resistance path to ground, which pulls the output voltage to near zero (logic 0). When a low input is applied, the transistor turns OFF, allowing the output voltage to rise to the supply rail (logic 1), thereby achieving logical inversion.
2. Describe the conversion processes from decimal to binary and binary to decimal with suitable examples. [5 Marks]
Answer:
Introduction
Number system conversions are essential in digital electronics for translating human-readable decimal values into machine-readable binary values and vice versa.
Decimal to Binary Conversion
To convert a whole decimal number to binary, use the successive division-by-2 method. Divide the decimal number by 2, record the integer quotient, and note the remainder (0 or 1). Continue dividing the quotient by 2 until the quotient becomes 0. The binary equivalent is obtained by reading the remainders in reverse order, from the last remainder to the first.
Decimal to Binary Example
Convert decimal 13 to binary:
- 13 / 2 = 6, remainder 1 (LSB)
- 6 / 2 = 3, remainder 0
- 3 / 2 = 1, remainder 1
- 1 / 2 = 0, remainder 1 (MSB)
- Result: 1101
Binary to Decimal Conversion
To convert a binary number to decimal, use the positional weight method. Multiply each binary digit (bit) by 2 raised to the power of its position index, starting with 20 for the least significant bit on the right and increasing by 1 for each position to the left. Sum all the resulting values to get the final decimal number.
Binary to Decimal Example
Convert binary 1011 to decimal:
- (1 × 23) + (0 × 22) + (1 × 21) + (1 × 20)
- = (1 × 8) + (0 × 4) + (1 × 2) + (1 × 1)
- = 8 + 0 + 2 + 1 = 11
3. Explain the internal architecture, working, and truth table of a Full Adder circuit. [5 Marks]
Answer:
Introduction
A full adder is a combinational logic circuit that performs addition on three binary bits: two inputs (A and B) and a carry input (Cin) generated from a previous lower-significant addition stage.
Logic Circuit Construction
A full adder can be constructed using two half adders and an OR gate. The first half adder adds inputs A and B to produce a partial sum and a carry. The second half adder adds the partial sum to the carry-in (Cin) to produce the final sum output. The final carry output is generated by ORing the carry outputs of the two half adders.
Truth Table
The operation of a full adder across all eight input combinations is defined as follows:
- 000 → Sum = 0, Carry = 0
- 001 → Sum = 1, Carry = 0
- 010 → Sum = 1, Carry = 0
- 011 → Sum = 0, Carry = 1
- 100 → Sum = 1, Carry = 0
- 101 → Sum = 0, Carry = 1
- 110 → Sum = 0, Carry = 1
- 111 → Sum = 1, Carry = 1
Boolean Expressions
The logical expressions derived for a full adder are:
- Sum = A XOR B XOR Cin
- Carry-out = (A AND B) OR (Cin AND (A XOR B))
4. Explain binary subtraction using 1's complement method with a detailed step-by-step example. [5 Marks]
Answer:
Introduction
Complement arithmetic simplifies digital hardware design by allowing subtraction operations to be performed using only addition circuits. The 1's complement method is one such technique used for signed binary arithmetic.
Steps for 1's Complement Subtraction
To subtract number B from number A (A - B):
- Determine the number of bits in the operands and ensure both numbers have the same bit length by padding with leading zeros if necessary.
- Find the 1's complement of the subtrahend B by inverting all its bits (changing 0s to 1s and 1s to 0s).
- Add this 1's complement of B to the minuend A using standard binary addition rules.
- Check the most significant bit (MSB) position for a carry. If a carry out (end-around carry) occurs, add 1 to the least significant bit of the result. If no carry occurs, take the 1's complement of the sum and designate the final result as negative.
Detailed Example
Perform 1101 minus 1010 (Decimal 13 - 10):
- Minuend (A) = 1101
- Subtrahend (B) = 1010
- 1's complement of B = 0101
- Add A and 1's complement of B: 1101 + 0101 = 10010
- The final carry bit is 1. Add this end-around carry to the result: 0010 + 1 = 0011.
- Since a carry was generated, the result is positive. The final binary difference is 0011, which equals decimal 3.
5. Discuss the significance, conversion methods, and applications of Octal and Hexadecimal number systems in digital electronics. [5 Marks]
Answer:
Introduction
While binary numbers are native to digital systems, they are extremely long and prone to human error when read or written. Octal (base-8) and hexadecimal (base-16) number systems serve as compact shorthand notations for groups of binary digits.
Significance and Grouping
In octal, each digit represents a unique combination of 3 binary bits (23 = 8), ranging from 000 to 111. In hexadecimal, each digit represents 4 binary bits (24 = 16), ranging from 0000 to 1111. This direct power-of-two relationship allows engineers to compress long binary strings into shorter, manageable representations.
Conversion Between Binary and Hexadecimal
To convert binary to hexadecimal, group the bits in sets of four starting from the binary point toward the left (and right for fractional parts), padding with leading zeros if necessary. Then, replace each 4-bit group with its corresponding hexadecimal equivalent symbol (0-9 and A-F). For example, binary 11011101 is grouped as 1101 and 1101, which translates to DD in hex.
Applications in Digital Systems
Hexadecimal and octal notations are widely used in:
- Memory address mapping in computer architecture
- Machine language and assembly programming
- Debugging digital systems and microcontroller registers
- Color codes in web design and graphics processing hardware
Conclusion
These number systems bridge the gap between machine-level binary execution and human comprehension, streamlining the design, analysis, and troubleshooting of complex digital electronic systems.