Lecture - 1 (Computer and Web Skills - I)

download Lecture - 1 (Computer and Web Skills - I)

of 59

Transcript of Lecture - 1 (Computer and Web Skills - I)

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    1/59

    Computer And Web Skills - I

    Lecture 1

    Instructor: Qaisar Mehmood

    1

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    2/59

    Computer The word computer comes from the word compute,

    which means, to calculate

    Thereby, a computer is an electronic device that can

    perform arithmetic operations at high speed

    A computer is also called a data processor because it

    can store, process, and retrieve data whenever desired

    2

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    3/59

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    4/59

    Characteristics of Computers Automatic: Given a job, computer can work on it

    automatically without human interventions

    Speed: Computer can perform data processing jobs

    very fast, usually measured in microseconds (10-6),

    nanoseconds (10-9), and picoseconds (10-12)

    Accuracy: Accuracy of a computer is consistently highand the degree of its accuracy depends upon its design.

    Computer errors caused due to incorrect input data or

    unreliable programs are often referred to as Garbage-

    In-Garbage-Out (GIGO)

    Diligence: Computer is free from monotony, tiredness,

    and lack of concentration. It can continuously work for

    hours without creating any error and without grumbling4

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    5/59

    Characteristics of Computers Versatility: Computer is capable of performing almost

    any task, if the task can be reduced to a finite series of

    logical steps

    Power of Remembering: Computer can store and recall

    any amount of information because of its secondary

    storage capability. It forgets or looses certaininformation only when it is asked to do so

    No I.Q.: A computer does only what it is programmed

    to do. It cannot take its own decision in this regard

    No Feelings: Computers are devoid of emotions. Their

    judgement is based on the instructions given to them in

    the form of programs that are written by us (human

    beings)5

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    6/59

    Evolution of Computers Blaise Pascal invented the first mechanical adding

    machine in 1642

    Baron Gottfried Wilhelm von Leibniz invented the firstcalculator for multiplication in 1671

    6

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    7/59

    Evolution of Computers... Keyboard machines originated in the United States

    around 1880

    Around 1880, Herman Hollerith came up with theconcept ofpunched cards that were extensively used as

    input media until late 1970s

    7

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    8/59

    Evolution of Computers Charles Babbage is considered to be the father of modern

    digital computers

    He designed Difference Engine

    in 1822

    He designed afullyautomaticanalytical engine in 1842 for performing basic arithmetic

    functions. Unfortunately he was unable to produce a

    working model of this machine, because the precision

    engineering required to manufacture the machine wasnot available during that period.

    His efforts established a number of principles that are

    fundamental to the design of any digital computer

    8

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    9/59

    Some Well Known Early Computers The Mark I Computer (1937-44)

    The Atanasoff-Berry Computer (1939-42)

    The ENIAC (1943-46) (Electronic Numerical Integrator

    And Calculator)

    The EDVAC (1946-52) (Electronic Discrete Variable

    Automatic Computer) The EDSAC (1947-49) (Electronic Delay Storage

    Automatic Calculator)

    The UNIVAC I (1951) (Universal Automatic Computer)

    9

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    10/59

    Computer Generations

    10

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    11/59

    Computer Generations

    11

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    12/59

    Computer Generations

    12

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    13/59

    Computer Generations

    13

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    14/59

    Electronic Devices Used in Computers of Different Generations

    14

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    15/59

    The Five Basic Operations of a Computer System

    Inputting. The process of entering data and instructions

    into the computer system

    Storing. Saving data and instructions to make themreadily available for initial or additional processing

    whenever required

    Processing. Performing arithmetic operations (add,

    subtract, multiply, divide, etc.) or logical operations

    (comparisons like equal to, less than, greater than, etc.)

    on data to convert them into useful information

    Outputting. The process of producing usefulinformation or results for the user such as a printed

    report or visual display

    Controlling. Directing the manner and sequence in

    which all of the above operations are performed 15

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    16/59

    Basic Organization of a Computer System

    16

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    17/59

    Input UnitAn input unit of a computer system performs the

    following functions:

    1. It accepts (or reads) instructions and data fromoutside world

    2. It converts these instructions and data in computer

    acceptable form

    3. It supplies the converted instructions and data to

    the computer system for further processing

    17

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    18/59

    Output UnitAn output unit of a computer system performs the

    following functions:

    1. It accepts the results produced by the computer,which are in coded form and hence, cannot be

    easily understood by us

    2. It converts these coded results to human

    acceptable (readable) form

    3. It supplies the converted results to outside world

    18

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    19/59

    Storage UnitThe storage unit of a computer system holds (or

    stores) the following :

    1. Data and instructions required for processing(received from input devices)

    2. Intermediate results of processing

    3. Final results of processing, before they are released

    to an output device

    19

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    20/59

    Two Types of Storage Primary storage

    Used to hold running program instructions

    Used to hold data, intermediate results, and results ofongoing processing of job(s)

    Fast in operation

    Small Capacity

    Expensive Volatile (looses data on power dissipation)

    Secondary storage

    Used to hold stored program instructions

    Used to hold data and information of stored jobs Slower than primary storage

    Large Capacity

    Lot cheaper than primary storage

    Retains data even without power 20

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    21/59

    Arithmetic Logic Unit of a computer system is the place

    where the actual executions of instructions takes place

    during processing operation

    Control Unit of a computer system manages and

    coordinates the operations of all other components of

    the computer system

    Arithmetic Logic Unit (ALU)

    21

    Control Unit (CU)

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    22/59

    Central Processing Unit (CPU)

    22

    It is the brain of a computer system

    It is responsible for controlling the operations of all

    other units of a computer system

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    23/59

    The System Concept A system has following three characteristics:

    1. A system has more than one element

    2. All elements of a system are logically related3. All elements of a system are controlled in a manner

    to achieve the system goal

    A computer is a system as it comprises of integrated

    components (input unit, output unit, storage unit, and

    CPU) that work together to perform the steps called for

    in the executing program

    23

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    24/59

    Hardware Hardware refers to the parts of a computer that you can

    see and touch e.g.

    Motherboard

    Central Processing Unit (CPU)

    RAM and ROM

    Disk Drive e.g. HDD, FDD, Flash Drive

    CD ROM Drive, DVD Drive

    24

    S

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    25/59

    Basic Processor & Memory Architecture of a Computer System

    25

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    26/59

    Central Processing Unit (CPU) The brain of a computer system

    Performs all major calculations and comparisons

    Activates and controls the operations of other units of a

    computer system

    Two basic components are

    Control Unit (CU)

    Arithmetic Logic Unit (ALU)

    No other single component of a computer determinesits overall performance as much as the CPU

    26

    ( )

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    27/59

    Control Unit (CU) One of the two basic components of CPU

    Acts as the central nervous system of a computer

    system

    Selects and interprets program instructions, and

    coordinates execution

    Has some special purpose registers and a decoder to

    perform these activities

    27

    i h i i i ( )

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    28/59

    Arithmetic Logic Unit (ALU) One of the two basic components of CPU.

    Actual execution of instructions takes place in ALU

    Has some special purpose registers

    Has necessary circuitry to carry out all the arithmetic

    and logic operations included in the CPU instruction set

    28

    i

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    29/59

    Instruction Set CPU has built-in ability to execute a particular set of

    machine instructions, called its instruction set

    Most CPUs have 200 or more instructions (such as add,

    subtract, compare, etc.) in their instruction set

    CPUs made by different manufacturers have different

    instruction sets

    Manufacturers tend to group their CPUs into families

    having similar instruction sets

    New CPU whose instruction set includes instruction setof its predecessor CPU is said to be backward

    compatible / upward compatible with its predecessor

    29

    R i

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    30/59

    Registers Special memory units, called registers, are used to hold

    information on a temporary basis as the instructions are

    interpreted and executed by the CPU

    Registers are part of the CPU (not main memory) of a

    computer

    The length of a register, sometimes called its word size,equals the number of bits it can store

    With all other parameters being the same, a CPU with

    32-bit registers can process data twice larger than onewith 16-bit registers

    30

    F ti f C l U d R i t

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    31/59

    Functions of Commonly Used Registers

    31

    P S d

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    32/59

    Processor Speed Computer has a built-in system clock that emits millions

    of regularly spaced electric pulses per second (known as

    clock cycles)

    It takes one cycle to perform a basic operation, such as

    moving a byte of data from one memory location to

    another Normally, several clock cycles are required to fetch,

    decode, and execute a single program instruction

    Hence, shorter the clock cycle, faster the processor Clock speed (number of clock cycles per second) is

    measured in Megahertz (106 cycles/sec) or Gigahertz

    (109 cycles/sec)32

    M i M

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    33/59

    Main Memory Every computer has a temporary storage built into the

    computer hardware

    It stores instructions and data of a program mainly

    when the program is being executed by the CPU.

    This temporary storage is known as main memory,

    primary storage, or simply memory.

    Physically, it consists of some chips either on the

    motherboard or on a small circuit board attached to the

    motherboard of a computer It has random access property.

    It is volatile.

    33

    M i M O i ti

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    34/59

    Main Memory Organization

    34

    M i M O i ti

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    35/59

    Main Memory Organization Machines having smaller word-length are slower in

    operation than machines having larger word-length

    A write to a memory location is destructive to its

    previous contents

    A readfrom a memory location is non-destructive to its

    previous contents

    35

    Fi d W d l th M

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    36/59

    Fixed Word-length Memory

    Storage space is always allocated in multiples of word-

    length

    Faster in speed of calculation than variable word-lengthmemory

    Normally used in large scientific computers for gaining

    speed of calculation36

    V i bl W d l th M

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    37/59

    Variable Word-length Memory

    37

    Memor Capacit

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    38/59

    Memory Capacity Memory capacity of a computer is equal to the number

    of bytes that can be stored in its primary storage

    Its units are:

    Kilobytes (KB) : 1024 (210) bytes

    Megabytes (MB) : 1,048,576 (220) bytes

    Gigabytes (GB) : 1,073,741824 (230) bytes

    38

    Random Access Memory (RAM)

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    39/59

    Random Access Memory (RAM) Primary storage of a computer is often referred to as

    RAM because of its random access capability

    RAM chips are volatile memory

    A computers motherboard is designed in a manner that

    the memory capacity can be enhanced by adding more

    memory chips

    The additional RAM chips, which plug into special

    sockets on the motherboard, are known as single-in-line

    memory modules (SIMMs)

    39

    Read Only Memory (ROM)

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    40/59

    Read Only Memory (ROM) ROM a non-volatile memory chip

    Data stored in a ROM can only be read and used they

    cannot be changed

    ROMs are mainly used to store programs and data,

    which do not change and are frequently used. For

    example, system boot program

    40

    Types of ROMs

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    41/59

    Types of ROMs

    41

    Types of ROMs

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    42/59

    Types of ROMs

    42

    Cache Memory

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    43/59

    Cache Memory It is commonly used for minimizing the memory-

    processor speed mismatch.

    It is an extremely fast, small memory between CPU and

    main memory whose access time is closer to the

    processing speed of the CPU.

    It is used to temporarily store very active data andinstructions during processing.

    Cache is pronounced as cash

    43

    Secondary Storage

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    44/59

    Secondary Storage Used in a computer system to overcome the limitations

    of primary storage

    Has virtually unlimited capacity because the cost per bit

    of storage is very low

    Has an operating speed far slower than that of the

    primary storage

    Used to store large volumes of data on a permanent

    basis

    Also known as auxiliary memory

    44

    Classification of Commonly Used Secondary Storage Devices

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    45/59

    Classification of Commonly Used Secondary Storage Devices

    45

    Sequential access Storage Devices

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    46/59

    Sequential-access Storage Devices Arrival at the desired storage location may be preceded

    by sequencing through other locations

    Data can only be retrieved in the same sequence in

    which it is stored

    Access time varies according to the storage location of

    the information being accessed

    Suitable for sequential processing applications where

    most, if not all, of the data records need to be

    processed one after another Magnetic tape is a typical example of such a storage

    device

    46

    Direct access Storage Devices

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    47/59

    Direct-access Storage Devices Devices where any storage location may be selected

    and accessed at random

    Permits access to individual information in a more

    direct or immediate manner

    Approximately equal access time is required for

    accessing information from any storage location

    Suitable for direct processing applications such as

    online ticket booking systems, on-line banking systems

    Magnetic, optical, and magneto-optical disks are typicalexamples of such a storage device

    47

    Magnetic Tape

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    48/59

    Magnetic Tape Commonly used sequential-access secondary storage

    device

    Physically, the tape medium is a plastic ribbon, which is

    usually inch or inch wide and 50 to 2400 feet long

    Plastic ribbon is coated with a magnetizable recording

    material such as iron-oxide or chromium dioxide

    Data are recorded on the tape in the form of tiny

    invisible magnetized and non-magnetized spots

    (representing 1s and 0s) on its coated surface Tape ribbon is stored in reels or a small cartridge or

    cassette

    48

    Magnetic Tape

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    49/59

    Magnetic Tape

    49

    Magnetic Disk

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    50/59

    Magnetic Disk Commonly used direct-access secondary storage device.

    Physically, a magnetic disk is a thin, circular

    plate/platter made of metal or plastic that is usually

    coated on both sides with a magnetizable recording

    material such as iron-oxide

    Data are recorded on the disk in the form of tinyinvisible magnetized and non-magnetized spots

    (representing 1s and 0s) on the coated surfaces of the

    disk

    The disk is stored in a specially designed protective

    envelope or cartridge, or several of them are stacked

    together in a sealed, contamination-free container

    50

    Magnetic Disk

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    51/59

    Magnetic Disk

    51

    Optical Disk

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    52/59

    Optical Disk Consists of a circular disk, which is coated with a thin

    metal or some other material that is highly reflective

    Laser beam technology is used for recording/reading of

    data on the disk

    Also known as laser disk / optical laser disk, due to the

    use of laser beam technology

    Proved to be a promising random access medium for

    high capacity secondary storage because it can store

    extremely large amounts of data in a limited space

    52

    Optical Disk

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    53/59

    Optical Disk

    53

    Memory Storage Devices

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    54/59

    Memory Storage Devices Flash Drive (Pen Drive)

    Relatively new secondary storage device based on

    flash memory, enabling easy transport of data from

    one computer to another

    Compact device of the size of a pen, comes in

    various shapes and stylish designs and may havedifferent added features

    Plug-and-play device that simply plugs into a USB

    (Universal Serial Bus) port of a computer, treated asremovable drive

    Available storage capacities are 8MB, 16MB, 64MB,

    128MB, 256MB, 512MB, 1GB, 2GB, 4GB, and 8GB54

    Memory Storage Devices

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    55/59

    Memory Storage Devices Memory Card (SD/MMC)

    Similar to Flash Drive but in card shape

    Plug-and-play device that simply plugs into a port of

    a computer, treated as removable drive

    Useful in electronic devices like Camera, music

    player

    Available storage capacities are 8MB, 16MB, 64MB,

    128MB, 256MB, 512MB, 1GB, 2GB, 4GB, and 8GB

    55

    Memory Storage Devices

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    56/59

    Memory Storage Devices

    56

    I/O Devices

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    57/59

    I/O Devices Provide means of communication between a computer

    and outer world

    Also known as peripheral devices because they

    surround the CPU and memory of a computer system

    Input devices are used to enter data from the outside

    world into primary storage

    Output devices supply results of processing from

    primary storage to users

    57

    Commonly Used Input Devices

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    58/59

    Commonly Used Input Devices Keyboard devices

    Point-and-draw devices

    Data scanning devices

    Digitizer

    Electronic cards based devices Speech recognition devices

    Vision based devices

    58

    Commonly Used Output Devices

  • 8/3/2019 Lecture - 1 (Computer and Web Skills - I)

    59/59

    Commonly Used Output Devices Monitors

    Printers

    Plotters

    Screen image projector