A-Level Computer Science_NoRestriction
A-Level Computer Science_NoRestriction
CHAPTER 1: COMPUTER ORGANISATION AND ARCHITECTURE Function keys, labeled F1-F12, perform specific functions based on the software used. F1 for
example is used in most software to display help.
Introduction Alphabetical keys
The term computer is derived from the word “compute” which means “to calculate.” This simply Numerical keys
means that the computer is a calculating machine. Every thousandth of a second or so, a computer Navigation keys also called direction keys are used to navigate through documents and
performs thousands, millions, or even billions of simple arithmetic operations in order to carry out websites. Examples of navigation keys are the up, down, left and right arrows.
its tasks. Action keys
Formally, a computer is defined as an electronic device that can accept, store and process data to
produce information. It can also be defined as a machine that can accept instructions and perform The way keys are arranged on a keyboard is known as the layout of the keyboard. There are
computations based on those instructions. different keyboard layouts but the best known are QWERTY mainly used by English speakers and
The term computer organization refers to the physical organization of the components in a AZERTY used by French speakers. Another keyboard layout modified greatly from a standard layout
computer system, and to the characteristics of those components. It includes the high-level aspects is DVORAK, devised to increase typing speed by placing frequently used keys more naturally.
of a computer’s design, such as the memory system, the memory interconnect, and the design of the A keyboard connects to the computer through cable PS/2 cable, USB cable or wireless (cordless).
internal processor or CPU.
1.1.2. Mouse
1. Hardware A mouse is a handheld device which is moved across a flat surface to control the movement of a
Hardware refers to the physical and tangible components of the computer like the keyboard, mouse, cursor or pointer on the computer screen. It is a pointing device. A standard mouse has two buttons,
monitor and internal circuits. Computer hardware components can be grouped into five functionally the right and the left buttons, which are pressed to enter commands into the computer.
independent main units: input, control, arithmetic and logic, memory and output units. Different actions that can be performed with a mouse are:
The input unit accepts coded information from human operators using devices such as keyboards, Click: Pressing the left mouse button. This action can be used to select objects (files, folders,
or from other computers over digital communication lines. The information received is stored in the commands) or options in a menu.
computer’s memory, either for later use or to be processed immediately by the arithmetic and logic Double-click: Pressing the left button two times in quick succession. It can be used to open
unit. The processing steps are specified by a program that is also stored in the memory. Finally, the a file, folder or program.
results are sent back to the outside world through the output unit. All of these actions are Right-click: Pressing the right mouse button. A right-click opens a context menu from
coordinated by the control unit. which options like cut, copy and paste can be selected.
Drag and drop: Pressing the left mouse button and moving the mouse while holding, is a
Processing Unit drag while releasing the left mouse button after a drag is a drop. Drag and drop can be used
to move files or documents from one place to another, and to select text.
Control Unit
Input Unit Output Unit A mouse connects to a computer through PS/2 cable (PS/2 mouse), USB cable (USB mouse), or
wireless (optical mouse).
Arithmetic
Logic Unit
1.1.3. Scanner
A scanner is a device that is used to input printed images such as photographs or pages of text
Memory Unit directly into the computer. It converts hardcopy information into electronic form (softcopy) for
storage in the computer. A scanner works by shining a light at the image being scanned and
Functional Units of a Computer 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.
Common scanner devices are the flatbed scanner, optical mark reader, optical character reader,
1.1. Input Unit
barcode reader and magnetic ink character reader.
The input unit consists of hardware components that allow the computer user to enter data and
commands into the computer. These components are called input devices. Examples of input
a. Flatbed Scanner
devices are keyboard, mouse, scanner, joystick, light pen, touchpad, tracker ball and microphone.
A flatbed scanner is a scanner in which the object to be scanned is placed flat against a piece of glass.
When the object is placed, the scanner moves the light and sensor itself and scans the whole
1.1.1. Keyboard
The keyboard is the standard input device attached to computers. It is a device with keys that are image automatically. Most flatbed scanners are A4 size
pressed to enter data and commands into the computer. These keys represent letters, numbers,
symbols and control characters. When a key is pressed, a number (code) representing each b. Optical Mark Reader (OMR)
c. Optical Character Reader (OCR)
character, is sent to the computer to tell it which key has been pressed. The keyboard has a
d. Barcode Reader
total of 101-104 keys divided into different groups or keypads.
Question: What are the advantages and disadvantages of impact and non-impact printers?
© 2014- BGS Molyko 2
Bilingual Grammar School Advanced Level Computer Science
3. The arithmetic-logic unit then executes the instruction on the data. That is, the ALU is given meaning that everything held in it is lost when power is switched off. Two types of RAM exist: Static
control and performs the actual operation on the data. RAM and dynamic RAM.
4. The arithmetic-logic unit stores the result of this operation in memory or in a register.
Dynamic RAM (DRAM) consists of capacitors that slowly leak their charge over time. Thus,
they must be refreshed every few milliseconds to prevent data loss. DRAM is cheap memory
owing to its simple design.
Static RAM (SRAM) consists of circuits that retain their charge over time. SRAM is faster and
more expensive than dynamic RAM, and does not need to be refreshed as DRAM does. Due to
The Instruction Cycle its cost it is not used as main memory but rather to build cache memory.
Steps 1 and 2 together are called instruction time or I-time and steps 3 and 4 together are called b. Read Only Memory
execution time or E-time. The combination of I-time and E-time is called the machine or instruction Read only memory (ROM) is a kind of memory whose contents can only be read by the computer.
cycle or the fetch-decode-execute cycle. The length of time taken to fetch, decode and execute an Data found in ROM is written by the manufacturer and cannot be modified by the user. ROM is
instruction is measured in clock cycles. useful for holding data that never changes like the “boot” or start-up program which is run when the
computer is switched on.ROM is non-volatile meaning that its content is preserved even without
1.3.5. System Clock power. There are four types of ROM:
The CPU has a small quartz crystal circuit called the system clock that controls the timing of all
computer operations. The system clock generates regular electronic pulses, or ticks, that set the Masked ROM is ROM programmed with its data when the chip is fabricated.
operating pace of components of the system unit. Each tick is known as clock cycle and the pace of Programmable ROM (PROM) is ROM that can be programmed once but not reprogrammed.
the system clock is called clock speed. Clock speed is measured in megahertz (Mhz) or gigahertz Erasable Programmable ROM (EPROM) is ROM that can be erased by strong ultraviolet light
(Ghz) and refers to the number of clock cycles per second that the CPU runs at. Mega and giga stand and new data burnt into it. To do this the chip has to be removed from the machine and put
for million and billion respectively while hertz means cycles per second. Thus, 1Ghz means one back after the changes have been made.
billion cycles per second. A computer that operates at 3 Ghz has 3 billion (giga) clock cycles in one Electrically Erasable Programmable ROM (EEPROM) is ROM whose content can be erased
second (hertz). electrically. In this case, the chip need not be removed from the machine. The programming is
The faster the clock speed, the more instructions the processor can execute per second. The speed done using special software.
of the system clock has no effect on devices such as a printer or disk drive. The speed of the system
clock is just one factor that influences a computer’s performance. Other factors, such as the type of c. Cache Memory
processor chip, amount of cache, memory access time, bus width, and bus clock speed. Cache memory is a smaller and faster memory between the CPU and main memory, which stores
copies of data from the most frequently accessed memory locations. The purpose of cache memory
1.4. Memory Unit is to speed up accesses by storing recently used data closer to the CPU, instead of storing it in main
The memory unit, also called storage unit, consists of computer components that hold programs and memory. Cache is static RAM and is usually organized in levels:
data for use in the computer. Memory or storage devices hold programs and data that can be made Level 1 (L1) cache, Level 2 and Level 3 cache.
available for initial or additional processing when required. A storage device is made of two parts: Level 1 cache is closest to the CPU or within it.
the storage medium and the device. L2 and L3 caches are outside it.
The medium is the surface or substrate that holds actual data
The device reads information from or stores information onto the medium When the CPU needs to access memory, cache memory is examined first. If the data is found in
cache, it is read from it. Otherwise, main memory is accessed. When the CPU refers to memory and
Computer storage can be classified basically into two: primary storage and secondary storage. finds the data in cache, it is said to be a HIT. Otherwise, it is a MISS.
Floppy Disk o CD-R stands for compact disc recordable. It is a type of CD that can be recorded by the
A floppy disk consists of a round flexible plastic disk coated with a magnetic substance and user. Once the user records on the CD, the content is set and cannot be changed. CD-R can
protected by a plastic cover lined with a soft material that wipes the disk clean as it spins. The disk be read by CD-ROM drives but to write on them, you need a CD-R drive.
is made of two recordable surfaces which are divided into a number of circular paths called tracks. o CD-RW stands for compact disc rewritable. It is a type of CD that can be recorded, erased
The number of tracks per surface varies with the particular type of disk. Each track is in turn and reused by the user. CD-RW cannot be read by a CD-ROM and CD-R drives. CD-RW
divided into a number of smaller units called sectors. A sector is the basic unit of storage on the disk drives are required to read and write on them.
and has a capacity of 512 bytes.
Digital Versatile Disc (DVD)
Hard Disk A DVD is similar to a CD in size and thickness but has a higher storage capacity than the CD. DVDs
A hard disk consists of several metallic platters which store data. Each platter has two sides and is use a laser beam of wavelength shorter than used by CDs. This allows for smaller indentations and
divided into a number of rings called tracks. Tracks on a platter are numbered 0 from the outside increased storage capacity. Just like the CD, different ions of the DVD exist: DVD-ROM, DVD-R and
and usually go up to 1023. Each track is divided into sectors. A sector is the basic unit of storage on DVD-RW. A DVD can store up to 17GB of data. Common DVD storage capacities are:
the disk and has a capacity of 512 bytes. Sectors are grouped together to form clusters. A cluster is
the smallest logical amount of disk space that can be allocated to hold a file. A cylinder is a sum set Types Characteristics Capacity
of all the tracks on all the platters that have the same track value. DVD-5 Single-sided, Single-layer 4.7GB
Factors that determine the performance of hard disks are, seek time and drive rotational speed. DVD-9 Single-side, Dual-layer 8.5GB
o Seek time is the time taken to move the read/write head over the right track and sector. DVD-10 Double-side, Single-layer 9.4GB
o Drive rotational speed is the total number of revolutions the disk platters make per DVD-18 Double-side, Dual-layer 17.1GB
minute. Higher rotational speed leads to higher transfer rate.
Blu-Ray Disc
A Blu-ray disc is an optical disc similar to a DVD and of same size, but read and written with a blue
or violet laser, whose shorter wavelength makes a higher data density possible. Blu-ray discs can
hold 25 GB for single layer or 50 GB for double layer.
The capacity of a storage device is the maximum amount of data that can be stored on the device’s Examples are RAM, Flash memory, CD-RW, DVD-RW. Those that can be accessed only for reading
medium. It is expressed in terms of the number of data bytes the device can hold. This simply means are immutable (read only). Examples are ROM, CD and DVD.
the unit of measurement of storage capacity is byte. Units of storage are summarized as follows:
1.4.4. Memory Hierarchy
1 bit = 0 or 1 Modern computers manage memory by organizing memory into a hierarchy in which large and
4 bits = 1 nibble slower memories feed data into smaller but faster memories for faster processing of data. This
8 bits = 1 byte 1 character organization of computer memory is known as memory hierarchy. At the top of the hierarchy are
1024 bytes = 1 kilobyte (KB) approx. 1/2 page the CPU registers followed by cache memory. The next level in the hierarchy is made up of main
1024 KB = 1 megabyte (MB) approx. 500,000 pages memory, which is followed by magnetic disk.
1024 MB = 1 gigabyte (GB) approx. 5 million pages
1024 GB = 1 terabyte (TB) approx. 5 billion pages Registers
Cache Memory
b. Access time
Access time is the average time taken for a storage device to search and read required data on its Faster and Main Memory
Slower and
medium. In other words, it is how fast data can be read from or written to a memory device’s smaller in size
Magnetic Disk larger in size
medium. It is measured in seconds. Units of time are summarized as follows:
Millisecond (ms) = Optical Disc/Solid State Devices
Microsecond (µs) =
Magnetic Tape
Nanosecond (ns) =
Picoseconds (ps) =
Femtoseconds (fs) = Memory hierarchy
c. Access Method
An access method is the technique used to retrieve information from or store information to a 1.5. The Motherboard
medium. Storage media can be accessed in two ways: sequentially or randomly. The motherboard is the main printed circuit board in the computer which holds the chipset and
other electronic components that give function to the computer. The motherboard is indispensable
Sequential Access to the computer and provides the main computing capability.
The medium is accessed by proceeding from the beginning of the medium until the designated area
is reached. Any new data is stored in the next available space on the medium. To read any data 1.5.1. Motherboard Form Factor
stored on the medium, the device has to start from the beginning going through each data until the Motherboard types are better described by what we call the motherboard form factor. The form
required data is found. An example of sequential access medium is magnetic tape. factor of a motherboard determines the specifications for its general shape and size. It also specifies
what type of case and power supply will be supported, the placement of mounting holes, and the
Random Access physical layout and organization of the board. The most common form factors found in modern PCs
Random access means that any location in storage can be accessed at any moment in approximately are:
the same amount of time. Data is accessed in any order, regardless of its location on the medium. To Advanced Technology (AT)
read any data stored on the medium, the device does not need to go through all preceding data. It is Advanced Technology Extended (ATX)
also called direct access. Examples of direct access devices are RAM, ROM, CDs, DVDs and magnetic Low Profile Extension (LPX)
disks. New Low profile Extended (NLPX)
To get all the pages converted, you need to purchase the software from:
https://www.jdoqocy.com/click-7579233-13447373