Computer System
Computer Science – Grade XI
Unit 1: Computer System
Topics covered: 1.1 Introduction to Computer · 1.2 Computer System and I/O Devices (Check headings against the latest CDC/NEB syllabus before exams.)
1.1 Introduction to Computer
1.1.1 What is a Computer?
The word computer comes from the Latin computare, meaning "to calculate".
Definition: A computer is an electronic device that accepts data and instructions as input, processes them according to a stored program, stores the results, and produces meaningful information as output.
The Information Processing Cycle
| Stage | Meaning |
|---|---|
| Input | Entering data and instructions into the computer |
| Processing | Arithmetic and logical operations on the data |
| Storage | Saving data, programs and results for later use |
| Output | Presenting the processed result as information |
Basic Terms
| Term | Meaning |
|---|---|
| Data | Raw, unprocessed facts and figures (e.g., Ram, 102, Male) |
| Information | Processed, meaningful data |
| Instruction | A single command telling the computer to do a specific task |
| Program | A set of instructions written to perform a task |
| Hardware | Physical, touchable parts of a computer |
| Software | Collection of programs that tell the hardware what to do |
1.1.2 Characteristics of a Computer
- Speed – Executes millions to billions of instructions per second; speed is measured in MHz/GHz (clock) or MIPS/FLOPS (performance).
- Accuracy – Errors occur mainly from wrong input or wrong programs, not from the machine itself. Hence the rule GIGO – Garbage In, Garbage Out.
- Automation – Once given a program, it runs on its own without human intervention.
- Storage – Can hold huge amounts of data and retrieve it quickly.
- Diligence – No tiredness, boredom or loss of concentration.
- Versatility – Can do many different kinds of work (typing, calculation, design, games, communication).
- Reliability – Gives consistent results for the same input and program.
Why is a computer called versatile and accurate? Versatile because the same machine can run word processors, games, banking software and design tools simply by changing the program. Accurate because electronic circuits follow instructions exactly; wrong output comes from wrong input (GIGO), not from calculation mistakes.
1.1.3 Advantages and Limitations
Advantages
- Very fast processing of large volumes of data
- Accurate and consistent
- Stores huge data in small space
- Works continuously without fatigue
- Supports communication, education, entertainment and business
Limitations
- Has no intelligence of its own; it only follows instructions
- Cannot think, feel or make judgments
- Depends on electricity
- Can be a source of health issues, unemployment in some jobs, and security/privacy risks
1.1.4 Application Areas of Computers
| Field | Uses |
|---|---|
| Home | Entertainment, learning, communication, smart appliances |
| Education | E-learning, presentations, online exams, research, distance learning |
| Business | Accounting, inventory, e-commerce, marketing |
| Banking | ATMs, online/mobile banking, cheque processing, record keeping |
| Medicine | Patient records, CT/MRI scanners, patient monitoring, telemedicine |
| Industry | CAD/CAM, robotics, process control |
| Government | Tax filing, citizen records, e-governance, online services |
| Communication | Email, video conferencing, social media |
| Science & Research | Simulation, data analysis, space and weather study |
| Defense | Radar, missile guidance, surveillance, communication |
| Entertainment | Movies, animation, music production, gaming |
| Law & Order | Criminal databases, fingerprint matching, CCTV |
1.1.5 Evolution of Computing Devices
A. Mechanical Era (before electronic computers)
| Device | Inventor / Period | Key Facts |
|---|---|---|
| Abacus | Ancient (Mesopotamia/China) | Earliest counting aid; beads on rods; the Chinese form has 2 beads above and 5 below the bar |
| Napier's Bones | John Napier, 1617 | Numbered rods used for multiplication and division; Napier also published logarithms in 1614 |
| Slide Rule | William Oughtred, c. 1622 | Based on logarithms; used for multiplication/division; an early analog device |
| Pascaline | Blaise Pascal, 1642 | Gear-and-wheel mechanical calculator; addition and subtraction |
| Stepped Reckoner | Gottfried Leibniz, 1673 | Improved on Pascal's machine; could also multiply and divide |
| Jacquard Loom | Joseph Marie Jacquard, 1801 | Used punched cards to control weaving patterns; inspired later programmable machines |
| Difference Engine | Charles Babbage, 1822 (design) | Mechanical machine to compute and tabulate polynomial tables; never fully completed in his time |
| Analytical Engine | Charles Babbage, 1837 (design) | First design of a general-purpose programmable computer with a mill (≈CPU), store (≈memory), input via punched cards, and a printer |
| Tabulating Machine | Herman Hollerith, 1890 | Punched-card machine used in the US census; his company later became part of IBM |
Charles Babbage is called the Father of the Computer because the Analytical Engine already contained the ideas of input, memory, processing and output.
Ada Lovelace (1815–1852) wrote an algorithm for the Analytical Engine in 1843 and is regarded as the first computer programmer. The programming language Ada is named after her.
John von Neumann described the stored-program concept in 1945: both program and data are kept in the same memory, so programs can be changed without rewiring the machine.
B. Electromechanical and Early Electronic Machines
| Machine | Year | Key Facts |
|---|---|---|
| Z1 / Z3 (Konrad Zuse) | 1938 / 1941 | German machines; the Z3 was an early working programmable computer |
| Harvard Mark I | 1944 | Designed by Howard Aiken, built with IBM; electromechanical (relays), about 51 feet long |
| ABC (Atanasoff–Berry Computer) | 1937–42 | By John Atanasoff and Clifford Berry; usually credited as the first electronic digital computer; used binary and capacitor memory |
| Colossus | 1943–44 | Built by Tommy Flowers at Bletchley Park, UK, to break German codes; special-purpose, electronic |
| ENIAC | 1945–46 | Mauchly and Eckert; first large general-purpose electronic digital computer; ~17,000 vacuum tubes, ~30 tons |
| EDSAC | 1949 | Maurice Wilkes, Cambridge; early practical stored-program computer |
| EDVAC | designed 1945 | Based on von Neumann's stored-program design |
| UNIVAC I | 1951 | Eckert and Mauchly; the first commercially produced computer in the USA |
1.1.6 Generations of Computers
| Generation | Period* | Technology | Main Features | Examples |
|---|---|---|---|---|
| First | 1940s–1950s | Vacuum tubes | Very large, hot, costly, unreliable; machine language; punched cards/magnetic drum | ENIAC, EDVAC, UNIVAC |
| Second | late 1950s–early 1960s | Transistors | Smaller, faster, cheaper; assembly and early high-level languages (FORTRAN, COBOL); magnetic core memory, magnetic tape/disk | IBM 1401, IBM 7090 |
| Third | 1964–1971 | Integrated Circuits (ICs) | Smaller and more reliable; keyboard/monitor; operating systems, multiprogramming; high-level languages | IBM 360, PDP-8 |
| Fourth | 1971–present | Microprocessors (LSI/VLSI) | Personal computers, GUIs, networking and the Internet; semiconductor memory; 4GL | IBM PC, Apple Macintosh |
| Fifth | present and future | ULSI, AI, parallel processing | Artificial intelligence, natural-language interaction, quantum/nano technologies | AI systems (developing) |
*Date ranges vary slightly between textbooks; follow the ranges in your prescribed textbook in exams.
The first microprocessor, the Intel 4004, was released in 1971.
3G vs 4G (exam favorite)
| Third Generation | Fourth Generation |
|---|---|
| Uses ICs | Uses microprocessors (VLSI) |
| Smaller than 2G, but still large | Very small; personal computers possible |
| Limited networking | Networking and Internet widely available |
| Examples: IBM 360 | Examples: IBM PC, Macintosh |
1.1.7 Classification of Computers
A. By Purpose
| General Purpose | Special Purpose |
|---|---|
| Can perform many tasks | Designed for one specific task |
| Programs can be installed/changed | Program is built in permanently |
| Example: desktop PC, laptop | Example: washing machine controller, ATM, traffic light controller |
B. By Working Principle
| Basis | Analog | Digital | Hybrid |
|---|---|---|---|
| Data | Continuous (physical quantities) | Discrete (0s and 1s) | Both |
| Operation | Measures | Counts / calculates | Measures and calculates |
| Accuracy | Lower | Higher | High |
| Storage | Little or none | Large | Moderate |
| Examples | Thermometer, analog speedometer, seismograph | PC, laptop, smartphone | ICU monitors, petrol pump (flow measure + billing) |
C. By Size and Power
| Type | Description | Examples/Uses |
|---|---|---|
| Supercomputer | Fastest, most powerful, very costly; performance measured in FLOPS; thousands of processors | Weather forecasting, nuclear/space research, genome analysis, AI training |
| Mainframe | Large, multi-user, highly reliable; handles huge transactions | Banks, airlines, government data centers |
| Minicomputer | Mid-range multi-user machine, smaller than mainframe | Small/medium organizations, departmental servers |
| Microcomputer | Single-user personal computer built around a microprocessor | Desktop, laptop, notebook, tablet, smartphone |
Types of microcomputers: Desktop, Laptop, Notebook, Tablet, Palmtop/PDA, Smartphone.
Micro vs Super computer
| Microcomputer | Supercomputer |
|---|---|
| Smallest, cheapest | Largest and most expensive |
| Single user | Used by large research/government organizations |
| General office/home use | Complex scientific calculations |
| Example: PC | Example: Cray, Fugaku |
D. By Brand
| IBM PC | IBM Compatible |
|---|---|
| Made by IBM | Made by other companies following the IBM PC architecture |
| Branded, usually costlier | Often cheaper |
| Original design | Clone/assembled systems |
Apple/Macintosh computers use a different architecture and operating system from IBM-compatible PCs.
E. By Model (historical)
- XT (Extended Technology): early IBM PC with 8088 processor (~4.77 MHz); text-based.
- AT (Advanced Technology): more powerful, 80286 and later; ran GUI software.
- PS/2 (Personal System/2): IBM line from 1987 with improved hardware such as the PS/2 mouse/keyboard ports.
1.1.8 Mobile Computing
Mobile computing is the use of portable computing devices that can access data and services wirelessly while the user is on the move.
Three components: mobile communication, mobile hardware, mobile software.
Characteristics
- Portable and lightweight
- Touch-screen input with on-screen keyboard and voice input
- Wireless connectivity (Wi-Fi, Bluetooth, mobile data)
- Limited battery, processing power and storage compared with desktops
- Runs mobile operating systems (Android, iOS)
- Often has GPS, camera and sensors
Examples: smartphones, tablets, smartwatches, e-readers, laptops.
1.2 Computer System and I/O Devices
1.2.1 Computer Architecture and Organization
| Computer Architecture | Computer Organization |
|---|---|
| Describes what the system does: instruction set, data types, addressing modes | Describes how the design is implemented: hardware units, control signals, interconnections |
| Programmer's view | Hardware designer's view |
| Decides functional behavior | Realizes the architecture in hardware |
Layers of a Computer System (bottom to top)
- Electronic component layer – transistors, diodes, ICs
- Digital logic layer – logic gates
- Microprogram layer – firmware stored in ROM
- Machine layer – processor, memory, I/O devices
- System software layer – operating system, utilities, language processors
- Application layer – user programs (word processor, Tally, Photoshop)
1.2.2 Components of a Computer System
A computer system = Hardware + Software (+ people/data).
| Unit | Function |
|---|---|
| Input unit | Accepts data and converts it to machine-readable form |
| CPU | Control unit + ALU + registers |
| Memory/Storage unit | Primary (main) and secondary memory |
| Output unit | Converts results into human-readable form |
Central Processing Unit (CPU / Microprocessor)
The CPU fetches, decodes and executes instructions (fetch–decode–execute cycle).
- Control Unit (CU): directs and coordinates all operations; fetches and decodes instructions and sends control signals.
- Arithmetic Logic Unit (ALU): performs arithmetic (+, −, ×, ÷) and logical (AND, OR, NOT, comparisons) operations.
- Registers: tiny, extremely fast storage inside the CPU that hold data and instructions currently being processed.
Buses
A bus is a set of wires that carries signals between computer components.
| Bus | Carries | Direction |
|---|---|---|
| Address bus | Memory/device addresses | One-way (CPU → memory/I/O) |
| Data bus | Actual data | Two-way |
| Control bus | Control and timing signals (read, write, clock) | Mostly two-way |
1.2.3 Input Devices
Input devices send data and instructions into the computer.
| Device | Description |
|---|---|
| Keyboard | Main text input device; QWERTY layout; types: 83/84/101/102/104-key |
| Mouse | Pointing device; types: mechanical, optical, laser, wireless |
| Joystick | Lever for controlling movement; games and simulators |
| Touchpad | Touch-sensitive surface replacing the mouse on laptops |
| Trackball | Upside-down mouse; ball rolled with fingers |
| Touch screen | Display that detects finger/stylus touch |
| Scanner | Converts printed images/documents to digital form |
| Barcode reader | Reads bar patterns using light; used in shops and libraries |
| QR code scanner | Reads two-dimensional QR codes (typically via a phone camera) |
| Light pen | Pen-shaped device used to select points on a screen |
| OCR | Optical Character Recognition: converts printed text into editable text |
| OMR | Optical Mark Recognition: detects filled marks/bubbles (e.g., MCQ answer sheets) |
| MICR | Magnetic Ink Character Recognition: reads magnetic-ink characters on bank cheques |
| Microphone / voice input | Converts speech to digital signals; used for voice commands and dictation |
| Webcam / digital camera | Captures images and video |
1.2.4 Memory and Storage
Memory Units
| Unit | Equivalent |
|---|---|
| 1 Bit | 0 or 1 |
| 1 Nibble | 4 bits |
| 1 Byte | 8 bits |
| 1 KB | 1024 Bytes |
| 1 MB | 1024 KB |
| 1 GB | 1024 MB |
| 1 TB | 1024 GB |
| 1 PB | 1024 TB |
| 1 EB | 1024 PB |
| 1 ZB | 1024 EB |
| 1 YB | 1024 ZB |
Primary Memory (Main Memory)
Directly accessed by the CPU; faster but smaller capacity.
RAM (Random Access Memory)
- Read/write, volatile (loses data when power is off)
- Holds the programs and data currently in use
- SRAM (static): faster, costlier, used for cache memory
- DRAM (dynamic): slower, cheaper, needs constant refreshing, used as main memory
ROM (Read Only Memory)
- Non-volatile; stores permanent instructions such as the boot program (firmware/BIOS)
- Types: PROM (programmable once), EPROM (erased with UV light and reprogrammed), EEPROM (erased electrically)
| RAM | ROM |
|---|---|
| Volatile | Non-volatile |
| Read and write | Normally read only |
| Stores running programs and data | Stores boot/firmware instructions |
| Types: SRAM, DRAM | Types: PROM, EPROM, EEPROM |
| Larger capacity in modern systems | Small capacity |
Special Types of Memory
- Cache memory: Very fast memory between the CPU and RAM that stores frequently used data and instructions, reducing CPU waiting time.
- Registers: Fastest memory, inside the CPU.
- Virtual memory: A technique where part of the hard disk is used as an extension of RAM when RAM is insufficient, letting larger programs run (but slower than real RAM).
- Buffer: A temporary storage area (usually in RAM) used to hold data while it moves between devices of different speeds, e.g., between the CPU and a printer.
Secondary Memory (Storage)
Non-volatile, large capacity, cheaper per byte, slower than primary memory; not directly accessed by the CPU.
| Primary Memory | Secondary Memory |
|---|---|
| Directly accessed by CPU | Accessed through I/O operations |
| Faster | Slower |
| Smaller capacity | Larger capacity |
| Costlier per byte | Cheaper per byte |
| RAM, ROM, cache | HDD, SSD, CD/DVD, pen drive |
Magnetic Storage
- Magnetic tape: Sequential access; used for backups and archives.
- Hard Disk Drive (HDD): Rotating magnetic platters divided into tracks and sectors; speed rated in RPM (commonly 5400/7200).
Solid-State Storage
- SSD (Solid State Drive): Flash memory chips, no moving parts.
- Pen drive (USB flash drive): Portable flash storage.
- Memory cards (SD/microSD) also use flash memory.
| HDD | SSD |
|---|---|
| Spinning magnetic platters | Flash memory chips |
| Slower | Much faster |
| Noisy, fragile when moving | Silent and shock-resistant |
| Cheaper per GB | Costlier per GB |
| Higher power usage | Lower power usage |
Optical Storage
Data is read/written using laser light.
| Disc | Typical Capacity |
|---|---|
| CD | ≈ 700 MB |
| DVD | 4.7 GB (single layer) / 8.5 GB (dual layer) |
| Blu-ray | 25 GB (single) / 50 GB (dual) |
- CD-ROM (read only), CD-R (write once), CD-RW (rewritable). DVDs have similar variants (DVD-R, DVD-RW).
| CD | DVD |
|---|---|
| Lower capacity (700 MB) | Higher capacity (4.7 GB or more) |
| Mainly audio/software | Video and large software |
| Uses a longer-wavelength red laser | Uses a shorter-wavelength red laser (denser pits) |
1.2.5 Output Devices
Output devices present processed information to users.
- Soft copy: temporary, displayed on screen or played through speakers.
- Hard copy: permanent, printed on paper or other material.
Monitors
| Type | Description |
|---|---|
| CRT | Cathode ray tube; electron beam lights phosphor dots; bulky, heavy, high power use |
| LCD | Liquid crystal display; thin and light; needs backlight (traditionally fluorescent lamps) |
| LED | An LCD that uses LED backlighting; thinner, brighter, more energy-efficient |
Screen quality terms: Resolution (number of pixels, e.g., 1920×1080), Dot pitch (distance between pixels; smaller is sharper), Refresh rate (times the screen is redrawn per second, in Hz).
| CRT | LCD |
|---|---|
| Bulky and heavy | Thin and light |
| Consumes more power | Consumes less power |
| Emits more radiation/heat | Lower emission |
| Cheaper (now obsolete) | Costlier than CRT |
Printers
Impact printers print by striking a head/pins against an ink ribbon.
- Dot matrix printer (pin head forming dot characters)
- Daisy wheel printer (fully formed characters on a wheel)
- Line printers (drum, chain, band): print a whole line at once
Non-impact printers print without striking.
- Inkjet printer: sprays tiny drops of ink; CMYK cartridges for color.
- Laser printer: laser and toner (powder) fused by heat; fast and high quality.
- Thermal printer: heat on special paper (receipts).
- 3D printer: builds physical objects layer by layer from a digital design (additive manufacturing).
| Impact Printer | Non-impact Printer |
|---|---|
| Physical striking mechanism | No striking |
| Noisy and slow | Quiet and faster |
| Can make carbon copies | Cannot make carbon copies |
| Lower quality | Higher quality |
| Example: dot matrix | Example: inkjet, laser |
| Printer | Advantages | Disadvantages |
|---|---|---|
| Dot matrix | Cheap to run; multi-part forms | Noisy; low quality |
| Inkjet | Good color; affordable | Costly ink; slower for volume |
| Laser | Fast, sharp, low cost per page | Costlier to buy; toner is expensive |
Print speed is measured in CPS (characters per second), LPM (lines per minute) and PPM (pages per minute). Print quality is measured in DPI.
Other Output Devices
- Plotter: draws large, high-precision drawings such as maps and engineering designs (pen, electrostatic, inkjet types).
- Speakers and headphones: audio output.
- Projector: displays screen content on a large surface.
1.2.6 Hardware Interfaces / Ports
A port is a connecting point between the computer and external devices. Common ports: USB, HDMI, VGA, Ethernet (LAN), audio jack, serial and parallel (older), Thunderbolt/USB-C.
1.2.7 Computer Software
Software is a set of programs and data that instruct the hardware.
System Software
Software that manages the hardware and provides a platform for other software.
- Operating System (OS): manages memory, files, processes and devices (Windows, Linux, macOS, Android).
- Utility software: maintenance tools such as antivirus, backup, disk cleanup, compression.
- Language processors: translate programs into machine code.
- Assembler – assembly language → machine code
- Compiler – translates the entire high-level program at once
- Interpreter – translates and runs line by line
- Device drivers: let the OS communicate with hardware.
Application Software
Software that helps users perform specific tasks.
- General-purpose (packaged) software: word processors, spreadsheets, presentation software, database software, web browsers.
- Tailored (custom) software: developed for a specific organization's needs, such as a hospital management system or a payroll system.
- Open-source / proprietary / freeware / shareware: categories based on licensing.
| System Software | Application Software |
|---|---|
| Manages hardware and system | Performs user tasks |
| Runs in the background | Used directly by the user |
| Needed to run the computer | Installed as required |
| Example: Windows, Linux | Example: MS Word, Photoshop |
1.2.8 Computer Virus (Brief)
A computer virus is a malicious program that attaches itself to files or programs, replicates, and spreads to other files or computers, often damaging data or slowing the system.
Common symptoms: slow performance, frequent crashes or restarts, unexpected pop-ups, missing or corrupted files, unknown programs, disabled antivirus, unusually high disk or network activity.
Examples/types: boot sector virus, file infector, macro virus, worm, Trojan horse, ransomware (the last three are technically separate kinds of malware).
Prevention: use updated antivirus, avoid unknown email attachments and pirated software, keep the OS updated, scan USB drives, take regular backups.
Quick Revision: Important Short Notes
- Microprocessor: a single-chip CPU (e.g., Intel 4004, 1971).
- Hybrid computer: combines analog measurement and digital computing.
- Mainframe: large multi-user computer for bulk transaction processing.
- Supercomputer: the fastest computers, used for complex scientific modeling.
- Charles Babbage: Father of the Computer (Analytical Engine).
- Ada Lovelace: first computer programmer.
- John von Neumann: stored-program concept.
- ENIAC: first large general-purpose electronic digital computer.
- UNIVAC I: first commercial computer in the USA.
- GIGO: wrong input produces wrong output.
Practice Questions
Short Answer
- Define computer. List any five characteristics.
- Differentiate between analog and digital computers.
- Differentiate between RAM and ROM.
- Differentiate between impact and non-impact printers.
- Write short notes on cache memory, virtual memory and buffer.
Long Answer
- Explain the generations of computers with their main technologies and features.
- Classify computers on the basis of size, purpose and working principle.
- Explain the components of a computer system with a block diagram.
- What is a bus? Explain its types with a diagram.
- Define software. Explain the types of software in detail.
- What is a computer virus? List its symptoms and examples.
End of Unit 1 notes.