DE Model Exam – Part C (10 Marks)
Q 29. Decimal โ Binary, Octal, Hexadecimal Conversion
๐น Decimal to Binary:
- Divide the decimal number by 2 repeatedly.
- Write down remainders in reverse order.
Example:
(13)โโ = (1101)โ
(13 รท 2 = 6 R1, 6 รท 2 = 3 R0, 3 รท 2 = 1 R1, 1 รท 2 = 0 R1)
๐น Binary to Decimal:
- Multiply each bit by 2โฟ and add.
(1101)โ = (1ร8 + 1ร4 + 0ร2 + 1ร1) = (13)โโ
๐น Decimal to Octal:
- Divide by 8 repeatedly.
(125)โโ = (175)โ
๐น Octal to Decimal:
(175)โ = (1ร8ยฒ + 7ร8ยน + 5ร8โฐ) = (125)โโ
๐น Decimal to Hexadecimal:
- Divide by 16, take remainders (AโF for 10โ15).
(254)โโ = (FE)โโ
๐น Hexadecimal to Decimal:
(FE)โโ = (15ร16 + 14ร1) = 254
๐ Importance:
Used in Microprocessor, Memory address representation, and Digital Circuit Design.
Q 30. Operation of Logic Gates โ AND, OR, NOT, NAND, XNOR
Logic Gates are basic building blocks of digital circuits.
They perform logical operations using binary inputs (0 / 1).

๐ Note: NAND and NOR are Universal Gates โ any circuit can be made using them alone.
Q 31. Full Adder โ Operation with Diagram
Definition:
A Full Adder adds three binary bits (A, B and Cโโโ or Carry in) and produces Sum and Carry out.

๐น Logic Diagram:
(Use two Half Adders + OR gate)
๐น Truth Table:
| A | B | Cin | Sum | Cout |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
๐น Boolean Expressions:
Sum = A โ B โ Cin
Carry = AB + BCin + ACin
๐ Use:
Binary addition in ALU, microprocessors, digital counters.
Q 32. JK Flip-Flop โ Working with Diagram and Truth Table
Definition:
A JK Flip-Flop is a bistable sequential circuit having two inputs (J and K) and one clock signal.
It can set, reset and toggle its output.
๐น Symbol & Block Diagram:
Inputs โ J, K, Clock โ Outputs โ Q, Qโฒ

๐น Truth Table:
| J | K | Q(next) | Operation |
|---|---|---|---|
| 0 | 0 | No change | Memory |
| 0 | 1 | 0 | Reset |
| 1 | 0 | 1 | Set |
| 1 | 1 | Qโฒ | Toggle |
๐น Excitation Table:
Used for designing sequential circuits.
๐น Logic Diagram:
Combination of SR Latch + Feedback paths using AND gates controlled by Clock.
๐ Applications:
Used in Counters, Registers, Memory storage, Frequency division.
Q 33. Types of ROM โ Explanation with Diagrams
ROM (Read Only Memory) stores data permanently even when power is off.

๐น Types of ROM:
1๏ธโฃ Mask ROM:
- Data programmed by manufacturer.
- Used for permanent firmware.
2๏ธโฃ PROM (Programmable ROM):
- User can program once using PROM programmer.
- Cannot be erased.
3๏ธโฃ EPROM (Erasable PROM):
- Can be erased by UV light (through quartz window).
- Reusable.
4๏ธโฃ EEPROM (Electrically Erasable PROM):
- Can be erased and reprogrammed electrically.
- Used in microcontrollers, BIOS.
5๏ธโฃ Flash ROM:
- Modern type of EEPROM, fast erasing in blocks.
- Used in USB drives, mobile memory.
๐ Diagram:
Shows address decoder and memory cell array (rows ร columns).
๐ Advantages:
- Non-volatile
- Reliable storage
- Low power consumption
๐ Applications:
Firmware storage, Embedded systems, BIOS, Microcontrollers.