Computer Fundamentals & Digital Logic - Complete Guide
Last Updated: August 19, 2026 | Marks Weightage: ~10 Marks | BPSC CS Teacher
A comprehensive guide covering all important topics of Computer Fundamentals and Digital Logic for the BPSC Computer Science Teacher exam.
1. Generations of Computers
| Generation | Technology | Features | Example |
|---|---|---|---|
| 1st (1940-56) | Vacuum Tubes | Large, slow, costly, magnetic drums | ENIAC, UNIVAC |
| 2nd (1956-63) | Transistors | Smaller, faster, reliable, magnetic cores | IBM 1401 |
| 3rd (1964-71) | Integrated Circuits (ICs) | Small, efficient, multiprogramming | IBM 360 |
| 4th (1971-80) | Microprocessors | Personal computers, GUIs | Intel 4004, Apple II |
| 5th (1980-present) | ULSI, AI | Parallel processing, AI, ML | Modern PCs, Smartphones |
2. Basic Computer Organization
๐ง CPU (Central Processing Unit)
- ALU: Performs arithmetic (+, -, *, /) and logical (AND, OR, NOT) operations
- Control Unit (CU): Fetches, decodes, and executes instructions
- Registers: Small, fast memory inside CPU (Accumulator, Program Counter, Stack Pointer)
๐พ Memory & I/O
- Primary Memory: RAM (Volatile), ROM (Non-volatile)
- Secondary Memory: HDD, SSD, Pen Drive, CD/DVD
- Cache Memory: High-speed memory between CPU and RAM
- I/O Devices: Keyboard, Mouse, Monitor, Printer
3. Memory Units & Hierarchy
๐ Memory Units
- Bit: 0 or 1
- Byte: 8 bits
- KB (Kilobyte): 1024 Bytes
- MB (Megabyte): 1024 KB
- GB (Gigabyte): 1024 MB
- TB (Terabyte): 1024 GB
- PB (Petabyte): 1024 TB
4. Number Systems
๐ข Systems
- Binary: Base 2 (0,1) - Used in computers
- Octal: Base 8 (0-7)
- Decimal: Base 10 (0-9) - Human-friendly
- Hexadecimal: Base 16 (0-9, A-F)
๐ Conversions
- Binary to Decimal: Multiply each bit by 2^n
- Decimal to Binary: Divide by 2 repeatedly
- Binary to Hexadecimal: Group 4 bits
- Hexadecimal to Binary: Expand each hex digit
5. Encoding Schemes
- ASCII: 7-bit encoding, 128 characters (A-Z, a-z, 0-9, symbols)
- Extended ASCII: 8-bit, 256 characters
- Unicode: 16/32-bit, supports all world languages (UTF-8, UTF-16)
- ISCII: Indian Script Code for Information Interchange
6. Boolean Algebra
๐ Basic Laws
- Identity Law: A + 0 = A, A ยท 1 = A
- Null Law: A + 1 = 1, A ยท 0 = 0
- Idempotent Law: A + A = A, A ยท A = A
- Complement Law: A + A' = 1, A ยท A' = 0
๐ Important Theorems
- De Morgan's Law: (A+B)' = A'ยทB' and (AยทB)' = A' + B'
- Associative Law: A+(B+C) = (A+B)+C
- Distributive Law: Aยท(B+C) = AยทB + AยทC
7. Logic Gates
AND
Output 1 only when all inputs are 1
Symbol: ยท or โง
OR
Output 1 when any input is 1
Symbol: + or โจ
NOT
Inverts the input
Symbol: ' or ยฌ
NAND
AND followed by NOT
Universal Gate
NOR
OR followed by NOT
Universal Gate
XOR
Output 1 when inputs differ
Symbol: โ
XNOR
Output 1 when inputs are same
Symbol: โ
8. Karnaugh Maps (K-Maps)
K-Map is a method to simplify Boolean expressions visually.
- 2-Variable K-Map: 4 cells
- 3-Variable K-Map: 8 cells
- 4-Variable K-Map: 16 cells
- Grouping: Group 1s in powers of 2 (1, 2, 4, 8)
9. Logic Circuits
โ Half Adder
- Adds 2 bits (A + B)
- Outputs: Sum (S), Carry (C)
- S = A โ B, C = A ยท B
โ Full Adder
- Adds 3 bits (A + B + Cin)
- Outputs: Sum (S), Carry (Cout)
- Built using 2 Half Adders + OR gate
๐ Multiplexer
- Selects one input from many
- 2:1 MUX: 2 inputs, 1 select line
- 4:1 MUX: 4 inputs, 2 select lines
๐ Decoder
- Converts encoded input to decoded output
- 2:4 Decoder: 2 inputs, 4 outputs
- 3:8 Decoder: 3 inputs, 8 outputs
10. Frequently Asked Questions
โ What are the 5 generations of computers?
1st: Vacuum Tubes, 2nd: Transistors, 3rd: ICs, 4th: Microprocessors, 5th: ULSI/AI
โ What is De Morgan's Law?
(A+B)' = A'ยทB' and (AยทB)' = A' + B'
โ What are Universal Gates?
NAND and NOR are Universal Gates.
โ What is the difference between ASCII and Unicode?
ASCII supports 128 characters (English), Unicode supports all world languages.