Tue. Nov 11th, 2025

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:

ABCinSumCout
00000
00110
01010
01101
10010
10101
11001
11111

๐Ÿ”น 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:

JKQ(next)Operation
00No changeMemory
010Reset
101Set
11Qโ€ฒ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.