1.3 Hardware n Software Workbook by Inqilab Patel

109
O Level & IGCSE Computer Science Hardware & Software Workbook Compiled by Inqilab Ruknuddin Patel MCS

description

comp

Transcript of 1.3 Hardware n Software Workbook by Inqilab Patel

  • O Level & IGCSE Computer Science

    Hardware & Software

    Workbook

    Compiled by

    Inqilab Ruknuddin Patel MCS

  • Computer Science with Inqilab Patel Page 2 ruknuddin.com

    Contents Syllabus content & assessment at a glance ............................................................................................3

    1.3 Hardware and software ............................................................................................................................5

    1.3.1 Logic Gates .........................................................................................................................................5

    Examination Questions ...........................................................................................................................9

    1.3.2 Computer architecture and the fetch-execute cycle ...................................................................... 20

    Examination Questions ........................................................................................................................ 25

    1.3.3 & 4 Input & Output Devices ............................................................................................................ 31

    Examination Questions ........................................................................................................................ 45

    1.3.5 Memory, storage devices and media .................................................................................................. 60

    Examination Questions ........................................................................................................................ 74

    1.3.6 Operating systems ........................................................................................................................ 101

    Examination Questions ...................................................................................................................... 104

    1.3.7 High- and low-level languages and their translators .................................................................... 107

    1.2.2 ........................................................................................................................................................... 109

  • Computer Science with Inqilab Patel Page 3 ruknuddin.com

    Syllabus content & assessment at a glance

    Assessment at a glance

    Components Weighting

    Paper 1 Theory 1 hour 45 minutes

    This written paper contains short-answer and structured questions. All

    questions are compulsory.

    No calculators are permitted in this paper. 75 marks

    Externally assessed.

    60%

    Paper 2 Problem-solving and Programming 1 hour 45 minutes

    This written paper contains short-answer and structured questions. All

    questions are compulsory. 20 of the marks for this paper are from questions

    set on the pre-release material. 1

    No calculators are permitted in this paper. 50 marks

    Externally assessed.

    40%

    Sections Topics

    Section 1

    Theory of Computer Science

    1.1 Data representation

    1.1.1 Binary systems

    1.1.2 Hexadecimal

    1.1.3 Data storage

    1.2 Communication and Internet technologies

    1.2.1 Data transmission

    1.2.2 Security aspects

    1.2.3 Internet principles of operation

    1.3 Hardware and software

    1.3.1 Logic gates

    1.3.2Computer architecture and the fetch-execute cycle

    1.3.3 Input devices

    1.3.4 Output devices

    1.3.5 Memory, storage devices and media

    1.3.6 Operating systems

    1.3.7High- and low-level languages and their

    translators

    1.4 Security

    1.5 Ethics

    Section 2 Practical Problem-solving and

    Programming

    2.1 Algorithm design and problem-solving

    2.1.1 Problem-solving and design

    2.1.2 Pseudocode and flowcharts

    2.2 Programming

    2.2.1 Programming concepts

    2.2.2 Data structures; arrays

    2.3 Databases

  • Computer Science with Inqilab Patel Page 4 ruknuddin.com

    Paper 1 Theory of Computer Science

  • Computer Science with Inqilab Patel Page 5 ruknuddin.com

    1.3 Hardware and software

    1.3.1 Logic Gates

    Many electronic circuits have to make decisions. They look at two or more inputs and

    use these to determine the outputs from the circuit. The process of doing this uses

    electronic logic, which is based on digital switches called Logical Gates.

    Logic gates are devices that can combine multiple inputs at independent logic levels and

    come up with an output accordingly. They are used by implementing Boolean algebra.

    Logic gates have two or more input and one output except NOT Gate which has one

    input and one output.

    The most common Logical Gates are given below:

    For example, The most obvious use is for simple control. Imagine designing a washing

    machine so that the water only turns on when the washing is loaded (logic-1), the door is

    closed (logic-1) but the clothes are not yet wet (logic-0). This can be done by ANDing the

    first two conditions, and inverting the third. Now, AND these together, and you get a high

    only when all three conditions are satisfied.

    Candidates should be able to: Use logic gates to create electronic circuits Understand and define the functions of NOT, AND, OR, NAND, NOR and

    XOR (eor) gates, including the binary output produced from all the possible binary inputs (all gates, except the NOT gate, will have 2 inputs only)

    Draw truth tables and recognise a logic gate from its truth table Recognise and use the following standard symbols used to represent logic

    gates:

    Produce truth tables for given logic circuits, for example: a b c output 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

    Produce a logic circuit to solve a given problem or to implement a given written logic statement, such as IF (switch A is NOT on) OR (switch B is on AND switch C is NOT on) then alarm, X, sounds

  • Computer Science with Inqilab Patel Page 6 ruknuddin.com

    Two or more logic gates can be connected to produce a logic circuit with one or more

    outputs from two or more inputs.

    Truth Tables:

    A truth table is used to show the output of a logic gate or circuit for all possible

    combinations of input values.

    Usually the binary values are used , 1 and 0, as shorthand for True and False.

    The truth table for a two-input gate needs four rows (22=4) while for 3-input gate needs

    eight rows (23=16).

    1) NOT Gate (Inverter):

    A NOT gate or an inverter is the simplest kind of logic gate. Its function is to give the

    opposite output to its input - if it gets a high(1), it gives a low (0), and vice versa.

    This is equivalent to saying that the output is not the input.

    The output (called X) is true (i.e. 1 or ON) when the INPUT A is NOT TRUE (i.e. 0 or

    OFF).

    2) AND Gate

    An AND gate gives an output 1 only when both inputs are 1. If one or more inputs are 0,

    then the output is also 0.

    AND Gate

    Input A Input B Output x

    0 0 0

    0 1 0

    1 0 0

    1 1 1

    The output (called X) is only true (i.e. 1 or ON) if the (INPUT A AND INPUT B) are both

    true (i.e. 1 or ON).

    3) OR Gate

    An OR gate gives a high (1) output if any input is high (1). If all inputs are low (0), then

    the output is low (0).

    NOT Gate

    Input A Output A

    0 1

    1 0

    OR Gate

    Input Input Output x

  • Computer Science with Inqilab Patel Page 7 ruknuddin.com

    The output (called X) is true (i.e. 1 or ON) if the (INPUT A OR INPUT B) are true (i.e. 1

    or ON).

    4) AND Gate

    This NOT AND combination is shortened to just NAND. A NAND gate gives a 0 output

    only when both inputs are 1. If one or more inputs is 0, then the output is 1.

    The output (called X) is true (i.e. 1 or ON) if

    (INPUT A AND INPUT B) are NOT both true

    (i.e. 1 or ON).

    5) NOR Gate

    This NOT OR combination is shortened to just NOR. A NOR gate gives a 1 output only if

    no inputs are 1. If an input is 0, then the output

    is 0.

    NOR Gate

    Input

    A

    Input

    B

    A OR B OUTPUT

    X

    0 0 0 1

    0 1 1 0

    1 0 1 0

    1 1 1 0

    6) XOR Gate

    The 'Exclusive-OR' gate is a circuit which will give a 1 output if either, but not both, of

    its two inputs are 1. If both inputs are same then output will be 0 else output will be 1

    A B

    0 0 0

    0 1 1

    1 0 1

    1 1 1

    NAND Gate

    Input A Input

    B

    A AND B OUTPUT X

    0 0 0 1

    0 1 0 1

    1 0 0 1

    1 1 1 0

    XOR Gate

    Input

    A

    Input

    B

    Output x

    0 0 0

    0 1 1

  • Computer Science with Inqilab Patel Page 8 ruknuddin.com

    Truth tables

    A truth table is used to show the output of a logic gate or circuit for all possible

    combinations of input values; we usually use the binary values, 1 and 0, as shorthand for

    True and False.

    The truth table for a two-input gate needs four rows.

    Combinational logic circuits with two inputs

    Two or more logic gates can be connected to produce a logic circuit with one or more

    outputs from two or more inputs. A logic circuit can process logical expressions and

    binary numbers.

    When producing a truth table for a logic circuit:

    it is helpful to add a column for each intermediate output as well as for the final output

    as for a single logic gate with two inputs, a logic circuit with two inputs needs four rows.

    Combinational logic circuits with three inputs

    We only need to be able to produce a truth table for a logic circuit with a maximum of

    three inputs and six gates.

    The truth table for a three-input logic circuit needs eight rows.

    Designing simple logic circuits

    Sometimes, it is cheaper to design and hard-wire a logic circuit for a simple automated

    system that only requires a fixed pattern of output depending on the current values of the

    inputs, than to program a microcontroller or computer.

    We can use the words AND, OR, NOT, NAND and NAND as operators in a logical

    equation, such as L = (A AND B) OR NOT B. We use brackets to indicate that the logical

    operation within the brackets takes priority.

    We can design a logic circuit to solve a written statement of a logical problem. First, we

    rewrite the statement using brackets to clarify the binary value of each variable and the

    priority of the logical operations. Then we can write the logical equation. From the logical

    equation, if not an earlier stage in the rewriting process, it should be possible to draw the

    required logic circuit and a truth table to confirm that it has the required behaviour.

    Testing logic circuits

    We have seen how to use a truth table to check whether a logic circuit has solved a

    given problem, rather as we use a trace table for dry running a fl owchart or pseudocode

    algorithm. We can also check that a logic circuit solves the problem by building the circuit

    using logic simulation soft ware or electronic circuitry, with appropriate attention to safety.

    1 0 1

    1 1 0

  • Computer Science with Inqilab Patel Page 9 ruknuddin.com

    Examination Questions

    Q1) Identify each of the following gates from truth table:

    INPUT 1 INPUT 2 OUTPUT

    0 0 0

    0 1 1

    1 0 1

    1 1 1

    INPUT 1 INPUT

    2

    OUTPUT

    0 0 1

    0 1 0

    1 0 0

    1 1 0

    INPUT OUTPUT

    0 1

    1 0

    Q2) Complete the following truth table

    INPUT 1 INPUT 2 OUTPUT

    0 0 0

    0 1 0

    1 0 0

    1 1 1

    INPUT 1 INPUT 2 OUTPUT

    0 0 1

    0 1 1

    1 0 1

    1 1 0

    INPUT 1 INPUT 2 OUTPUT

    0 0

    0 1

    1 0

    1 1

    INPUT 1 INPUT 2 OUTPUT

    0 0

    0 1

    1 0

    1 1

  • Computer Science with Inqilab Patel Page 10 ruknuddin.com

    Q3) Draw the logic circuit required to fulfil the following statements:

    a Output C = (NOT(A AND B)) AND (A OR B)

    b Light (L) is on if Switch A is on OR (Switch B is on AND Input C is off.

    Q4)Copy and complete the truth tables for the following logic circuits:

    INPUT 1 INPUT 2 OUTPUT

    0 0

    0 1

    1 0

    1 1

    INPUT 1 INPUT 2 OUTPUT

    0 0

    0 1

    1 0

    1 1

  • Computer Science with Inqilab Patel Page 11 ruknuddin.com

    Q5) Specimen 2015 P1 (Q3)

    An alarm, Y, sends a signal (Y = 1) when certain fault conditions in a chemical process

    are detected. The inputs are:

    The alarm, Y, returns a value of 1 if:

    either temperature >= 120oC AND stirrer bar is OFF

    or acidity > 5 AND temperature < 120oC

    (a)Draw the logic circuit for the above system using these logic gates. [5]

    INPUT 1 INPUT 2 OUTPUT

    0 0

    0 1

    1 0

    1 1

    A T S Y 1 1 1 1 1 0 1 0 1 1 0 0 0 1 1 0 1 0 0 0 1 0 0 0

  • Computer Science with Inqilab Patel Page 12 ruknuddin.com

    (b)Complete the truth table for this alarm system. [4]

    Q6) Winter 2014 P12-13 13 (a) Complete the truth table for the following logic circuit:

    (b) Re-draw the logic circuit shown opposite, using NAND and NOR gates only

    (c) Write a logic statement that describes the following logic circuit:

    ...................................................................................................................................................

    ...................................................................................................................................................

    ...............................................................................................................................................[3]

    (c) Write a logic statement that describes the following logic circuit:

    ...........................................................................................................................................................

    ................................................................................................................................................ [3]

    A

    B C Working

    X

    0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

    A B C Working X 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

  • Computer Science with Inqilab Patel Page 13 ruknuddin.com

    Q7) Summer 2014 P11 (Q7)

    (a) Draw the logic circuit for the logic statement:

    X = 1 if (L is NOT 1 AND F = 1) OR (F is NOT 1 AND A is 1) [5]

    (b) Complete the truth table for the above system [4]

    L F A Working X 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

    Q8) Summer 2014 P12 (Q17)

    17 (a) Complete the truth table for the following logic circuit: [4]

    (b) Write the logic statement to describe the following logic circuit: [3]

    A B C Working X 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1

  • Computer Science with Inqilab Patel Page 14 ruknuddin.com

    Q9) Winter 2013 P12 (Q10)

    (a) (i) Complete the truth table for the following logic circuit which is made up of NOR

    gates only.

    A B Working X 0 0 0 1 1 0 1 1

    (ii) What single logic gate has the same function as the above circuit? [1]

    (b) Complete the truth table for the following logic circuit.

  • Computer Science with Inqilab Patel Page 15 ruknuddin.com

    A B C Working X 1 1 1 1 1 0 1 0 1 1 0 0 0 1 1 0 1 0 0 0 1 0 0 0

    Q10) Summer 2013 P11 (Q10)

    (a) (i) Complete the truth table for the logic circuit which is made up of NAND gates

    only.

    A B Working X 1 1 1 0 0 1 0 0

    (ii) What single logic gate has the same function as the above logic circuit? [1]

    (b) (i) Complete the truth table for the logic circuit.

    A B C Working X 1 1 1 1 1 0 1 0 1 1 0 0 0 1 1 0 1 0 0 0 1 0 0 0

  • Computer Science with Inqilab Patel Page 16 ruknuddin.com

    (ii) What could replace the whole logic circuit? ..........................................................................................................................................................

    .................................................................................................................................................... [1]

    Q11) Summer 2013 P12 (Q15)

    (a) Draw the logic circuit represented by the logic statement:

    X = 1 if (B is NOT 1 AND S is NOT 1) OR (P is NOT 1 AND S is 1)

    [6]

    b) Complete the truth table for the above logic statement.

    [4]

    Q12) Winter 2012 P12 (Q11)

    An alarm sounds when certain conditions occur in a nuclear reactor.

    The output, X, of a logic circuit that drives the alarm must have a value of 1 if:

    either carbon dioxide pressure too low and temperature < = 300C

    or water pressure > 10 bar and temperature > 300C

    The inputs to the system are:

  • Computer Science with Inqilab Patel Page 17 ruknuddin.com

    (a) Draw the required logic circuit using AND, OR and NOT gates only.

    [5]

    (b) Complete the truth table for the above system. [4]

    P T W X 1 1 1 1 1 0 1 0 1 1 0 0 0 1 1 0 1 0 0 0 1 0 0 0

    Q13) Winter 2012 P13 (Q15)

    15 (a) Complete the truth table for the following

    logic circuit: [4]

    (b) The above logic circuit uses AND, OR and NOT gates.

    Name another logic gate and complete its truth table. [3]

    Name : _______________________________________________

    \

    A B C X 1 1 1 1 1 0 1 0 1 1 0 0 0 1 1 0 1 0 0 0 1 0 0 0

  • Computer Science with Inqilab Patel Page 18 ruknuddin.com

    Q14) Summer 2012 P11 (Q12)

    (a) (i) Complete the truth table for the following logic circuit, which is made up of NAND

    gates:

    (ii) What single logic gate has the same function as the above logic circuit?

    ..................................................................................................................................................... [1]

    b) Complete the truth table for the following logic circuit:

    Q15) Specimen 2011 P1 (Q11)

    Draw the truth table for the following logic network: [4]

    A B C X 1 1 1 1 1 0 1 0 1 1 0 0 0 1 1 0 1 0 0 0 1 0 0 0

    A B C X 1 1 1 1 1 0 1 0 1 1 0 0 0 1 1 0 1 0 0 0 1 0 0 0

  • Computer Science with Inqilab Patel Page 19 ruknuddin.com

    Q16) Specimen 2011 P1 (Q12)

    Draw a logic network and truth table for the following logic problem:

    A sprinkler (S) is ON if

    either temperature alarm (T) is ON and cooler alarm (C) is ON

    or vent alarm (V) is OFF and cooler alarm (C) is ON [9]

    Working:

    ____________________________________________________________________

    ___________________________________________________________________ [2]

    Logic Network:

    Truth Table:

    T C V S 1 1 1 1 1 0 1 0 1 1 0 0 0 1 1 0 1 0 0 0 1 0 0 0

  • Computer Science with Inqilab Patel Page 20 ruknuddin.com

    1.3.2 Computer architecture and the fetch-execute cycle

    Courtesy to http://web.eecs.utk.edu/research/cs100modules/module1/index.html

    Von Neumann Architecture

    The idea about how computers should be built was proposed by John von Neumann in

    1945. This idea is called the von Neumann Architecture or Model. This is still the basis

    for computers today. Using these four components, a von Neumann computer will

    execute a series of instructions, called a program, which are stored in the computer's

    memory. This is called the stored program concept.

    The components of von Neumann Architecture is:

    1. Input/Output (I/O)

    2. Memory

    3. A Control Unit

    4. An Arithmetic Logic Unit (ALU)

    Input/Output (I/O) Devices

    The Input/Output (I/O) components of a computer are hardware

    devices that are responsible for getting data from the computer

    to the user or from the user to the computer.

    Data going from the user to the computer is called "input." The

    two main input devices are the mouse and the keyboard.

    Output devices are used to transmit data from the computer's

    memory to the user. The two output devices almost every

    computer system has are the monitor and the printer.

    Memory Unit

    Computer has several types of memory. Memory unit in the Von Neumann model is the

    main memory, also called RAM or Random Access Memory.

    Main memory is used by the computer for storing a program and its data while the

    program is running. What distinguishes a computer from a calculator is the ability to run

    a stored program; main memory allows the computer to do that.

    RAM can be thought of as a sequence of boxes, called cells, each of which can hold a

    certain amount of data.

    The remaining three components of the von Neumann model of a computer are found

    inside the Processor.

    1.3.2 Computer architecture and the fetch-execute cycle show understanding of the basic Von Neumann model for a computer system and the stored program concept (program instructions and data are stored in main memory and instructions are fetched and executed one after another) describe the stages of the fetch-execute cycle

  • Computer Science with Inqilab Patel Page 21 ruknuddin.com

    Control Unit

    The control unit controls the sequencing and timing of all operations. It contains a

    "clock," that is actually a quartz crystal that vibrates million times per second. The clock

    emits an electronic signal for each vibration. Each separate operation is synchronized to

    the clock signal. For example 1st pc operates at 4.7 MHz means 4.7 million instructions

    per second.

    The functions of CU are given below:

    Interprets and carries out instruction of program.

    Selects program statements from memory.

    Moves these instructions to instruction registers

    Carries out instructions

    Directs flow of data between components of CPU and to and from other

    devices.

    Arithmetic & Logic Unit (ALU)

    Arithmetic unit perform arithmetical operations like

    +, -, *, and / while logical unit are to compare two

    quantities. Logical operations are important in

    computer programming.

    ALU can be thought of as being similar to a

    calculator, except that, in addition to normal math,

    it can also do logical (true/false) operations.

    The functions of ALU are given below:

    The arithmetic unit carries out arithmetic like

    addition, division.

    The logic unit enables the processor to make

    comparison like =, and logical decisions

    like AND, OR, NOT.

    The arithmetic logic unit carries out

    communication with peripheral devices.

    It also carries out bit shifting operation.

    Register:

    Registers are Immediate Access Store (IAS) located on the CPU, and used temporarily

    for storing data. Because the registers are close to the ALU, they are made out of fast

    memory, efficiently speeding up calculations.

    There are 14 registers. Some examples are

    a) Program Counter (PC) - an incrementing counter that keeps track of the next

    memory address of the instruction that is to be executed once the execution of the

    current instruction is completed.

    b) Memory Address Register (MAR) - the address in main memory that is currently

    being read or written

    http://en.wikipedia.org/wiki/Program_Counterhttp://en.wikipedia.org/wiki/Memory_address_register
  • Computer Science with Inqilab Patel Page 22 ruknuddin.com

    c) Memory Buffer/Data Register (MBR/MBR) - a two-way register that holds data

    fetched from memory (and ready for the CPU to process) or data waiting to be stored

    in memory

    d) Current Instruction register (CIR) - a temporary holding ground for the instruction

    that has just been fetched from memory

    e) Accumulator Register (AC) is used for storing data for ALU to process and the

    results those are produced by the ALU.

    Buses: ''The set of wires used to travel signals to and from CPU and different

    components of computer is called Bus.''

    Bus is a group of parallel wires that is used as a communication path. As a wire

    transmits a single bit so 8-bits bus can transfer 8 bits (1 byte) at a time and 16-bits bus

    can transfer 16 bits (2 bytes) and so on. There are three types of buses according to

    three types of signals, these are:

    a) Data Bus: ''The buses which are used to transmit data between CPU, memory and

    peripherals are called Data Bus.''

    b) Address Bus: ''The buses which are connecting the CPU with main memory and

    used to identify particular locations (address) in main memory where data is stored

    are called Address Buses.''

    c) Control Bus: The wires which are used to transmit the control signals (instructions)

    generated by Control Unit to the relevant component of the computer.

    Fetch-Execute Cycle:

    At its core, all the computer ever does is, execute one instruction in memory after

    another, over and over. Although there are many

    different possible (assembly language) instructions

    that the computer can execute, the basic steps

    involved in executing an instruction are always the

    same, and they are called the instruction cycle.

    1. Fetch the instruction (transfer the instruction from

    main memory to the decoder)

    2. Decode the instruction (from machine language)

    3. Execute the instruction (e.g., add, divide, load,

    store...)

    4.Store the result (for instructions like ADD, place

    the 'answer' in the specified register.)

    The control unit guides the computer's components through this cycle to execute one

    instruction.

    When that instruction is done, the cycle starts all over again with the next instruction.

    http://en.wikipedia.org/wiki/Memory_data_registerhttp://en.wikipedia.org/wiki/Instruction_register
  • Computer Science with Inqilab Patel Page 23 ruknuddin.com

    Registers/circuits involved

    The circuits used in the CPU during the cycle are:

    Program Counter (PC) - an incrementing counter that keeps track of the next

    memory address of the instruction that is to be executed once the execution of

    the current instruction is completed.

    Memory Address Register (MAR) - the address in main memory that is currently

    being read or written

    Memory Buffer Register (MBR) - a two-way register that holds data fetched from

    memory (and ready for the CPU to process) or data waiting to be stored in

    memory

    Current Instruction register (CIR) - a temporary holding ground for the

    instruction that has just been fetched from memory

    Accumulator Register (AC) is used for storing data for ALU to process and the

    results those are produced by the ALU.

    Control Unit (CU) - decodes the program instruction in the CIR, selecting

    machine resources such as a data source register and a particular arithmetic

    operation, and coordinates activation of those resources

    Arithmetic logic unit (ALU) - performs mathematical and logical operations

    Register notation

    To describe the cycle we can use register notation. This is a very simple way of noting all

    the steps involved. In all cases where you see brackets e.g. [PC], this means that the

    contents of the thing inside the brackets is loaded. In the case of the first line, the

    contents of the program counter is loaded into the Memory Address Register.

    MAR [PC]

    MBR [Memory] ; PC [PC] +1 (Increment the PC for next cycle at the same time)

    CIR [MBR]

    CIR executes

    http://en.wikipedia.org/wiki/Program_Counterhttp://en.wikipedia.org/wiki/Memory_address_registerhttp://en.wikipedia.org/wiki/Memory_data_registerhttp://en.wikipedia.org/wiki/Instruction_registerhttp://en.wikipedia.org/wiki/Control_Unithttp://en.wikipedia.org/wiki/Arithmetic_logic_unit
  • Computer Science with Inqilab Patel

    Detailed description of Fetch

    To better understand what is going on at each stage we'll now look at a detailed

    description:

    The contents of the Program Counter, the address of the next instruction to be executed,

    is placed into the Memory Address Register

    The address is sent from the MAR along the address bus to the Main Memory. The

    instruction at that address is found and returned along the dat

    Register. At the same time the contents of the Program Counter is increased by 1, to

    reference the next instruction to be executed.

    The MBR loads the Current Instruction Register with the instruction to be executed.

    Computer Science with Inqilab Patel Page 24

    Detailed description of Fetch-Decode-Execute Cycle

    To better understand what is going on at each stage we'll now look at a detailed

    Program Counter, the address of the next instruction to be executed,

    is placed into the Memory Address Register

    The address is sent from the MAR along the address bus to the Main Memory. The

    instruction at that address is found and returned along the data bus to the Memory Buffer

    Register. At the same time the contents of the Program Counter is increased by 1, to

    reference the next instruction to be executed.

    The MBR loads the Current Instruction Register with the instruction to be executed.

    ruknuddin.com

    To better understand what is going on at each stage we'll now look at a detailed

    Program Counter, the address of the next instruction to be executed,

    The address is sent from the MAR along the address bus to the Main Memory. The

    a bus to the Memory Buffer

    Register. At the same time the contents of the Program Counter is increased by 1, to

    The MBR loads the Current Instruction Register with the instruction to be executed.

    http://commons.wikimedia.org/wiki/File:CPT-fetch-execute-MAR-PC.svghttp://commons.wikimedia.org/wiki/File:CPT-fetch-execute-MBR-Memory.svghttp://commons.wikimedia.org/wiki/File:CPT-fetch-execute-CIR-MBR.svg
  • Computer Science with Inqilab Patel

    The instruction is decoded and executed using the ALU if necessary.

    The Cycle starts again!

    Activity

    Complete the following diagrams showing each step of the fetch decode execute cycle:

    Examination Questions

    Q1) Describe what differs a computer with a calculator

    .... .............. .........................................................................................................

    .................................. ....................................

    Q2) Differentiate an ALU with a calculator.

    .... .............. .........................................................................................................

    .................................. ............................................................................................

    Computer Science with Inqilab Patel Page 25

    instruction is decoded and executed using the ALU if necessary.

    Complete the following diagrams showing each step of the fetch decode execute cycle:

    Describe what differs a computer with a calculator

    .... .............. .........................................................................................................

    .................................. ............................................................................................

    Differentiate an ALU with a calculator.

    .... .............. .........................................................................................................

    ................. ............................................................................................

    ruknuddin.com

    instruction is decoded and executed using the ALU if necessary.

    Complete the following diagrams showing each step of the fetch decode execute cycle:

    .... .............. ................................................................................................................

    ........................................................ [1]

    .... .............. ................................................................................................................

    ................. ............................................................................................ [1]

    http://commons.wikimedia.org/wiki/File:CPT-fetch-execute-CIR-executes.svg
  • Computer Science with Inqilab Patel Page 26 ruknuddin.com

    Q3) Von Neumann gave the idea how computer should be built.

    a) Describe the purpose of each of the following parts of a processor:

    (i) Control unit

    .... .............. ................................................................................................................

    .................................. ............................................................................................ [1]

    (ii) Arithmetic & Logic unit

    .... .............. ................................................................................................................

    .................................. ............................................................................................ [1]

    (iii) Register

    .... .............. ................................................................................................................

    .................................. ............................................................................................ [1]

    b) Draw and label the diagram of von Neumann architecture.

    Q4) Draw the diagram and describe the stages of fetch-execute cycle.

    ................................................................................................................

    .............................................................................................................................................

    .............................................................................................................................................

    .............................................................................................................................................

    .............................................................................................................................................

    ................................................................................................................................ [6]

  • Computer Science with Inqilab Patel Page 27 ruknuddin.com

    Q5) Jo buys a notebook computer which has a 3MHz quad-core central processing unit

    (CPU).

    (a) State the purpose of the CPU.

    .... .............. ................................................................................................................

    .................................. ............................................................................................ [1]

    (b) Describe what is meant by

    3MHz CPU

    .......................................................................................................................................

    .......................................................................................................................................

    .......................................................................................................................................

    ................................................................................................................................ [2]

    quad-core CPU

    .......................................................................................................................................

    .......................................................................................................................................

    .......................................................................................................................................

    ................................................................................................................................. [2]

    Q6) (9693_13w_q12)

    There are 4 processor component terms on the left and 10 descriptions of functions on

    the right. Draw a line connecting each description to the correct component.

  • Computer Science with Inqilab Patel Page 28 ruknuddin.com

  • Computer Science with Inqilab Patel Page 29 ruknuddin.com

    Q 7) Name 3 registers involved in the Fetch Execute Cycle and describe what each

    does:

    1. ........................................................................................................................................

    ........................................................................................................................................

    2. ........................................................................................................................................

    ........................................................................................................................................

    3. ........................................................................................................................................

    ................................................................................................................................... [3]

    Q8) Describe the purpose of the following registers in a processor:

    (i) Program Counter (Sequence Control Register).

    .............................................................................................................................................

    ........................................................................................................................................ [1]

    (ii) Current Instruction Register.

    .............................................................................................................................................

    ........................................................................................................................................ [1]

    (iii) Memory Address Register.

    .............................................................................................................................................

    ........................................................................................................................................ [1]

    (iv) Memory Data Register.

    .............................................................................................................................................

    ........................................................................................................................................ [1]

    (v) Accumulator

    .............................................................................................................................................

    ........................................................................................................................................ [1]

    Q9) Describe two stages of the fetch/execute cycle which would change the contents of

    the MAR. State clearly, in each case, what the MAR contains.

    .............................................................................................................................................

    .............................................................................................................................................

    ....................................................................................................................................... [2]

    Q10) (i) State what is held in the Program Counter (PC) during the fetch/execute cycle.

    .............................................................................................................................................

    ...................................................................................................................................... [1]

    (ii) Explain how the contents of the PC change during the fetch/execute cycle.

  • Computer Science with Inqilab Patel Page 30 ruknuddin.com

    .............................................................................................................................................

    ...................................................................................................................................... [1]

    Q11) (b) At a particular point in a program, the program counter (PC) contains the value

    200. State the expected value contained in the PC after the instruction held at location

    200 has been fetched. Explain your answer.

    .............................................................................................................................................

    ...................................................................................................................................... [1]

    Marking Scheme

    Q5)

    a) To carry out the processing on the computer/To (fetch and) execute instructions'

    b) 3MHz. Two from

    3MHz is the clock speed / how fast the

    processor is

    Indicates how many instructions may be

    processed in each second

    Indicates how many clock cycles per

    second

    c) Quad core

    The computer has 4 cores...

    which are independent processors within

    the CPU ..

    ... working simultaneously / can perform

    multiple tasks

    Q6)

  • Computer Science with Inqilab Patel Page 31 ruknuddin.com

    1.3.3 & 4 Input & Output Devices

    Input Devices:

    Input devices allow us to enter raw data into a computer. The computer processes the

    data and then produces outputs that we can understand using an output device. Input

    devices can be manual or automatic.

    There are two different categories of input device. They are:

    Manual Input Devices : With a manual input device the user must enter data into

    the computer by hand. e.g. mouse, keyboard, scanner.

    Direct Data Entry (DDE) Devices : A direct data entry device can transfer

    information automatically from a source document such as a form or barcode into

    the computer. The user does not need to manually enter the information. e.g.

    optical mark recognition, smart cards.

    There are many different input devices available. Each input device is suitable for a

    different purpose. Below you will find descriptions of the most common manual input and

    direct data entry devices.

    Manual Input Devices

    With a manual input device the user must enter data into the computer by hand. e.g.

    mouse, keyboard, scanner.

    Keyboard

    Almost all computers are supplied

    with a keyboard. A keyboard has

    over 100 keys on it. When you press

    a key a number (code) is sent to the

    computer to tell it which key you

    have pressed. The keys are

    arranged in four groups :

    The keys on a keyboard are usually arranged in the same order as those on a typewriter.

    This layout of keys is called QWERTY because Q-W-E-R-T-Y is the order in which the

    letters occur on the top row of the keyboard. Some newer designs have the letters

    1.3.3 Input devices describe the principles of operation (how each device works) of a range of input devices including 2D and 3D scanners, barcode readers, digital cameras, keyboards, mice, touch screens, microphones describe how these principles are applied to real-life scenarios, for example: scanning of passports at airports, barcode readers at supermarket checkouts, and touch screens on mobile devices describe how a range of sensors can be used to input data into a computer system, including light, temperature, magnetic field, gas, pressure, moisture, humidity, pH/acidity/alkalinity and motion/infra-red describe how these sensors are used in real-life scenarios, for example: street lights, security devices, pollution control, games, and household and industrial applications 1.3.4 Output devices describe the principles of operation of a range of output devices, including: inkjet, laser and 3D printers; 2D and 3D cutters; speakers and headphones; actuators; flat-panel display screens, including Liquid Crystal Display (LCD) and Light-Emitting Diodes (LED); and LCD projectors and Digital Light Projectors (DLP) describe how these principles are applied to real-life scenarios for example: printing single items on demand or in large volumes; banks of digital displays; use of small screens on mobile devices; smart boards

    http://www.hollyfield.kingston.sch.uk/gcseit/GCSE/input.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/input.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/input.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/input.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/input.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/input.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/input.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/input.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/input.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/input.htm
  • Computer Science with Inqilab Patel Page 32 ruknuddin.com

    arranged in a different order. Most people find the QWERTY arrangement best as they

    have had some practice using it, but users trained on the new keyboards can type faster

    than the fastest typists can on QWERTY keyboards.

    Advantages of using keyboards for data input include

    Entering data and instructions with keyboards is generally faster than with pointing

    devices.

    Disadvantages of using keyboards for data input include

    It takes a lot of time to practice in order to type quickly and accurately.

    Typing speeds are still very slow when compared with computer speeds.

    Concept Keyboard

    A concept keyboard is a flat board which contains a

    grid of switches. Each switch can be programmed to

    do whatever you want. An overlay image is placed

    on top of the grid so that the user can tell what

    pressing on different areas (switches) will do.

    Example uses of concept keyboards include :

    Games for young children : The overlay

    image could be a picture of a farmyard.

    Pressing on an animal would cause the

    computer to make the noise the animal does.

    Tills in restaurants/pubs : The overlay

    contains a list of all the meals that can

    be sold. Instead of typing in prices the

    waiter simply presses the keyboard

    where the meals/drinks he is serving are

    listed.

    Concept keyboards are particularly useful for

    people who would find using an ordinary

    keyboard difficult and in locations where an

    ordinary keyboard might be damaged, e.g. by

    spillage or dust.

    Touch Sensitive Screens

    These screens do a similar job to concept keyboards.

    A grid of light beams or fine wires criss-cross the

    computer screen. When you touch the screen the

    computer senses where you have pressed. Touch

    screens can be used to choose options which are

    displayed on the screen. Touch screens are not used

    very often as they are not very accurate, tiring to use for a long period and are more

    expensive than alternatives like a mouse. The main applications for which touch screens

    are used is the provision of public information systems. Touch screen operated

  • Computer Science with Inqilab Patel Page 33 ruknuddin.com

    computers can be found in places such as travel agents and airports.

    Advantages of a touch screen include

    No extra peripherals are needed except the monitor.

    A touch screen allows easy access to commands, which are usually identified by words

    or symbols on the screen.

    Disadvantages of a touch screen include

    Touch screens are not suitable for inputting a large amount of data because they require

    a lot of arm movements.

    Only items already on the screen can be selected. Light Pen

    A light pen is a special pen which you can point at any computer monitor. When the pen

    is pointed at the screen the computer can work out where the pen is pointing. Light pens

    can be used to "draw" on the screen or to select options from menus presented on the

    screen. Light pens are extremely poor input devices. They are very inaccurate and tiring

    to use. Light pens are hardly ever used today.

    Mouse

    A mouse is the most common pointing device. You move the mouse around on a mat

    and a small cursor called a pointer follows your movements on the computer screen. By

    pressing a button on the mouse (most mice have 1,2 or 3 buttons) you can select

    options using icons or menus on the screen. Mice can also be used to "draw" onto the

    screen. They are particularly useful if your computer has a graphical user interface.

    Most mice use a small ball located underneath them to calculate the direction that you

    are moving the mouse in. As you move the mouse this ball rotates. The mouse monitors

    how far the ball turns and in what direction and sends this information to the computer to

    move the pointer.

    Advantages of using a mouse include

    A mouse is user-friendly for computer beginners.

    A mouse is easy and convenient to use with a graphical user interface.

    Using a mouse to select items or move to a particular position on the screen is faster

    than using a keyboard.

    Disadvantages of using a mouse include

    It is not easy and convenient to input text with a mouse.

    Issuing commands by using a mouse is slower than by using a keyboard.

    A mouse is not accurate enough for drawings that require high precision.

    A mouse usually requires a flat surface to operate.

    A mouse needs more desk space to operate when compared with a trackball. Tracker Ball

    A tracker ball (or trackball) is an alternative to a mouse. It works in the same way as a

    mouse except that the ball is on top. Turning the ball with your hand moves the pointer

    on the screen. Tracker balls are used mainly when there is not enough space for a

    mouse. e.g. in portable computers.

    http://www.hollyfield.kingston.sch.uk/gcseit/GCSE/userint.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/userint.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/userint.htm
  • Computer Science with Inqilab Patel Page 34 ruknuddin.com

    Advantages

    A trackball is good for limited desk space because the user does not have to move the

    entire device.

    Disadvantages

    A trackball is usually not as accurate as a mouse.

    The ball mechanism of trackballs also requires more frequent cleaning than a mouse. Joystick

    Joysticks are used to play computer games. You can move a standard joystick in any

    one of eight directions. The joystick tells the computer in which direction it is being pulled

    and the computer uses this information to e.g. move a spaceship on screen. A joystick

    may also have several buttons which can be pressed to trigger actions such as firing a

    missile.

    The best joysticks, called analogue joysticks measure how far the joystick is being

    moved in the direction it is being pulled. This information is used to set how quickly the

    object on the screen moves. The further you push the joystick the faster the object

    moves.

    Small joysticks called trackpoint devices are sometimes built into the keyboards of

    portable computers and used instead of a mouse.

    Advantages

    A joystick allows fast interactions required in most games.

    Disadvantages

    It is difficult to use a joystick to select objects accurately on the screen. Graphics Tablet

    Graphics tablets are used mainly by professional graphics designers. Using a graphics

    tablet a designer can produce much more accurate drawings on the screen than he

    could with a mouse or other pointing device. A graphics tablet consists of a flat pad (the

    tablet) on which the user "draws" with a special pen called a stylus. As the user "draws"

    on the pad the image is created on the screen. The pad on which the user draws can be

    any size from A5 to A1 (eight times as large as an A4 page). Drawings created using a

    graphics tablet can be accurate to withing hundredths of an inch.

    The stylus that the user draws with may have a button on it which will act like a mouse

    button. Sometimes instead of a stylus a highly accurate mouse-like device called a puck

    is used to draw on the tablet.

    Scanner

    A scanner can be used to input printed images such as photographs or pages of text

    directly into the computer. A scanner works by shining a light at the image being scanned

    and measuring how much light is reflected back using an optical sensor. The amount of

    light that is reflected back tells the computer how light or dark the image is at each point.

    The light and optical sensor reads information about one line of the image at a time.

    They must be moved down the picture to input the whole image. There are two different

    types of scanner :

  • Computer Science with Inqilab Patel Page 35 ruknuddin.com

    Flatbed Scanner : You place

    the image on top of the scanner.

    The scanner moves the light

    and sensor itself and scans the

    whole image automatically. Most

    flatbed scanners are A4 size.

    Handheld Scanner : You must

    manually push the light/sensor

    along the image. Handheld

    scanners are usually 5 inches wide.

    Flatbed scanners are better as they can scan larger images and are more accurate than

    handheld scanners. On the other hand handheld scanners are cheaper and more

    portable. The price of flatbed scanners has fallen so much in recent years that handheld

    scanners are rarely sold now. A colour flatbed scanner can be purchased for around

    100.

    Optical Character Recognition (OCR) software can be used to read printed text from an

    image that has been scanned and store it as text rather than an image. You can then edit

    the text using a word processor or desktop publisher. OCR software is not yet

    sophisticated enough to read hand-written text accurately.

    Advantages of a scanner include

    A scanner with appropriate OCR software can work as an OCR

    system.

    Disadvantages of a scanner include

    A scanner is best for two-dimensional objects only, difficult to scan 3-D

    objects

    Scanned images usually take up a lot of storage space. Digital Cameras

    Digital cameras are used in the same way as standard photographic

    cameras. Most digital cameras look just like ordinary cameras. Unlike

    photographic cameras digital cameras do not use film. Inside a digital

    camera is an array of light sensors. When a picture is taken the array

    of sensors is used to input the image. The image can then be stored either in the

    camera's RAM or on a floppy disk. Later the pictures can be transferred onto a computer

    for editing using a graphics package.

    Some digital cameras are available relatively cheaply, for about 300. However these

    cameras do not take very good pictures. More expensive cameras can take higher

    quality pictures but these are still not quite as good as standard photographs. Digital

    cameras are extremely useful for tasks such as producing newsletters.

    Video Digitiser

    http://www.hollyfield.kingston.sch.uk/gcseit/GCSE/input.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/wproc.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/dtp.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/strorage.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/strorage.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/graphics.htm
  • Computer Science with Inqilab Patel Page 36 ruknuddin.com

    A video digitiser takes an image from a video camera or television and converts it so that

    it can used by and stored on a computer. Almost all video digitisers now work in colour.

    Unlike scanners video digitisers can capture moving video sequences as well as still

    images. When a video sequence is captured the computer stores this as a sequence of

    still images called frames. These images are displayed quickly one after the other

    (rather like a flick-book) to create the illusion of a moving picture.

    When you want to capture a video sequence you must tell the computer :

    Size : How big you want the image you capture to be. e.g. should it take up the

    whole screen, 1/2 the screen, 1/8th of the screen ... ?

    Frame Rate : How frequently the frames should be captured from the video.

    If you want to capture large images you may have to settle for a slow frame rate which

    will make the captured video film look jittery. If you want a fast frame rate you may only

    be able to capture a small image size. Video sequences captured using a video digitiser

    are often used in multimedia presentations.

    Voice Recognition

    Voice recognition systems listen to what people are saying and carry out the instructions

    given to them when people speak. A microphone is used to provide input for a voice

    recognition system. Currently these systems are not very sophisticated and are used

    only for certain applications. Existing voice recognition systems come in two different

    types :

    Systems which recognise only a few words but can understand most peoples

    voices. e.g. telephone banking computers.

    Systems which recognise a wide vocabulary but need to be trained to understand

    each different voice. e.g. automatic dictation systems.

    In the last few years a number of voice dictation packages have been developed. These

    packages let the user dictate text into a computer to appear in a word processed

    document. Dictating like this can be much quicker than typing but the computer still

    makes some mistakes especially with short words.

    http://www.hollyfield.kingston.sch.uk/gcseit/GCSE/multi.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/wproc.htm
  • Computer Science with Inqilab Patel Page 37 ruknuddin.com

    Direct Data Capture Devices

    Direct data entry devices are used when large volumes of data must be entered into the

    computer quickly. Consider how long it would take for the cashier to add up the cost of

    your shopping if she had to enter the price of every item you purchased. Nowadays

    barcode systems make this task much quicker. There are a variety of different direct data

    entry devices available. Different devices are suitable for different applications (tasks).

    Bar Code Readers

    Bar codes are often printed on products that we buy and are used by shops to produce

    bills for customers. A bar code is made up of a

    sequence of bars of different widths. Different

    groups of bars are used to represent different

    numbers. A printed bar code is therefore

    simply a way of representing a number. The

    number is often printed above or below the

    bar code so that humans can read it.

    Bar codes are read into the computer using a wand or a fixed scanner. Bar codes are not

    easily damaged and can normally still be read if they are creased or not stuck onto a flat

    surface. They can be printed using a normal printer and ink and so are cheap to

    produce. The information normally included on a bar code for a product is country of

    origin, manufacturer and item code. The price is not included in the bar code.

    A scanner can read a barcode number incorrectly. A check digit is included in the

    barcode number to reduce the likelihood of this happening.

    Advantages

    Provides stock management system.

    The process of data entry is fast and accurate.

    Bar codes can be printed by normal printing methods.

    No need to write down or key in the name of the item or its actual price.

    Disadvantages

    A bar code reader may misread a bar code if there is any dirt or mark on the code.

    Only numbers can be coded. Magnetic Stripe Codes

    Magnetic stripes are built into many plastic cards such as

    cheque guarantee or credit cards. Magnetic stripes look like

    this :

    The strip can contain up to 60 characters (numbers or digits) of

    information which is stored magnetically. Usually the

    information is put onto the stripe when the card is made and is

    never changed. Magnetic stripe codes can also sometimes be found on the back of

    railway tickets.

    http://www.hollyfield.kingston.sch.uk/gcseit/GCSE/validate.htm
  • Computer Science with Inqilab Patel

    To be read the card is swiped through a machine which

    pattern of magnetism. The information stored on the card can be destroyed by exposure

    to magnetic fields, by scratching or by coming into contact with some liquids.

    Smart Cards

    Smart cards are often called input devices. In fact they

    are actually simple storage devices

    contains a small RAM chip. When the card is put into a

    machine data can be read from the card or written onto

    it. A smart card can store much more data than a

    magnetic stripe can. A popular card in use at the

    moment can store 8k (about 8000 characters) of

    information.

    Petrol companies and supermarkets use smart cards

    to store information about points that customers earn when they buy goods. Every time

    the customer buys something the number of points stored on the card is i

    customer can then spend these points to buy goods.

    Satellite television companies also use smart cards in their receivers. The smart card

    stores a code which is needed to let the receiver decode and display the pictures coming

    from the satellite. The government is currently considering introducing an identity card

    which could be based on a smart card. Many people are worried about this as people

    would not be able to tell what information was stored about them.

    A new generation of smart cards i

    as well as memory. These cards are practically a complete computer system on a card.

    Magnetic Ink Character Recognition (MICR)

    The MICR system reads characters printed in a special magnetic ink into the computer.

    The main users of MICR are banks. They use it to read information from cheques into

    their computers so that the cheques can be cashed. Here is some in

    a cheque using MICR :

    The information printed on the cheque using MICR is :

    A unique number for the cheque.

    A code that identifies the bank and branch that issued the cheque.

    The number of the account that the cheque relates to.

    MICR readers can only read one special font which can represent only numbers and a

    few punctuation marks. They can read characters very quickly and with 100% accuracy.

    Information printed in magnetic ink is also very secure. It is not possible to change the

    information by writing over it with a pen and the printed numbers are not damaged by

    folding (as often happens with cheques). Both the reader used by MICR and the special

    ink are expensive.

    Advantages

    Computer Science with Inqilab Patel Page 38

    To be read the card is swiped through a machine which quickly and accurately reads the

    pattern of magnetism. The information stored on the card can be destroyed by exposure

    to magnetic fields, by scratching or by coming into contact with some liquids.

    Smart cards are often called input devices. In fact they

    storage devices. A smart card

    chip. When the card is put into a

    machine data can be read from the card or written onto

    it. A smart card can store much more data than a

    magnetic stripe can. A popular card in use at the

    tore 8k (about 8000 characters) of

    Petrol companies and supermarkets use smart cards

    to store information about points that customers earn when they buy goods. Every time

    the customer buys something the number of points stored on the card is i

    customer can then spend these points to buy goods.

    Satellite television companies also use smart cards in their receivers. The smart card

    stores a code which is needed to let the receiver decode and display the pictures coming

    ite. The government is currently considering introducing an identity card

    which could be based on a smart card. Many people are worried about this as people

    would not be able to tell what information was stored about them.

    A new generation of smart cards is now appearing which contain a small

    as well as memory. These cards are practically a complete computer system on a card.

    Recognition (MICR)

    The MICR system reads characters printed in a special magnetic ink into the computer.

    The main users of MICR are banks. They use it to read information from cheques into

    their computers so that the cheques can be cashed. Here is some in

    The information printed on the cheque using MICR is :

    A unique number for the cheque.

    A code that identifies the bank and branch that issued the cheque.

    The number of the account that the cheque relates to.

    readers can only read one special font which can represent only numbers and a

    few punctuation marks. They can read characters very quickly and with 100% accuracy.

    Information printed in magnetic ink is also very secure. It is not possible to change the

    ormation by writing over it with a pen and the printed numbers are not damaged by

    folding (as often happens with cheques). Both the reader used by MICR and the special

    ruknuddin.com

    quickly and accurately reads the

    pattern of magnetism. The information stored on the card can be destroyed by exposure

    to magnetic fields, by scratching or by coming into contact with some liquids.

    to store information about points that customers earn when they buy goods. Every time

    the customer buys something the number of points stored on the card is increased. The

    Satellite television companies also use smart cards in their receivers. The smart card

    stores a code which is needed to let the receiver decode and display the pictures coming

    ite. The government is currently considering introducing an identity card

    which could be based on a smart card. Many people are worried about this as people

    s now appearing which contain a small microprocessor

    as well as memory. These cards are practically a complete computer system on a card.

    The MICR system reads characters printed in a special magnetic ink into the computer.

    The main users of MICR are banks. They use it to read information from cheques into

    their computers so that the cheques can be cashed. Here is some information stored on

    A code that identifies the bank and branch that issued the cheque.

    readers can only read one special font which can represent only numbers and a

    few punctuation marks. They can read characters very quickly and with 100% accuracy.

    Information printed in magnetic ink is also very secure. It is not possible to change the

    ormation by writing over it with a pen and the printed numbers are not damaged by

    folding (as often happens with cheques). Both the reader used by MICR and the special

    http://www.hollyfield.kingston.sch.uk/gcseit/GCSE/strorage.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/strorage.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/compsys.htm
  • Computer Science with Inqilab Patel Page 39 ruknuddin.com

    MICR is difficult to forge.

    Documents can still be read when folded or written on.

    Disadvantages

    MICR readers and encoders are very expensive.

    The system can only accept a few different character sets. Optical Character Recognition (OCR)

    An optical character recognition system consists of a scanner and some software. The

    scanner is used to scan an image of a page of text to be read into the computer. The

    software then examines the page and extracts the text from it, storing it in a form that

    can be processed.

    OCR systems can now recognise a wide variety of computer fonts and read letters with

    over 95% accuracy. Some systems will recognise hand-written text reasonably well as

    long as it is written very neatly and usually put into boxes on a pre-printed form.

    Advantages

    Written data and printed data can be read at the same time.

    Hard copies of documents can be read directly into a computer without retyping.

    The characters converted can later be edited by word processing software.

    Disadvantages

    OCR readers often do not work well with handwritten characters or those in unusual

    fonts. Optical Mark Recognition (OMR)

    An optical mark reader reads marks made by pencil on a printed form into the computer.

    OMR systems are used by examination boards to collect the answers to multiple choice

    examinations and to purchase lottery tickets. Here is an example answer grid for an

    examination :

    The student answers each question by drawing a line in pencil in the box that he/she

    thinks is the correct one. The answer grid is printed in a special coloured ink called that

    the OMR system will ignore. Marks down the side of the form are used to automatically

    line the form up in the reader so that it can be read. The reader detects where the marks

    are placed by shining a light at the page and measuring the amount of light reflected.

    Less light is reflected where the marks have been made. A pile of forms collected at the

    end of an examination can be put into a tray (called a bin). The reader will go through

    each form in turn and record the candidates marks.

    Input using OMR is accurate and very fast. Problems can occur if the OMR forms get

    http://www.hollyfield.kingston.sch.uk/gcseit/GCSE/input.htm
  • Computer Science with Inqilab Patel Page 40 ruknuddin.com

    creased as the reader may jam.

    Advantages

    OMR has a better recognition rate than OCR because fewer mistakes are made by

    machines to read marks than by reading handwritten characters.

    Large volumes of data can be collected quickly and easily without the need for specially

    trained staff.

    The cost of inputting data and the chance of data input errors could be reduced because

    it is not necessary to type the details for data entry.

    Disadvantages

    The OMR reader needs to be reprogrammed for each new document design.

    OMR readers are relatively slow.

    The person putting marks on the documents must follow the instructions precisely.

    Any folding or dirt on a form may prevent the form from being read correctly. Turnaround Documents

    Optical mark recognition and optical character recognition are often used together in a

    turnaround document. A turnaround document is a document which :

    Has some information printed onto it by a computer.

    Has more information added to it by a human.

    Is fed back into a computer to transfer the added information into the computer.

    Here is a turnaround document that a gas company could use to record meter readings.

    The document is printed by a computer. The name, address and customer number of the

    person that the meter reader should visit is printed on the form. The customer's last

    meter reading is also included.

    The meter reader takes the document and visits the customer's house. He then marks

    the current meter reading onto the OMR grid on the form. In the example the meter

    reader has marked the reading as 4605. The form is then returned to the gas company.

    At the gas company the form is fed into a special reader. Optical character recognition is

    used to read the customer's number from the form. Optical mark recognition is used to

    read the meter reading that has been added. All of the information can be read into the

    computer automatically. A bill can be produced and posted to the customer without any

    http://www.hollyfield.kingston.sch.uk/gcseit/GCSE/input.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/input.htm
  • Computer Science with Inqilab Patel

    need for human intervention. Turnaround documents allow cheap, fast input of

    information into a computer system

    The turnaround document does not contain any instructions because

    who fills it in will complete hundreds of similar forms every day. He will have been trained

    to use the forms so printing instructions on them would simply waste space.

    Sensors

    Sensors can be used to measure physical quantities such as temperature, light and

    pressure. The measurements can then be stored for later use (

    control devices such as heaters or fans (

    Output Devices

    An output device is any piece of computer hardware equipment used to communicate the results of data processing carried out by an information processing system (such as a computer) which converts the electronically generated information into humanreadable form. Soft Copy: The output displayed on screen or stored in storage devices is soft

    copy.

    Hard Copy: The output printed on paper is hardcopy output.

    CRT Monitor

    A monitor displays text and

    computer.

    A cathode-ray tube (CRT) monitor is the type that has

    been around for years and is

    CRT monitors are heavy and they take up a

    space. They have largely been

    monitors. However some are still used in the design

    industry since the colour accuracy

    CRT monitors is excellent, and designers need to

    to-life colours.

    Also, CRT monitors are generally

    monitors. Flat-Screen Monitor (TFT or LCD)

    Over the past few years, as they have come down in price,

    flat-screen displays have replaced

    Flat-screen monitors are light in weight

    very little desk space.

    Modern flat-screen monitors have a

    good as CRT monitors.

    Digital / Multimedia Projector

    Digital projectors are used in situations when a

    viewing area is required, for example during

    for advertising, or in your home for

    Computer Science with Inqilab Patel Page 41

    need for human intervention. Turnaround documents allow cheap, fast input of

    information into a computer system

    The turnaround document does not contain any instructions because

    who fills it in will complete hundreds of similar forms every day. He will have been trained

    to use the forms so printing instructions on them would simply waste space.

    can be used to measure physical quantities such as temperature, light and

    pressure. The measurements can then be stored for later use (data logg

    control devices such as heaters or fans (computer control).

    is any piece of computer hardware equipment used to communicate results of data processing carried out by an information processing system (such as

    a computer) which converts the electronically generated information into human

    Soft Copy: The output displayed on screen or stored in storage devices is soft

    Hard Copy: The output printed on paper is hardcopy output.

    and image data passed to it by the

    (CRT) monitor is the type that has

    been around for years and is large and boxy.

    and they take up a lot of desk

    . They have largely been replaced by flat-screen

    monitors. However some are still used in the design

    colour accuracy and brightness of

    CRT monitors is excellent, and designers need to see true-

    Also, CRT monitors are generally cheaper than flat-screen

    Screen Monitor (TFT or LCD)

    Over the past few years, as they have come down in price,

    replaced CRT monitors.

    light in weight and they take up

    screen monitors have apicture quality that is as

    Digital / Multimedia Projector

    Digital projectors are used in situations when a very large

    required, for example during presentations,

    , or in your home for watching movies.

    ruknuddin.com

    need for human intervention. Turnaround documents allow cheap, fast input of

    The turnaround document does not contain any instructions because the meter reader

    who fills it in will complete hundreds of similar forms every day. He will have been trained

    to use the forms so printing instructions on them would simply waste space.

    can be used to measure physical quantities such as temperature, light and

    data logging) or used to

    is any piece of computer hardware equipment used to communicate results of data processing carried out by an information processing system (such as

    a computer) which converts the electronically generated information into human-

    Soft Copy: The output displayed on screen or stored in storage devices is soft

    http://www.hollyfield.kingston.sch.uk/gcseit/GCSE/datalog.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/datalog.htmhttp://www.hollyfield.kingston.sch.uk/gcseit/GCSE/control.htm
  • Computer Science with Inqilab Patel

    A projector connects to a computer

    monitor.

    The image is produced inside the device and then pro

    through a large lens, using a

    Loudspeaker If you want to hear music orwill have to attach loudspeakers. They convert electrical signals into sound waves. Loudspeakers are essential for editing, video conferencing Dot Matrix Printer

    A dot-matrix printer is named after the pattern (a grid or matrix) of dots used when creating the paper printout. These dots are formed by tinyprinters print head thatagainst the paper leaving marks. As the print head moves along it

    leaves a pattern of dots behind it which can form letters, images, etc. Dot matrix printers often uselong, continuous strips of paper (rather than separate sheets of A4 like ink-jet and laser printers use).After printing, the printout is torn off from the long strip.Dot-matrix print quality is poorare much better printing systems available today. However, the dotmatrix printers are still used in certain situations: Since the pins actually hit the paper, several can be printed in one go. An example of this ishave several duplicate pages The print mechanism isSo, where cheap, low-quality printouts are required, dotprinters are used. An example is InkJet Printer Cheap, high-quality, full-colourduring the 1980s due to the development of ink These printers have a similar print

    Computer Science with Inqilab Patel Page 42

    computer, a DVD player or a satellite receiver

    The image is produced inside the device and then projected out

    through a large lens, using a powerful light source.

    or sounds from your computer, you will have to attach loudspeakers. They convert electrical signals

    Loudspeakers are essential for applications such as music video conferencing, watching movies, etc.

    matrix printer is named after the pattern (a grid or matrix) of dots used when creating the paper printout.

    These dots are formed by tiny pins in the printers print head that hit an inked ribbon against the paper leaving marks. As the print head moves along it

    behind it which can form

    Dot matrix printers often use continuous stationary: continuous strips of paper (rather than separate

    jet and laser printers use). After printing, the printout is torn off from the long strip.

    quality is poor, the printers are noisy, and there systems available today. However, the dot-

    matrix printers are still used in certain situations: Since the pins actually hit the paper, several carbon-copies

    can be printed in one go. An example of this is airline tickets which pages, all printed in one go

    The print mechanism is very cheap, and the inked ribbons last for aquality printouts are required, dot-matrix

    printers are used. An example is shop receipts.

    colour printing became available during the 1980s due to the development of ink-jet printers.

    These printers have a similar print-head mechanism to a dot-

    ruknuddin.com

    satellite receiver just like a ordinary

    against the paper leaving marks. As the print head moves along it

    -

    copies which

    , and the inked ribbons last for a long time.

  • Computer Science with Inqilab Patel

    matrix printer. The print-head passes left and right across the paper. However, inusing pins to hit inky marks onto the paper, the inkthe surface of the paper. Several coloured inks can be used to producecolour printouts. The droplets of ink come from tiny holes (thehuman hair in size. Each droplet creates a tiny dot on the paper. Since the dots are so small, the quality of the printout is excellent (1200 dotsperfect for photographs. Ink-jet printers are very quietalso cheap to manufacture and thus cheap to purchase. However, thevery expensive to buy (this is how the printer companies make their profits!) so the printers are expensive to use

    Laser Printer Laser printers are very complexvery cheap to use. This is because they produce marks on paper using a fine dust called toner which is relatively cheap to buy. A single toner cartridge will of5,000-10,000 pages of printing. The laser printer uses a complex system, involving a laser, to make the toner stick to the required parts of the paper. (This system is very different to a dotink-jet, and you dont need to know the The laser and toner system allowsprinting compared to other printers (just a few seconds per page). Laser printers are very common inprint very quickly, are cheap to use and are reasonably quiet. Plotter Plotters create hard-copy in a very different way to printers. Instead of building up text and images from tiny dots, plotters draw on the paper using a The pens are held in an arm which can lift the pen up or down, and which can move across the paparm and pen create a drawing just like a human could, but much more accurately Different coloured pens can be used to produce coloured line drawings.

    Computer Science with Inqilab Patel Page 43

    head passes left and right across the paper. However, inusing pins to hit inky marks onto the paper, the ink-jet squirts tiny dropletsthe surface of the paper. Several coloured inks can be used to produce

    The droplets of ink come from tiny holes (the jets) which are less than the width of a human hair in size. Each droplet creates a tiny dot on the paper. Since the dots are so small, the quality of the printout is excellent (1200 dots-per-inch are possible). This is

    quiet in use. Since they have so few moving parts they are to manufacture and thus cheap to purchase. However, the

    to buy (this is how the printer companies make their profits!) so the expensive to use.

    complex devices, and thus expensive to buy. This is because they produce marks on paper using a fine dust

    which is relatively cheap to buy. A single toner cartridge will of10,000 pages of printing.

    The laser printer uses a complex system, involving , to make the toner stick to the required parts of

    the paper. (This system is very different to a dot-matrix or jet, and you dont need to know the details.)

    The laser and toner system allows very fast compared to other printers (just a few seconds

    Laser printers are very common in offices since they print very quickly, are cheap to use and are

    copy in a very different way to printers. Instead of building up text and images from

    on the paper using a pen.

    The pens are held in an arm which can lift the pen up or down, and which can move across the paper. The arm and pen create a drawing just like a human

    accurately and more quickly.

    can be used to produce coloured line drawings.

    ruknuddin.com

    head passes left and right across the paper. However, instead of dropletsof ink onto

    the surface of the paper. Several coloured inks can be used to produce full-

    less than the width of a human hair in size. Each droplet creates a tiny dot on the paper. Since the dots are so

    inch are possible). This is

    in use. Since they have so few moving parts they are to manufacture and thus cheap to purchase. However, the ink is

    to buy (this is how the printer companies make their profits!) so the

    expensive to buy. However they are . This is because they produce marks on paper using a fine dust

    which is relatively cheap to buy. A single toner cartridge will often last for

    can be used to produce coloured line drawings.

  • Computer Science with Inqilab Patel

    Plotters are often used by designersof paper, far bigger than anything a normal printer could work with... Plotters are only suitable for producingcannot produce the kind of text and images that an inklaser printer could. (So you cannot use a plotter to photos for example) Plotters have been largely superseded by largeprinters that can produce more detailed printouts and in fullcolour Summary of Input Devices

    Device Use Keyboard Entering text into a word processing document.

    created rather than copied

    Numeric

    keypad Applications where only numeric data is to be entered. Inserting personal identification

    number (PIN) for Chip and PIN credit/debit cards, or when using an ATM machine to

    withdraw money or check a bank balance

    Pointing

    devices all All applications which require selection from a graphical user interface. For example: the

    selection of data from a set list or menu

    Mouse In most PCs Touch pad On laptop computers

    Tracker ball For use by people with limited motor skills e.g. young children or people with disabilitiesRemote control Using remote control devices to operate TVs, video players/recorders, DVD

    players/recorders, satellite receivers, HiFi music systems, data or multimedia

    Joystick Used by a pilot to fly an aeroplane or flight simulator. Used in car driving simulators and

    for playing games

    Touch screen Selecting from a limited list of options e.g. cer