Computer System

    Computer System

    Reading Mode:

    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

    StageMeaning
    InputEntering data and instructions into the computer
    ProcessingArithmetic and logical operations on the data
    StorageSaving data, programs and results for later use
    OutputPresenting the processed result as information

    Basic Terms

    TermMeaning
    DataRaw, unprocessed facts and figures (e.g., Ram, 102, Male)
    InformationProcessed, meaningful data
    InstructionA single command telling the computer to do a specific task
    ProgramA set of instructions written to perform a task
    HardwarePhysical, touchable parts of a computer
    SoftwareCollection of programs that tell the hardware what to do

    1.1.2 Characteristics of a Computer

    1. Speed – Executes millions to billions of instructions per second; speed is measured in MHz/GHz (clock) or MIPS/FLOPS (performance).
    2. Accuracy – Errors occur mainly from wrong input or wrong programs, not from the machine itself. Hence the rule GIGO – Garbage In, Garbage Out.
    3. Automation – Once given a program, it runs on its own without human intervention.
    4. Storage – Can hold huge amounts of data and retrieve it quickly.
    5. Diligence – No tiredness, boredom or loss of concentration.
    6. Versatility – Can do many different kinds of work (typing, calculation, design, games, communication).
    7. 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

    FieldUses
    HomeEntertainment, learning, communication, smart appliances
    EducationE-learning, presentations, online exams, research, distance learning
    BusinessAccounting, inventory, e-commerce, marketing
    BankingATMs, online/mobile banking, cheque processing, record keeping
    MedicinePatient records, CT/MRI scanners, patient monitoring, telemedicine
    IndustryCAD/CAM, robotics, process control
    GovernmentTax filing, citizen records, e-governance, online services
    CommunicationEmail, video conferencing, social media
    Science & ResearchSimulation, data analysis, space and weather study
    DefenseRadar, missile guidance, surveillance, communication
    EntertainmentMovies, animation, music production, gaming
    Law & OrderCriminal databases, fingerprint matching, CCTV

    1.1.5 Evolution of Computing Devices

    A. Mechanical Era (before electronic computers)

    DeviceInventor / PeriodKey Facts
    AbacusAncient (Mesopotamia/China)Earliest counting aid; beads on rods; the Chinese form has 2 beads above and 5 below the bar
    Napier's BonesJohn Napier, 1617Numbered rods used for multiplication and division; Napier also published logarithms in 1614
    Slide RuleWilliam Oughtred, c. 1622Based on logarithms; used for multiplication/division; an early analog device
    PascalineBlaise Pascal, 1642Gear-and-wheel mechanical calculator; addition and subtraction
    Stepped ReckonerGottfried Leibniz, 1673Improved on Pascal's machine; could also multiply and divide
    Jacquard LoomJoseph Marie Jacquard, 1801Used punched cards to control weaving patterns; inspired later programmable machines
    Difference EngineCharles Babbage, 1822 (design)Mechanical machine to compute and tabulate polynomial tables; never fully completed in his time
    Analytical EngineCharles 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 MachineHerman Hollerith, 1890Punched-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

    MachineYearKey Facts
    Z1 / Z3 (Konrad Zuse)1938 / 1941German machines; the Z3 was an early working programmable computer
    Harvard Mark I1944Designed by Howard Aiken, built with IBM; electromechanical (relays), about 51 feet long
    ABC (Atanasoff–Berry Computer)1937–42By John Atanasoff and Clifford Berry; usually credited as the first electronic digital computer; used binary and capacitor memory
    Colossus1943–44Built by Tommy Flowers at Bletchley Park, UK, to break German codes; special-purpose, electronic
    ENIAC1945–46Mauchly and Eckert; first large general-purpose electronic digital computer; ~17,000 vacuum tubes, ~30 tons
    EDSAC1949Maurice Wilkes, Cambridge; early practical stored-program computer
    EDVACdesigned 1945Based on von Neumann's stored-program design
    UNIVAC I1951Eckert and Mauchly; the first commercially produced computer in the USA

    1.1.6 Generations of Computers

    GenerationPeriod*TechnologyMain FeaturesExamples
    First1940s–1950sVacuum tubesVery large, hot, costly, unreliable; machine language; punched cards/magnetic drumENIAC, EDVAC, UNIVAC
    Secondlate 1950s–early 1960sTransistorsSmaller, faster, cheaper; assembly and early high-level languages (FORTRAN, COBOL); magnetic core memory, magnetic tape/diskIBM 1401, IBM 7090
    Third1964–1971Integrated Circuits (ICs)Smaller and more reliable; keyboard/monitor; operating systems, multiprogramming; high-level languagesIBM 360, PDP-8
    Fourth1971–presentMicroprocessors (LSI/VLSI)Personal computers, GUIs, networking and the Internet; semiconductor memory; 4GLIBM PC, Apple Macintosh
    Fifthpresent and futureULSI, AI, parallel processingArtificial intelligence, natural-language interaction, quantum/nano technologiesAI 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 GenerationFourth Generation
    Uses ICsUses microprocessors (VLSI)
    Smaller than 2G, but still largeVery small; personal computers possible
    Limited networkingNetworking and Internet widely available
    Examples: IBM 360Examples: IBM PC, Macintosh

    1.1.7 Classification of Computers

    A. By Purpose

    General PurposeSpecial Purpose
    Can perform many tasksDesigned for one specific task
    Programs can be installed/changedProgram is built in permanently
    Example: desktop PC, laptopExample: washing machine controller, ATM, traffic light controller

    B. By Working Principle

    BasisAnalogDigitalHybrid
    DataContinuous (physical quantities)Discrete (0s and 1s)Both
    OperationMeasuresCounts / calculatesMeasures and calculates
    AccuracyLowerHigherHigh
    StorageLittle or noneLargeModerate
    ExamplesThermometer, analog speedometer, seismographPC, laptop, smartphoneICU monitors, petrol pump (flow measure + billing)

    C. By Size and Power

    TypeDescriptionExamples/Uses
    SupercomputerFastest, most powerful, very costly; performance measured in FLOPS; thousands of processorsWeather forecasting, nuclear/space research, genome analysis, AI training
    MainframeLarge, multi-user, highly reliable; handles huge transactionsBanks, airlines, government data centers
    MinicomputerMid-range multi-user machine, smaller than mainframeSmall/medium organizations, departmental servers
    MicrocomputerSingle-user personal computer built around a microprocessorDesktop, laptop, notebook, tablet, smartphone

    Types of microcomputers: Desktop, Laptop, Notebook, Tablet, Palmtop/PDA, Smartphone.

    Micro vs Super computer

    MicrocomputerSupercomputer
    Smallest, cheapestLargest and most expensive
    Single userUsed by large research/government organizations
    General office/home useComplex scientific calculations
    Example: PCExample: Cray, Fugaku

    D. By Brand

    IBM PCIBM Compatible
    Made by IBMMade by other companies following the IBM PC architecture
    Branded, usually costlierOften cheaper
    Original designClone/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 ArchitectureComputer Organization
    Describes what the system does: instruction set, data types, addressing modesDescribes how the design is implemented: hardware units, control signals, interconnections
    Programmer's viewHardware designer's view
    Decides functional behaviorRealizes the architecture in hardware

    Layers of a Computer System (bottom to top)

    1. Electronic component layer – transistors, diodes, ICs
    2. Digital logic layer – logic gates
    3. Microprogram layer – firmware stored in ROM
    4. Machine layer – processor, memory, I/O devices
    5. System software layer – operating system, utilities, language processors
    6. Application layer – user programs (word processor, Tally, Photoshop)

    1.2.2 Components of a Computer System

    A computer system = Hardware + Software (+ people/data).

    UnitFunction
    Input unitAccepts data and converts it to machine-readable form
    CPUControl unit + ALU + registers
    Memory/Storage unitPrimary (main) and secondary memory
    Output unitConverts 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.

    BusCarriesDirection
    Address busMemory/device addressesOne-way (CPU → memory/I/O)
    Data busActual dataTwo-way
    Control busControl and timing signals (read, write, clock)Mostly two-way

    1.2.3 Input Devices

    Input devices send data and instructions into the computer.

    DeviceDescription
    KeyboardMain text input device; QWERTY layout; types: 83/84/101/102/104-key
    MousePointing device; types: mechanical, optical, laser, wireless
    JoystickLever for controlling movement; games and simulators
    TouchpadTouch-sensitive surface replacing the mouse on laptops
    TrackballUpside-down mouse; ball rolled with fingers
    Touch screenDisplay that detects finger/stylus touch
    ScannerConverts printed images/documents to digital form
    Barcode readerReads bar patterns using light; used in shops and libraries
    QR code scannerReads two-dimensional QR codes (typically via a phone camera)
    Light penPen-shaped device used to select points on a screen
    OCROptical Character Recognition: converts printed text into editable text
    OMROptical Mark Recognition: detects filled marks/bubbles (e.g., MCQ answer sheets)
    MICRMagnetic Ink Character Recognition: reads magnetic-ink characters on bank cheques
    Microphone / voice inputConverts speech to digital signals; used for voice commands and dictation
    Webcam / digital cameraCaptures images and video

    1.2.4 Memory and Storage

    Memory Units

    UnitEquivalent
    1 Bit0 or 1
    1 Nibble4 bits
    1 Byte8 bits
    1 KB1024 Bytes
    1 MB1024 KB
    1 GB1024 MB
    1 TB1024 GB
    1 PB1024 TB
    1 EB1024 PB
    1 ZB1024 EB
    1 YB1024 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)
    RAMROM
    VolatileNon-volatile
    Read and writeNormally read only
    Stores running programs and dataStores boot/firmware instructions
    Types: SRAM, DRAMTypes: PROM, EPROM, EEPROM
    Larger capacity in modern systemsSmall 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 MemorySecondary Memory
    Directly accessed by CPUAccessed through I/O operations
    FasterSlower
    Smaller capacityLarger capacity
    Costlier per byteCheaper per byte
    RAM, ROM, cacheHDD, 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.
    HDDSSD
    Spinning magnetic plattersFlash memory chips
    SlowerMuch faster
    Noisy, fragile when movingSilent and shock-resistant
    Cheaper per GBCostlier per GB
    Higher power usageLower power usage

    Optical Storage

    Data is read/written using laser light.

    DiscTypical Capacity
    CD≈ 700 MB
    DVD4.7 GB (single layer) / 8.5 GB (dual layer)
    Blu-ray25 GB (single) / 50 GB (dual)
    • CD-ROM (read only), CD-R (write once), CD-RW (rewritable). DVDs have similar variants (DVD-R, DVD-RW).
    CDDVD
    Lower capacity (700 MB)Higher capacity (4.7 GB or more)
    Mainly audio/softwareVideo and large software
    Uses a longer-wavelength red laserUses 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

    TypeDescription
    CRTCathode ray tube; electron beam lights phosphor dots; bulky, heavy, high power use
    LCDLiquid crystal display; thin and light; needs backlight (traditionally fluorescent lamps)
    LEDAn 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).

    CRTLCD
    Bulky and heavyThin and light
    Consumes more powerConsumes less power
    Emits more radiation/heatLower 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 PrinterNon-impact Printer
    Physical striking mechanismNo striking
    Noisy and slowQuiet and faster
    Can make carbon copiesCannot make carbon copies
    Lower qualityHigher quality
    Example: dot matrixExample: inkjet, laser
    PrinterAdvantagesDisadvantages
    Dot matrixCheap to run; multi-part formsNoisy; low quality
    InkjetGood color; affordableCostly ink; slower for volume
    LaserFast, sharp, low cost per pageCostlier 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 SoftwareApplication Software
    Manages hardware and systemPerforms user tasks
    Runs in the backgroundUsed directly by the user
    Needed to run the computerInstalled as required
    Example: Windows, LinuxExample: 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

    1. Define computer. List any five characteristics.
    2. Differentiate between analog and digital computers.
    3. Differentiate between RAM and ROM.
    4. Differentiate between impact and non-impact printers.
    5. Write short notes on cache memory, virtual memory and buffer.

    Long Answer

    1. Explain the generations of computers with their main technologies and features.
    2. Classify computers on the basis of size, purpose and working principle.
    3. Explain the components of a computer system with a block diagram.
    4. What is a bus? Explain its types with a diagram.
    5. Define software. Explain the types of software in detail.
    6. What is a computer virus? List its symptoms and examples.

    End of Unit 1 notes.