computer science ocr j227 - Unit 1 Cornell Notes
computer science ocr j227 - Unit 1 Cornell Notes
The purpose of the CPU - Most important part of the computer (brain)
- Computers use language called Binary (0s and
1s)
- Comps use transistors (switches) that
constantly go on and off depending if electricity
flows through them
- Processes instructions from RAM
- Decodes the instructions into machine code
(binary) and executes the data
ALU (Arithmetic Logic Unit) Performs all the maths and logical operations of the
computer.
Registers High speed memory located around CPU that stores data
needed for processing.
MAR (Memory Address - Stores memory address from which data will be
Register) fetched or address of where data will be stored
- Variables are an example of this
MDR (Memory Data Register) Data is temporarily stored in MDR before being sent to
RAM/the main memory.
Program Counter Holds the address of the current or next instruction that
will be executed/is being executed.
Clock Speed Number of FDE cycles executed per second. This is then
measured as clock cycles (Hz).
Cache Size The bigger the CPU, the more frequently used data you
can store, saving time. However, speeds tend to be slow
and can be insignificant.
The need for primary stor6. - Meant to store short-term memory with the
OCR GCSE (J277) 1.2 The exception of ROM that stores bootstrap
need for primary storageage instructions and BIOS
- Fast access times due to being primary source for
storage
- Holds instructions which CPU needs to access
while operating
The need for secondary - Used to store data and information we will need
storage later on
- Allows users to access software and to interact
with computer
- Without secondary storage, software would need
to be installed each time for every time we use
comp
- Also wouldn’t be able to save any files e.g videos,
images etc
Optical ● Capacity
- Limited space: CDs=700MB, DVD=4GB,
Blu-ray=25GB
● Speed
- Relatively slow/long loading speeds
● Portability
- Is able to be carried around however it
needs a specific device (optical reader) to
be able to transfer data.
● Durability
- Can be fragile meaning it can be easily
damaged/ scratched
● Reliability
- Due to having specific marks lasered onto
disk, damage can destroy these marks,
irreversible
● Cost
- Cheaper than solid state and magnetic
Magnetic ● Capacity
- Can store near infinite amounts of data
● Speed
- Faster than optical but slower than solid
state. Is relatively fast
● Portability
- Usually internal, built within a computer,
but externals exist
● Durability
- Internal disk can be scratched if
overworked
- Magnets can damage the magnetisation of
drive
● Reliability
- Good reliability, able to achieve its purpose
despite buffering sometimes
● Cost
- Can be cheap, depends on how much
storage it can hold
- Good ratio f bytes to £
1.2.3 Units
The units of data storage: - Bit: smallest possible unit of data dictated by
● Bit binary code, one binary digit
● Nibble (4 bits) - Nibble: the smallest nibble is 4 bits. The largest
● Byte (8 bits) amount of bits that can represent a nibble is 15.
● Kilobyte (1,000 bytes - Byte: data that is represented by 8 singular bits of
or 1 KB) binary code
● Megabyte (1,000 KB) - Kilobyte: 1000 bytes
● Gigabyte (1,000 MB) - Megabyte: 1000 kilobytes
● Terabyte (1,000 GB) - Gigabyte: 1000 Megabytes
● Petabyte (1,000 TB) - Terabyte: 1000 Gigabytes
- Petabyte: 1000 Terabytes
sound file size - Sound files are usually 96 kbps - 160 kbps
- Sample size = Number of samples per second x
Number of bits per sample x length of sample in
seconds
How to convert positive - Perform the steps for the binary to hexadecimal
denary whole numbers into conversion
2-digit hexadecimal numbers - Separate the number into nibbles and calculate
and vice versa the hex equivalent for each nibble with a table
- This table appears like this, representing a denary
Number representation number in binary which in turn has a hexadecimal
equivalent:
How to convert binary - Start at the rightmost digit and break the binary
integers to their hexadecimal number into nibbles ( 4 bits)
equivalents and vice versa - Convert each nibble into denary and then into its
hexadecimal value
Number representation - Combine the two nibbles again to get your answer
- Example: 1101 0111 = 13 7 = D7
The use of binary codes to - Corresponding letter will be displayed when you
represent characters put in its binary counterpart
The relationship between the - ASCII, American Standard Code for Information
number of bits per character Interchange, is a subset of Unicode
in a character set, and the - Unicode covers characters across all forms of
number of characters which media and languages, such as emojis, numbers,
can be represented, e.g.: letters specific to certain languages and many
o ASCII more
o Unicode - ASCII only represents characters and letters in
the English language
- Unicode is more universal although it uses 32 bits
as opposed to ASCII’s 8 bits
How sound can be sampled - Sound is analogue and needs to be converted into
and stored in digital form binary to be understood by a computer
- This is done by sampling the height of the sound
waves at different regular intervals
- To produce a more accurate representation of the
song sample rate and bit depth must be increased
- Number of audio samples per second measured
in Hz (Hertz)
- Standard for an audio sample would be 44.1 kHz
(44,100 samples a second)
1.2.5 Compression
The need for compression - Occurs when a file is too big to be sent e.g file
size = 67GB
- Used for sending, downloading, storing and
archiving large files
Factors that affect the - Distance - the less distance data has to travel, the
performance of networks faster the network can work and send data to the
appropriate computer
- Transmission Media - the type of transmission
media used to connect devices together in a
network can also affect the way data is sent e.g
transmission through bluetooth may take longer
than through ethernet
- Number of devices in a network - the more
devices present in a network, the longer the data
will have to travel
- Bandwidth - the larger the capacity of the
transmission media, the faster data is sent
- Amount of data - the bigger the data file, the
longer it will take to send
The hardware needed to - WAP - short for Wireless Access Point. It’s a
connect stand-alone component associated with networks that connect
computers into a Local Area devices using Wi-fi to a network. They work
Network: wirelessly through signals and are commonly
o Wireless access points used for public spaces. Devices such as phones
o Routers can turn into WAPs e.g hotspot or data. Do not
o Switches read MACs of data packets and instead broadcast
o NIC (Network Interface to every device
Controller/Card) - Routers - connect LANs to WANs such as the
o Transmission media internet. Also dictates how data is sent in a
computer in a network by analysing computer IP
address, cable traffic and possible routes that
data can travel ASAP
- Switches - a device in a network that connects
computers in a network together in order for data
exchange to be possible. It establishes a secure
connection between computers while offering fast
loading speeds. Only sends the packets of data to
the intended node with the help of signals from a
computer's MAC card. Overall, switches offer a
secure and reliable connection between devices
in a network while having all the advantages of a
normal hub device.
- NIC - short for Network Interface Card. Piece of
hardware found in the motherboards of
computers. Assigns computers in a network MAC
addresses to ensure data exchange is between
the two appropriate computers.
- Transmission Media - refers to the hardware that
connects devices within a network, or networks to
networks, together.
The Internet as a worldwide - DNS - short for Domain Name Server. Converts
collection of computer domain names into IP addresses in order to
networks: identify devices in a network that have requested
o DNS (Domain Name the data. Also responsible for storing info about
Server) domains accessed by computer and their
o Hosting corresponding IP addresses
o The Cloud - Hosting - a web server that transmits data to other
o Web servers and clients websites
- The Cloud - refers to the storage or computing of
data and files that are directly run through the use
of the internet
- Web servers and clients - used to provide a
specific type of service for clients.
Encryption
IP addressing and MAC - MAC - short for Media Access Control. Ensures
addressing that computers in a network are uniquely
identified. This allows routers to correctly send
data to the appropriate computer as devices can
share the same IP if in the same network, making
data transfer harder
- IP addressing - delivers Packets from Host
(Sender) to Destination (Recipient). It sends the
packets by different routes
o Brute-force attacks - Brute force attacks are digital attacks that have
curated algorithms guess the password of a
victim’s account
- Commonly used to gain access to bank accounts
belonging to big individuals or big corporations
o Data interception and theft - Act of stealing and intercepting data while it's
being sent through a data traffic in a network
- Common and basic type of attack
- Usually done through the use of a packet sniffer
which detects and examines data traffic in a
network e.g. internet
o Legal issues - Issues that affect the laws set to dictate and
govern how the technology is used
o Environmental issues - Issues that affect the health and status of the
environment
o The Data Protection Act - Data must be collected for specified legitimate
2018 reasons.
- Data must be processed lawfully, fairly and in a
transparent manner.
- Data must be adequate, relevant and limited.
- Data must be accurate and where necessary kept
up to date.
- Data must not be kept for longer than is
necessary.
- Data must be processed in a manner that ensures
security.
- Data controller must be able to prove that their
measures are sufficient e.g policies.
Closed Source: