1 September Computer Science Notes
1 September Computer Science Notes
• In this example, the grey line represents the digital wave that has been created by taking
samples of the original analogue wave
• In order for the digital wave to look more like the analogue wave the sample rate and bit
depth can be changed
In this example you can see that the higher the sample rate, the closer to the original sound
wave the digital version looks
• The sampling rate of a typical audio CD is 44.1kHz (44,100 Hertz or 44,100 samples per
second)
• Using the graphic above helps to answer the question, “Why does telephone hold music
sound so bad?”
What is sample resolution?
• Sample resolution is the number of bits stored per sample of sound
• Sample resolution is closely related to the colour depth of a bitmap image, they measure
the same thing in different contexts
Bitmap Images
What is a bitmap?
• The more colours and more detail in the image, the higher the quality of the image and
the more binary that needs to be stored
Resolution & Colour Depth
Resolution
• The resolution is calculated by multiplying the height and width of the image (in
pixels)
• In general, the higher the resolution the more detail in the image (higher quality)
• Resolution can also refer to the total amount of pixels horizontally in a display, such as:
o Computer monitors - 1440p means 1440 pixels horizontally compared to 4K
which is 3840 pixels (roughly 4 thousand)
o YouTube - The quality button allows a user to change the video playback
resolution from 144p (144 pixels horizontally) up to 4K
Colour depth
• Colour depth is the number of bits stored per pixel in a bitmap image
• The colour depth is dependent on the number of colours needed in the image
• In general, the higher the colour depth the more detail in the image (higher quality)
• In a black & white image the colour depth would be 1, meaning 1 bit is enough to create
a unique binary code for each colour in the image (1=white, 0=black)
• In an image with a colour depth of 2, you would have 00, 01, 10 & 11 available binary
codes, so 4 colours
• As colour depth increases, so does the amount of colours available in an image
1 bit 2 (B&W)
2 bit 4
4 bit 16
8 bit 256
• As the resolution and/or colour depth increases, the bigger the size of the file becomes
on secondary storage
• The higher the resolution, the more pixels are in the image, the more bits are stored
• The higher the colour depth, the more bits per pixel are stored
• Striking a balance between quality and file size is always a consideration
Worked Example
1. Define the term Pixel [1]
2. If an image has a colour depth of 2 bits, how many colours can the image represent? [1]
3. Describe the impact of changing an images resolution from 500x500 to 1000x1000 [2]
Answers
2. 4
3. The image quality would be higher [1] the file size would be larger [1]
Bit b 1 or 0
Nibble 4b
Byte B 8b
Megabyte vs Mebibyte
• 1 kibibyte (1KiB) = 1024 bytes (1024 B) - binary prefixes (to the power of 2)
• 1 kilobyte (1KB) = 1000 bytes (1000 B) - decimal prefixes (to the power of 10)
Converting between units
• It is often a requirement of the exam to be able to convert between different units of
data, for example bytes to mebibytes (larger) or kibibytes to bytes (smaller)
• This process involves division, moving up in size of unit and multiplication, moving
down in size of unit
• When dealing with all units bigger than a byte we use multiples of 1024 (210)
• For example, 2000 kibibytes in mebibytes would be 2000 / 1024 = 1.95 MiB and 2
tebibytes in gibibytes would be 2 * 1024 = 2048 GiB
• When dealing with bits and bytes the same process is used with the value 8 as there are 8
bits in a byte
• For example, 24 bits in bytes would be 24 / 8 = 3 B and 10 bytes in bits would be 10 * 8
= 80 b
Unit
Bit Divide by 8 ⇓
Multiply by 8 ⇑
Byte
Kibibyte
Mebibyte Divide by 1024 ⇓
Multiply by 1024 ⇑
Gibibyte
Tebibyte
Hardware
Output The result of the calculation is outputted to the user via the monitor
A diagram showing the input, process, output sequence followed by computer systems
Microprocessors
• A microprocessor is a type of integrated circuit that is contained on a single chip
• It contains the CPU and sometimes other components such as:
o Memory controllers
o I/O interfaces
• It is a hardware chip that houses the CPU
Buses
• Components within the CPU and wider computer system are connected by buses
• A bus is a set of parallel wires through which data/signals are transmitted from one
component to another
• There are 3 types of bus:
o Address - unidirectional, carries location data (addresses), data is written
to/read from
o Data - bidirectional, carries data or instructions
o Control - bidirectional, carries commands and control signals to tell components
when they should be receiving reads or writes etc..
Question
Describe the role of the control unit, the control bus, the data bus and the address bus
when fetching an instruction from memory [4]
Fetch-Decode-Execute Cycle (FDE)
• The CPU is the brain of the computer and its job is to take an input, process data and
produce an output
• The Fetch-Decode-Execute Cycle is the cycle that the central processing unit (CPU)
runs through billions of times per second to make a computer work
• A computer takes an input, processes the input and then delivers an output for the user
o Process: The CPU inside the console follows a set of instructions to carry out the
task
Fetch stage
• During the fetch stage of the cycle, the program counter holds the address of the next
instruction to be fetched from memory
• The address of the next instruction or data to be fetched is copied into the memory
address register (MAR)
• The address of the instruction or data is then sent along the address bus and awaits a
signal from the control bus
• The signal sent along the control bus is sent from the control unit (CU) to the main
memory
• The data or instructions received from main memory is fetched to the memory data
register (MDR) via the data bus
• A copy of the instruction or data is stored in the current instruction register (CIR)
Decode stage
• During the decode stage of the cycle, the CPU needs to work out what is required from
the instruction
o Operand - what to do it to
Execute stage
• During the execute stage of the cycle, the CPU will carry out the instruction that was
fetched
• Some examples that would take place at this stage are
o Performing a calculation
[6]
Answer
• The Program Counter (PC) holds the address/location of the next instruction to be
fetched [1]
• The address held in the PC is sent to the Memory Address Register (MAR) [1]
• The memory address is sent using the address bus [1]
o Clock Speed
o Cache Size
o Number of Cores
• Each of these characteristics has a significant impact on the performance of the CPU
Clock speed
• The faster the clock speed, the more instructions can be fetched and executed per second
• Modern computers have a clock speed in Gigahertz (GHz), meaning billion
• A clock speed of 3.5GHz can perform up to 3.5 billion instructions per second
Cache size
• Cache is used as temporary storage to provide quick access to a copy of frequently used
instructions and data
• The larger the cache size, the more frequently used instructions or data can be stored
• This results in the CPU having to complete fewer fetch cycles from memory (RAM),
speeding up the performance
• Cache also has a significantly faster read/write speed than RAM, making it much quicker
to retrieve instructions from there instead of from memory (RAM)
Number of cores
• Multiple core processors mean they have multiple separate processing units that can
fetch, decode and execute instructions at the same time
• For example, a dual-core processor would have 2 processing units, each with their own
o Registers
• Multi-core processors can run more powerful programs with greater ease
• Multiple cores increase the performance of the CPU by working with the clock speed
▪ 4 cores x 3GHz
▪ 4 x 3 billion instructions
▪ 12 billion instructions per second
Worked Example
One computer has a single core processor and the other has a dual core processor.
Explain why having a dual core processor might improve the performance of the computer
[2]
Answer
Any 2 from:
• The computer with the dual core processor has two cores/double the amount of
cores [1]
• Each core can execute a separate instruction at the same time [1]
• An instruction set is a list of all the commands that can be processed by a CPU
• Each instruction has a mnemonic that indicates what the instruction does alongside an
example binary code
• After an instruction is decoded into an opcode and an operand, the CPU finds the opcode
in the processor’s instruction set
Add ADD 10100001 Adds a value to the value currently stored in the accumulator (ACC)
Subtract SUB 00100010 Subtract a value from the values stored in the accumulator
Load LDA 10111111 Load the value stored in a memory location into the accumulator
Store STA 01100000 Store the value in the accumulator in a specific location in memory
o A program created using one computer’s instruction set would not run on a
computer containing a processor made by a different manufacturer
o For example, a computer program created using Intel’s instruction set would not
run on a device containing an ARM processor
Worked Example
Using the instruction set in the table above what would be the operation if the instruction was
00100010 00000010?
[1]
Answer
Either of:
• If the operand was raw data the complete instruction would be to subtract 2 from
the value in the accumulator [1]
Embedded Systems
o Heating thermostats
o Hospital equipment
o Washing machines
o Dishwashers
o Coffee machines
o Satellite navigation systems
o Factory equipment
o Security systems
o Traffic lights
Always use key examples from the list above and don’t try to use different examples such as a
fridge or kettle as these will not appear on mark schemes because although they have a single
purpose, most fridges and kettles do not have a CPU.
Worked Example
1) Tick two boxes below to show which are an example of an embedded system
[2]
Laptop
Washing Machine
Mobile Phone
[2]
Answers
1) Tick two boxes below to show which are an example of an embedded system. [2]
Laptop
Washing Machine ✓
Mobile Phone
• A washing machine and car engine management system are not general-purpose
computers [1]
• A washing machine and car engine management system have a single purpose and
are both housed inside a larger mechanical unit [1]
• A washing machine and car engine management system have a microprocessor [1]
Input Devices
• Input devices are hardware components that allow users to interact with a computer
system
• They enable the user to input data or commands into the system, which the computer
then processes to produce an output
• Supermarkets
• Reads barcodes to • Quickly and accurately
Barcode
capture product • Warehouses retrieves product details
Scanner
information. for stock and checkout
• Libraries
• Photography
• Captures photographs
• High-quality visual
Digital Camera or videos as digital • Smartphones
content
images
• Webcams
• Recording
• Captures analogue studios • Audio recording
Microphone sound and converts it
• Smartphones • Voice communication
into digital signals
• Computers
• Modern
• Detects touch through
smartphones • Smooth, responsive
Touch Screen changes in electrical
touch experience with
(Capacitive) charge on the screen • Tablets
multi-touch capabilities
surface
• Touch monitors
• Offices
Two- • Captures flat, 2D • Digitises documents and
Dimensional images of documents • Libraries photos for storage,
(2D) Scanner or photos editing, or sharing
• Schools
• Manufacturing
Three- • Captures detailed 3D • Creates digital models of
Dimensional shapes and dimensions • Design objects for design,
(3D) Scanner of objects analysis, or reproduction
• Medical imaging
Output Devices
• Output devices are hardware components that receive information from a computer
system and present it to the user in an understandable form
• They enable the computer to communicate the results of processed data or commands
• Home
• Prints text and images onto • Low cost compared
Inkjet printer paper by spraying tiny • Schools to other types of
droplets of ink printer
• Offices
• Offices • Bright
Liquid Crystal • Projects images or video onto
Display (LCD) a screen by shining light • Classrooms • Excellent balance of
projector through liquid crystal panels quality and
• Home cinemas affordability
• Televisions • Energy efficient
Liquid Crystal • Displays images and video • Monitors • Thin
Display (LCD) using liquid crystals with a
screen backlight • Smartphones • Sharp images
• Laptops • Lightweight
• Televisions
• Converts electrical signals
• Multiple shapes and
Speaker into analogue sound waves to • Radios
sizes
play music
• Smartphones
• Manufacturing
• Adds thin layers of plastic, • Medicine • Create prototypes
3d printer one on top of another to form
a three dimensional object • Education • Custom parts
• Home
When recommending a device for a specific situation, consider the following factors:
• User Needs
o What tasks will the user be performing? A graphic designer might need a graphics
tablet, while a data entry clerk might need a keyboard with a number pad
• User Skills
o Is the user comfortable with the device? A touch screen might be more intuitive
for some users, while others might prefer a mouse and keyboard
• Environment
o Where will the device be used? A wireless mouse might be suitable for a clutter-
free office, while a wired mouse might be better for a public computer lab to
prevent theft
• Cost
o Higher-end devices often have more features but are also more expensive.
Consider the budget and whether the extra features are worth the cost
Sensors
o A monitoring system tracks the state of a system, it gathers data and may
issue warning messages
o A control system will control the system based upon the input from sensors
o For example, if the water temperature in a fish tank fell below the acceptable
level, a control system would start up a heater
• A process where outputs are recycled and used as inputs, creating a continuous cycle is
called a feedback loop
• You are likely to be given a scenario and asked to identify the sensors that would be used.
Flow Rate of gas, liquid or powder flow Detect changes in the flow through pipes in water system
Worked Example
What type of sensor would be used to help drivers when reversing? [1]
A Motion
B Infra-red
C Light
D Proximity
A Monitoring
B Control
Answer
A Motion
B Infra-red
C Light
D Proximity
A Monitoring
B Control
Data Storage
Primary Storage
• Both types of storage play a crucial role in the operation of a computer system
Primary Secondary
• A computer needs primary storage because access times are considerably faster than
secondary
• This means the time taken to complete operations such as the Fetch-Execute
Cycle is dramatically reduced
• Primary storage holds the data and instructions that the CPU needs to access whilst the
computer is turned on
• Due to the fast access times, primary storage is used as short-term, working memory, in
hardware that is directly connected to the CPU such as RAM, and components that
reside inside the CPU such as Cache and Registers
• Performance of primary storage means a much higher cost which limits the amount that
is used
RAM
• RAM (Random Access Memory) is primary storage that is directly connected to the
CPU and holds the data and instructions that are currently in use
• RAM is volatile which means the contents of RAM are lost when the power is turned off
• For the CPU to access the data and instructions they must be copied from secondary
storage
• RAM is very fast working memory, much faster than secondary storage
• RAM is read/write which means data can be read from and written to
Worked Example
A smart television allows the user to search the Internet and watch videos online.
The smart television uses RAM
Give two examples of data that the smart television could store in RAM [2]
Possible answers
• Current volume
• ROM (Read Only Memory) is primary storage that holds the first instructions a
computer needs to start up (Bootstrap)
• ROM is fast memory, much faster than secondary storage but slower than RAM
• ROM is non-volatile which means the contents of ROM are not lost when the power is
turned off
• ROM is read only which means data can only be read from
Worked Example
Quinn has 512 kilobytes of ROM and 16 gigabytes of RAM in her computer
1. Describe the purpose of the ROM in Quinten computer [2]
Answer
1. ROM
• Store start-up instructions/bootstrap
2. RAM
NB: Do not confuse the purpose with characteristics, describe what it does, not what it is
Secondary Storage
• Storage devices are non-volatile secondary storage, that retain digital data within a
computer system
• They provide a means of storing, accessing, and retrieving data, which can include
software applications, documents, images, videos, and more
o Magnetic
o Optical
• Computer systems need both primary and secondary storage to operate
• Both types of storage play a crucial role in the operation of a computer system
Primary Secondary
• A computer needs secondary storage for long term storage of programs and data that
are currently not in use
Characteristics
• Speed - How fast can data be read from and written to? (R/W)
• Reliability - What is the probability that the device will consistently perform its
function?
Worked Example
State, using an example, why the games console needs secondary storage [2]
Answer
• To store data once the power is turned off / permanently // for non-volatile storage
o Save games
o User data/profiles
o Downloaded content/applications/updates
Magnetic Storage
• Magnetic storage is a type of non-volatile media that uses magnets (polarity) to store
binary 0s and 1s
• A magnetic hard disk is made up of several metal discs coated with a magnetic material
• Each platter is divided by concentric circles creating several tracks and wedge
shaped sectors
• A read/write arm, controlled by an actuator, moves the head over the surface of the disc
to the location of the data
• The data is read/written using electromagnets
Advantages Disadvantages
Capacity - High storage Durability - Moving parts can get damaged if dropped
Cost - Low per gigabyte Portability - Heavy & bulky making them less convenient for transpor
• Solid-state (flash memory) storage is a type of non-volatile media that uses electronic
circuits to store binary 0s and 1s
o Solid state drives (SSD) - replacing magnetic hard drives as a computers primary
secondary storage device as capacity increases and cost decreases
• It uses NAND and NOR gates in electrical circuits to persistently control the flow of
electrons
• Solid-state (flash memory) is memory made up of tiny cells that can contain one bit of
data (1 or 0)
• Each cell contains a transistor that acts as a switch that can be turned on or off
o Control gate - top layer of transistor, connects to circuit and controls if current
can flow through the transistor
o Floating gate - can hold a charge (like a tiny rechargeable battery) and is
sandwiched between two layers of insulating material (Oxide)
• To remove data, a high voltage charge is applied in the opposite direction, pulling the
electrons off the floating gate
Advantages Disadvantages
Noise - Silent
Optical Storage
• Optical storage is a type of non-volatile media that uses lasers to burn the surface of a
disk, creating pits and lands suitable for storing binary 0s and 1s
• All optical devices work by shining a laser at the disk and processing the reflection
• In CD-Rs a laser burns the data, permanently on to the disk, by creating pits and lands
• The laser is also used to read the data from the pits and lands
• When the laser light hits the point where the pit changes into a land or vice versa
the light scatters and is not reflected back as well.
• This is captured by a sensor and can be interpreted as a change in the binary value
Advantages Disadvantages
Worked Example
Zarmeen has purchased a new tablet computer. The tablet has an internal secondary storage
device.
The storage device is a solid state device.
1. Give three benefits of the tablet having a solid state device instead of a magnetic
device [3]
2. Give two drawbacks of the tablet having a solid state device instead of a magnetic
device [2]
Answers
• Benefits
• Drawbacks
Guidance
• Programs and data not currently being executed are transferred to virtual memory
• Programs and data are transferred back to RAM when they are needed
• Pages of data are transferred between RAM and virtual memory when needed
• Virtual memory is much slower than RAM and its use will impact negatively on system
performance
• To avoid the use of virtual memory, increase the size of the RAM
Virtual memory does not increase the actual size of RAM. It creates temporary space on
secondary storage. It makes the system usable, not faster.
Example
• In the example above, the computer is turned on and the elements of the operating system
are loaded into RAM
• The user opens some spreadsheet and video editing software but RAM is full
• The program not currently being used (video editing) is transferred to virtual memory
• When the user wants to use the video editing software again, it is transferred back from
virtual memory to RAM
Case Study
Worked Example
A computer only has 4GB of RAM, Anesu says that virtual memory can be used instead of
adding more RAM.
1. Explain how virtual memory can compensate for the lack of RAM in Anesu's
computer [3]
2. Explain why it would be beneficial for Anesu to get more RAM instead of relying on
virtual memory [2]
How to answer these questions
2. What is the downside of using virtual memory? turn this into an advantage of adding
more RAM
Answers
o Data from RAM is moved to the secondary storage/Virtual Memory (to make
space in RAM)
o More RAM will improve the performance of the computer // More RAM will
speed up the access to data
o Virtual Memory is slower to access than RAM direct (because it has to go back to
RAM first)
• Cloud storage is a term to describe long-term (secondary) storage of data that resides in
a remote location, accessible only via a wide area network (Internet)
• Data is stored on remote servers, typically using magnetic storage (HDD), but
increasingly using solid state (SSD)
Advantages Disadvantages
• Cloud storage offers several advantages over storing data on a local secondary storage
device
Benefit Explanation
• Data can be accessed by anyone with the relevant permissions, making it quick to
Accessibility
share files and collaborate with others
• Cloud storage providers often use multiple servers to store and backup data, reducing
Reliability
the risk of data loss due to hardware failure
• There is no need to hire specialist staff as IT services being provided by the cloud
storage provider
• One cloud storage centre is more environmentally friendly than millions of individual
servers
o If the user has a slow or unreliable internet connection they would have
problems accessing their files
o Data being sent over the internet has the potential to be intercepted
o Security is managed by the cloud storage provider which means the user does not
have complete control over it but is still legally responsible for ensuring
any personal and sensitive data is secure
Worked Example
A school currently stores all of their data on local servers. They are considering upgrading their
system to utilise cloud storage.
Explain two disadvantages to the school of storing their data in the cloud.
[4]
• if the internet connection failed, teachers would not be able to access lesson files [1]
• if the internet connection failed, teachers would not be able to access student data/take
electronic registers [1]
• if the internet connection failed, students would not be able to access their
work/coursework [1]
• but the school is still legally responsible if data is accessed by unauthorised people [1]
• Data stored on the cloud could be hacked or intercepted [1]
Explain two advantages to the school of storing their data in the cloud.
[4]
• Data can be accessed from anywhere and from any device provided there is an internet
connection [1]
o Router
o Transmission media
o Network interface card (NIC)
• The Network Interface Card (NIC) is required for a computer to connect to a network
• A NIC can be both wired and wireless and allows your computer to send and receive data
over a network
MAC Addresses
• A MAC (Media Access Control) address is a unique identifier given to devices which
communicate over a local area network (LAN)
• MAC addresses make it possible for switches to efficiently forward data to the
intended recipient
• Any device that contains a Network Interface Card (NIC) has a MAC address assigned
during manufacturing
• The first three pairs are the manufacturer ID number (OUI) and the last three pairs are
the serial number of the network interface card (NIC)
• There are enough unique MAC addresses for roughly 281 trillion devices
IP Addresses
• IP addresses can be static, meaning they stay the same or dynamic, meaning they can
change
• Each block is one byte (8 bits), each address is 4 bytes (32 bits)
• IPv4 provides over 4 billion unique addresses (232), however, with over 7 billion people
and countless devices per person, a solution was needed
IPv6
• Each block is 2 bytes (16 bits), each address is 16 bytes (128 bits)
• IPv6 could provide over one billion unique addresses for every person on the planet (2128)
Worked Example
Computers in a network can be identified using both IP addresses and MAC addresses.
Describe two differences between IP addresses and MAC addresses [2]
Answer
• The router is responsible for routing data packets between different networks
• An example of data the router can direct is, sending internet traffic to the correct
destination/devices in your home network
• The router connects networks together, local area networks (LAN) to the wider internet
which is a type of wide area network (WAN)
• The router can manage and prioritise data traffic, which can help to keep connections
stable
Image of a router
To answer the question you must simply identify 3 tasks a router does
• Software can be broken down in to two categories, system and application software
System Software
• System software is software essential for the operation of the computer system
o Utility software
Utility software
o Defragmentation (maintain)
o Compression (enhance)
o Encryption (enhance)
o Task manager (troubleshoot/repair)
Application Software
• Application software is software chosen by a user to help them carry out a specific task
An operating system (OS) is software that manages computer hardware and provides a
platform for running applications
• It provides an interface between the user and the hardware in a computer system
• It hides the complexities of the hardware from the user, for example:
o A user does not need to know 'where' on secondary storage data is kept, just that it
is saved for when they want it again
In the exam, you’re often asked to name and describe two functions of an OS. Don’t waffle. Say
what the OS does and why, for example:
“Memory management [1] allocates RAM between programs so they run efficiently [1].”
1. File Management
• File management is a process carried out by the operating system creating, organising,
manipulating and accessing files and folders on a computer system
• The OS manages where data is stored in both primary and secondary storage
o Create files/folders
o Name files/folders
o Rename files/folders
o Copy files/folders
o Move files/folders
o Delete files/folders
• The OS allows users to control who can access, modify and delete files/folders
(permissions)
• The OS provides a search facility to find specific files based on various criteria
2. Handling Interrupts
• Interrupt events require the immediate attention of the central processing unit
• In order to maintain the smooth running of the system, interrupts need to be handled and
processed in a timely manner
• For example, if a user clicks cancel on a file conversion process, a signal is sent from the
mouse, interrupts the processor, and the operating system will trigger the cancellation
routine
3. User Interface
• A user interface is how the user interacts with the operating system
o Menu
o Natural language (NLI)
• A Command Line Interface (CLI) requires users to interact with the operating system
using text based commands
• Examples of CLIs are MSDOS (Microsoft Disk Operating System) and Raspbian (for
Raspberry Pi)
• A Graphical User Interface (GUI) requires users to interact with the operating system
using visual elements such as windows, icons, menus & pointers (WIMP)
• GUIs are optimised for mouse and touch gesture input
• Examples of GUIs are Windows, Android and MAC OS
• A menu interface is successive menus presented to a user with a single option at each
stage
• Examples include
• A natural language interface (NLI) uses the spoken word to respond to spoken or textual
inputs from a user
• Examples include
o Search engines
Natural language • Can be used by people with disabilities • Not always reliable
(NLI) • Intuitive • Privacy concerns
• Peripheral management is a process carried out by the operating system managing the
way peripherals (hardware) interact with software
Device Drivers
• The OS has generic device drivers built in which makes basic compatibility possible
and enables plug-and-play (PnP)
• In order for hardware to be used to its maximum capacity, often a separate device
driver must be downloaded from the manufacturer
• Device drivers are OS specific and are regularly updated
5. Memory management?
• Memory management is a process carried out by the operating system allocating main
memory (RAM) between different programs that are open at the same time
• The OS is responsible for copying programs and data from secondary to primary
storage as it is needed
• Programs and data require different amounts of RAM to operate efficiently and the
OS manages this process
• RAM is allocated based on priority and fairness, for example, system applications
(essential) may have a higher priority than user applications
• The OS dynamically manages the memory, adjusting allocation as needed to maintain
optimal system performance
• Memory management makes multitasking possible
6. Process Management
• The CPU can only execute one instruction at a time, it can can execute billions of them
in one second.
• This makes it appear that multiple programs are running at the same time
Just naming functions (e.g. “File management, memory management…”) won’t earn full
marks. You must explain each one using exam-friendly language like “allocates,” “controls,”
or “manages.”
• Operating systems provide a platform on which application software can run, this is
mainly by allowing software access to system resources
• For example, if a computer game has intensive graphics and online play, the operating
system will grant it access to the GPU and the network card
Organisation of application layer, operating system components, and input/output
• System accounts can also be restricted from performing certain actions, e.g. editing
network settings, installing unapproved software, changing the account settings of other
users
9. User Management
• User management is a process carried out by the operating system enabling different
users to log onto a computer
• The OS is able to maintain settings for individual users, such as desktop backgrounds,
icons and colour schemes
• A system administrator is able to allocate different access rights for different users on a
network
Worked Example
• Break down the 6 marks, 1 mark each for identifying a function of the operating system.
For each function you need to make 2 points about how they work
Answer
• Memory management
• File management
o Creating/editing/renaming files
o Creating/editing/renaming folders
o Movement of files/folders
Hardware, Firmware & the Operating System
How does application software, the operating system and hardware communicate?
• Application software talks to the operating system, this allows it to interact with
the hardware
• The hardware processes and sends the information to the operating system which talks
directly to the applications software
• When a computer is turned on, it has to explore the ROM for its initial boot-up
instructions, these are contained in a Bootstrap loader
• The initial process is handled by the basic input/output system (BIOS) which is known
as firmware
• Once start-up is complete, instructions are sent to RAM to be processed by the operating
system
• This layer ensures that hardware devices e.g. keyboard and mouse are available and can
be communicated directly by the operating system
• Firmware translates between the hardware and the software
Interrupts
• An interrupt is a signal for the CPU to stop what it is currently doing and do
something else as a higher priority
• The CPU is in a continuous loop of carrying out the fetch-decode-execute cycle, however
there are occasions when this needs to be interrupted
o Software - this occurs when an application stops or requests services from the OS
• Interrupts are added to an area called the interrupt service routine
• The interrupt service routine holds instructions that will need to be fetched, decoded and
executed to complete the commands of the interrupt
• The contents of the registers within the CPU cannot be lost by an interrupt, so contents
are copied to a reserved area in RAM called a stack
• Contents are added to the top of the stack, which will save them for later retrieval when
the interrupt is complete
• The interrupt will be executed instead of the original instructions
In exam answers, always mention that the CPU saves the current state to a stack before
executing the ISR. Just saying “the CPU stops” won’t earn full marks, you must include the idea
of resuming the original task after the interrupt.
• Software
Worked Example
[4]
Answer
Four from:
• Used to make sure that vital tasks are dealt with immediately
Cambridge IGCSE 0478 expects you to explain the difference between low-level and high-level
languages, and name advantages and disadvantages of each. This page is structured to mirror
the format used in real exam questions.
• A programming language acts as a bridge between what humans understand and what
a computer understands
• Early computers were complex and instructions would have to be in written in binary
code, 0s and 1s
o Low-level
▪ First generation
▪ Second generation
o High-level
▪ Third generation
Low-Level Languages
• A low-level language is a programming language that directly translates to machine
code understood by the processor
• Low-level languages allow direct control over hardware components such
as memory and registers
• These languages are written for specific processors to ensure they embed the correct
machine architecture
First generation
• Machine code is a first-generation language
• The code is written using mnemonics, abbreviated text commands such as LDA (Load),
STA(Store)
• Needs to be translated into machine code for the computer to be able to execute it
Advantages Disadvantages
When describing low-level languages, don’t just say “they are faster” , you must say they allow
direct control over hardware or memory, which leads to greater efficiency. Be specific to earn
the mark.
High-Level Languages
• A high-level programming language uses English-like statements to allow users to
program with easy to use code
• High-level languages allow for clear debugging and once programs are created they
are easier to maintain
• High level languages were needed due to the development of processor speeds and
the increase in memory capacity
o Python
o Java
o Basic
o C++
Advantages Disadvantages
Easier to read and write The user is not able to directly manipulate the hardware
Portable so can be used on any computer The program may be less efficient
Assembly language is a second generation, low-level language designed to simplify the writing
of machine code instructions for programmers
o ADD Addition - this will add the value input or loaded from memory to the value
in the accumulator
• Assembly language allowed continuation of working directly with the hardware but
removed an element of complexity
• An assembler is needed to check the word so that it can be converted into machine code
• If a match from the word is found e.g. STO the word is replaced with the relevant binary
code to match that sequence
Worked Example
Complete the table to identify whether each example of computer code is High-level, Assembly
language or Machine code
10110111
00110110
11100110
FOR X = 1 to 10
PRINT x
NEXT X
INP X
STA X
LDA Y
[3]
Answer
10110111
00110110 X
11100110
FOR X = 1 to 10
PRINT x X
NEXT X
INP X
STA X X
LDA Y
Translators, Compilers & Interpreters
Translator
• A translator is a program that translates program source code into machine code so that
it can be executed directly by a processor
Compiler
• A compiler translates high-level languages into machine code all in one go
• Compilers are generally used when a program is finished and has been checked for
syntax errors
• Compiled code can be distributed (creates an executable) and run without the need for
translation software
• If compiled code contains any errors, after fixing, it will need re-compiling
Advantages Disadvantages
Original source code will not be seen Changes mean it must be recompiled
Interpreter
• An interpreter translates high-level languages into machine code one line at a time
• Each line is executed after translation and if any errors are found, the process stops
• Interpreters are generally used when a program is being written in the development stage
•
Advantages Disadvantages
Stops when it finds a specific syntax error in the code Slower execution
Worked Example
(b) Either a compiler or an interpreter can translate the code. Describe two differences between
how a compiler and an interpreter would translate the code.[2]
How to answer this question
Answer
(a)
IDE
• IDEs include tools and facilities to make the process of creating/maintaining code
easier, such as:
o Editor
o Error diagnostics
o Run-time environment
o Translators
Editor
• An editor gives users an environment to write, edit and maintain high-level code
• Editors can provide:
o Basic code formatting tools - changing the font, size of the font and making text
bold etc
Error-diagnostics
• Tools that help to identify, understand and fix errors in code, such as:
Run-time environment
• Gives users the ability to run and see the corresponding output of a high-level language
Translator
• Built in to compile or interpret code without the need for an extra piece of software
The Internet & its Uses
The Internet
• The Internet is a global network of networks
• The Internet is the infrastructure used to provide connectivity to the World Wide Web
• The world wide web, or simply the web, is a collection of websites and web pages that
are accessed using the internet
• The web consists of interconnected documents and multimedia files that are stored
on web servers around the world
• Web pages are accessed using a web browser, which communicates with web servers to
retrieve and display the content
NB: Students often say the web is the Internet. It’s not, the Internet includes email, FTP, VoIP,
and other services too, not just websites.
HTTP & HTTPS
• Hypertext Transfer Protocol (HTTP) allows communication between clients and servers
for website viewing
• HTTP & HTTPS are protocols, a set of rules governing communication between devices
on a network
• HTTP allows clients to receive data from the server (fetching a webpage) and send
data to the server (submitting a form, uploading a file)
• HTTPS works in the same way as HTTP but with an added layer of security
“HTTPS encrypts the data being transmitted to keep it secure, unlike HTTP.”
Web Browser
• A web browser is a piece of software used to access and display information on the
internet
• Web browsers interpret the code in HTML documents and translate it into a visual
display for the user
Function Description
Provide navigation tools E.g. back/forward buttons and home button, to help users move between pages
Record user history Allow users to quickly revisit recently viewed web pages
Provide address bar A place for user to type in the URL (link to URL page) of a web page to visit
Allow multiple web pages to be open at once so users can quickly switch
Multiple tabs
between them
Loading a Web Page
• The browser connects to the web server and requests to access the page
• HTML (4) is transferred and rendered by the browser, displaying the web page
Web Servers
• A web server is a remote computer that stores the files needed to display a web
page on the Internet
• Web servers are generally available 24/7 and security is managed by the owner of the
hardware
• A Uniform Resource Locator (URL) is a unique identifier for a web page, known as
the website address
o Protocol
o Domain name
Domain name [Link] Name of the server where the resource is located
• The Domain Name System (DNS) can be thought of as the Internet's equivalent to
a phone book
• When you type a URL into your browser, the DNS translates the domain name into its
associated IP address so your computer can connect to the server hosting the website
• Without DNS, we would have to remember the IP address of every site we want to visit
HTML (4)
• Hypertext Markup Language (HTML), is the foundational language used to structure
and present content on the web
•
• <!DOCTYPE html>
• <html>
• <head>
• <title>Progress Christian College</title>
• </head>
• <body style="background-color: blue;">>
• <header>
• <h1>Welcome to Progress Christian College</h1>
• </header>
• <main>
• <section>
• <h2>About Me</h2>
• <p>This is a paragraph about me.</p>
• </section>
• <section>
• <h2>My Projects</h2>
• <p>This is a paragraph about my projects.</p>
• </section>
• </main>
• <footer>
• <p>Contact: myemail@[Link]</p>
• </footer>
• </body>
• </html>
•
• In this example, HTML is used to create a structure with a header, two sections in
the main body, and a footer
• Other examples of HTML being used for structure include:
Present
• HTML is also used to present and display information in a visually meaningful way
• The content layer of a web page is made up of HTML elements such as headings (<h1>,
<h2>, etc.), paragraphs (<p>), links (<a>), images (<img>), and more
Worked Example
Explain how the information stored on the company’s website is requested by the customer, sent
to the customer’s computer and displayed on the screen.
[7]
Answer
Seven from:
Requested
• user enters the URL / web address (into the address bar) // clicks a link containing
the web address // clicks an element of the webpage
• protocols used are Hyper Text Transfer Protocol (HTTP) / Hyper Text Transfer
Protocol Secure (HTTPS)
Sent
• the domain name server (DNS) stores an index of domain names and IP addresses
• web browser sends a request to the web server / IP address
Received
• webserver sends the data for the website back to the web browser
• A cookie is a tiny data file stored on a computer by browser software that holds
information relating to your browsing activity
• The Privacy and Electronic Communications Regulations (2003) is a law that governs
the use of cookies
• It can be exchanged online to pay for goods and services or for transferring money
internationally
• This can make digital currencies highly volatile, their value can fluctuate rapidly in a
short period of time
• Digital currency investment can be risky due the volatility
• All transactions made using crypto currency are publicly available and tracked
using cryptography
• Examples include
o Bitcoin
o Ethereum
NB: In the IGCSE exam digital currency and crypto currency are the same thing, although in real
life they are not strictly the same thing.
Blockchain
• A blockchain is a digital ledger that records every transaction made with a particular
digital currency
o This verification process ensures that the transaction is legitimate and prevents
any fraudulent activity
Cyber Security Threats
• Computers face a variety of forms of attack and they can cause a large number of issues
for a network and computers
o Brute-force attacks
o Hacking
o Malware
o Pharming
o Phishing
o Social engineering
• They would then try each possible combination until the pin was cracked, for example
o 0000
o 0001
o 0002
• A second form of this attack, commonly used for passwords is a dictionary attack
• This method tries popular words or phrases for passwords to guess the password as
quickly as possible
• Popular words and phrases such as 'password', '1234' and 'qwerty' will be checked
extremely quickly.
Data interception
• Data interception and theft is when thieves or hackers
can compromise usernames and passwords as well as other sensitive data
• A packet sniffer will be able to collect the data that is being transferred on a network
• A thief can use this data to gain unauthorised access to websites, companies and more
DDoS Attack
• A DDoS attack uses computers as 'bots', the bots act as automated tools under the
attackers control, making it difficult to trace back to the original source
• A DDoS attack can result in companies losing money and not being able to carry out
their daily duties
Hacking
• Access can be for various malicious purposes, such as stealing data, installing malware,
or disrupting operations
• Hackers seek out opportunities that make this possible, this includes:
o Unpatched software
o Out-of-date anti-malware
Malware
• Malware (malicious software) is the term used for any software that has been created
with malicious intent to cause harm to a computer system
• There are various types of malware and each has slightly different issues which they
cause
• Contains code that will replicate and cause unwanted and unexpected events to occur
o Delete data
• Very similar to viruses, main difference being that they spread to other drives and comput
the network
o Email
o Network connection
• Embedded into other software such as games or programs that have been downloaded
Spyware
from illegitimate sources
• Can record your screen, log your keystrokes to gain access to passwords and more
Adware • Users have little or no control over the frequency or type of ads
• Locks your computer or device and encrypts your documents and other important files
Ransomware
• A demand is made for money to receive the password that will allow the user to decrypt th
• No guarantee paying the ransom will result in the user getting their data back
Pharming
• Pharming is typing a website address into a browser and it being redirected to a 'fake'
website in order to trick a user into typing in sensitive information such as passwords
• An attacker attempts to alter DNS settings, the directory of websites and their matching
IP addresses that is used to access websites on the internet or change a users browser
settings
Phishing
• Phishing is an attempt to try and gain access to your details, often by coaxing the user to
click on a login button/link
Social Engineering
o Pretexting: A scammer will send a fake text message, pretending to be from the
government or human resources of a company, this scam is used to trick an
individual into giving out confidential data
• People are seen as the weak point in a system because human errors can lead to
significant issues, some of which include:
o Sharing passwords
[4]
(ii) Suggest one security device that can be used to help prevent a DDoS attack.[1]
Answers
• multiple computers are used as bots; designed to deny people access to a website; a
large number / numerous requests are sent (to a server) …; … all at the same time
(ii)
• firewall OR proxy server
Keeping Data Safe
Access Levels
• Access levels ensure users of a network can access what they need to access and do not
have access to information/resources they shouldn't
• Access levels can be set based on a user's role, responsibility, or clearance level
o Full access - this allows the user to open, create, edit & delete files
o Read-only access - this only allows the user to open files without editing or
deleting
o No access - this hides the file from the user
o Teaching Staff: Partially restricted - Can access all student data but cannot
access other staff members' data
o Students: Restricted - Can only access their own data and files
Anti Malware
o Anti-virus
o Anti-spam
o Anti-spyware
• Anti-malware scans through email attachments, websites and downloaded files to search
for issues
Authentication
• Authentication is the process of ensuring that a system is secure by asking the user
to complete tasks to prove they are an authorised user of the system
o Multi-factor authentication
o CAPTCHA - see example below
Biometrics
Communication
• One way of protecting data is by monitoring digital communication to check for errors
in the spelling and grammar or tone of the communication
• Phishing scams often involve communication with users, monitoring it can be effective
as:
o Rushed - emails and texts pretending to be from a reputable company are focused
on quantity rather than quality and often contain basic spelling and grammar
errors
o Urgency - emails using a tone that creates panic or makes a user feel rushed is
often a sign that something is suspicious
URL
Checking the URL attached to a link is another way to prevent phishing attacks
• Hackers often use fake URLs to trick users into visiting fraudulent websites
Firewalls
• A firewall monitors incoming and outgoing network traffic and uses a set of rules to
determine which traffic to allow
• It can be both hardware and software and they are often used together to provide
stronger security to a network
o Hardware firewalls will protect the whole network and prevent unauthorised
traffic
o Software firewalls will protect the individual devices on the network, monitoring
the data going to and from each computer
• Hackers
• Malware
Privacy Settings
• Privacy settings are used to control the amount of personal information that is shared
online
• They are an important measure to prevent identity theft and other forms of online fraud
• Users should regularly review their privacy settings and adjust them as needed
Proxy Servers
• A proxy-server is used to hide a user's IP address and location, making it more difficult
for hackers to track them
• They act as a firewall and can also be used to filter web traffic by setting criteria for
traffic
• Malicious content is blocked and a warning message can be sent to the user
• Proxy-servers are a useful security measure for protecting against external security
threats as it can direct traffic away from the server
SSL
• SSL is widely used to protect online transactions, such as those involving credit card
information or other sensitive data
• This contains the public key which can be used for authentication
(i) ) Identify a security solution that could be used to protect a computer from a computer virus,
hacking and spyware.
Each security solution must be different
Computer virus
Hacking
Spyware
[3]
(ii) Describe how each security solution you identified in (i) will help protect the computer.
[6]
Answers
(i)
Firewall
Hacking Passwords
Biometrics
Two-step verification
Anti-malware/virus (software)
Firewall
• Anti-malware/virus (software)
o Scans the computer system (for viruses)
• Anti-malware/spyware (software)
• Firewall
o Blocks any traffic that does not meet the criteria/rules set // set
blacklist/whitelist
• Passwords
o Changing it regularly
o Lock out after set number of attempts // stops brute force attacks // makes it
more difficult to guess
• Biometrics
o Data needed to enter is unique to individual
o … therefore it is very difficult to replicate
• Two-step verification