A2 Computer Science Notes 2023-2025
A2 Computer Science Notes 2023-2025
ORG
CAIE A2 LEVEL
COMPUTER SCIENCE
SUMMARIZED NOTES ON THE THEORY SYLLABUS
Prepared for Yung for personal use only.
CAIE A2 LEVEL COMPUTER SCIENCE
// Implementing inheritance
CLASS FlyingBird IMPLEMENTS Bird
// Class info...
ENDCLASS
// Creating an object
<name> ← NEW <class_name>(<parameter1>, <paramete
MyPet ← NEW Bird("Kiwi")
[Link] Copyright © 2025 ZNotes Education & Foundation. All Rights Reserved. This document is
authorised for personal use only by Yung at Trinity International College on 09/02/25.
CAIE A2 LEVEL COMPUTER SCIENCE
[Link] Copyright © 2025 ZNotes Education & Foundation. All Rights Reserved. This document is
authorised for personal use only by Yung at Trinity International College on 09/02/25.
CAIE A2 LEVEL COMPUTER SCIENCE
0 ⋅ 0110000 0011 →
1.3. Floating-point numbers, 0 ⋅ 1100000 0010
Benefits:
representation and manipulation
Avoids two of the same number being represented
Floating point representation differently.
Maximizes the potential precision.
Mantissa: Represents the numbers. If we increase the Allows us to store the maximum range of numbers in the
bits allocated to the mantissa, we increase accuracy. minimum number of bits.
Exponent: Represents the number of times the decimal
place needs to move. If we increase the bits allocated to Important values
exponent, we increase the range.
Largest positive number 0111 1111 0111
Smallest positive number 0000 0001 1000
Converting from Binary Digit to Positive Float Smallest normalized positive number 0100 0000 1000
Largest magnitude negative number 1000 0000 0111
Mantissa = 01101000
Exponent = 0011 Errors
1. Write the binary number with the decimal point Rounding Error: When numbers can’t be represented be
represented exactly in binary, an approximate value is
0 ⋅ 1101 used which is either more or less than the needed value.
When these numbers are then used in operations, the
2. Multiply with 2 to the power of the exponent (Move
inaccuracies get added to the point where they are
the decimal point the same number of places as the
visible in the final answer. Like 0.1 + 0.2 =
exponent)
0.3000000000004
0 ⋅ 1101 x 23 Underflow: Underflow occurs when a number is too
0110 ⋅ 1 close to zero to be accurately represented in binary,
leading to a loss of precision.
3. Convert to decimal by multiplying Overflow: Overflow happens when a number's
magnitude exceeds the limit that can be represented in a
(4 × 1) + (2 × 1) + ( 12 × 1)
Normalization
For a positive binary digit, the first two bits need to be
different. (Removing extra zeros before in between the
decimal and the first 1 digit).
[Link] Copyright © 2025 ZNotes Education & Foundation. All Rights Reserved. This document is
authorised for personal use only by Yung at Trinity International College on 09/02/25.
CAIE A2 LEVEL COMPUTER SCIENCE
HTTP and HTTPS (Hypertext Transfer Protocol): Used Handles the transmission of data using IP addresses.
to transfer webpages from server to client. HTTPS is Identifies the intended network and host and then
more secure. transmits the packets through the data link layer.
FTP (File Transfer Protocol): Used for sending and Routes each packet independently through the best
receiving files over the network between two devices. route available
POP3 (Post Office Protocol): Used for receiving emails. IP Addresses, of the sender and receiver, and checksum
IMAP (Internet Message Access Protocol): Also used are added when sending messages
for receiving emails. The email client retrieves the emails When receiving a message it reassembles the fragments,
from the mail server. strips the IP header and sends it to the transport layer
SMTP (Simple Mail Transfer Protocol): Used for
sending emails (Data) Link Layer:
Handles packets. If a user wishes to join this network, they need to use a
Converts the data received from the application layer BitTorrent client to load the torrent descriptor file. When a
into individual packets when sending a message. user wishes to download a file, pieces of this file are
Adds packet headers and then sends these packets to downloaded and uploaded at the same time. When a user
the internet layer. has even a single piece of a file they become a seed. To be
Controls the flows of packets and handles packet loss or able to download this file, a complete copy needs to exist on
corruption. one of the peer computers.
When receiving a message, it reads the header and
determines which application layer the data must be 2.2. Circuit Switching, Packet Switching
sent to, then strips the header and forwards it
Circuit Switching
Internet Layer:
[Link] Copyright © 2025 ZNotes Education & Foundation. All Rights Reserved. This document is
authorised for personal use only by Yung at Trinity International College on 09/02/25.
CAIE A2 LEVEL COMPUTER SCIENCE
[Link] Copyright © 2025 ZNotes Education & Foundation. All Rights Reserved. This document is
authorised for personal use only by Yung at Trinity International College on 09/02/25.
CAIE A2 LEVEL COMPUTER SCIENCE
[Link] Copyright © 2025 ZNotes Education & Foundation. All Rights Reserved. This document is
authorised for personal use only by Yung at Trinity International College on 09/02/25.
CAIE A2 LEVEL COMPUTER SCIENCE
Used by companies wishing to use the legacy software A half adder adds two binary digits and outputs the sum
on newer hardware and server consolidation companies (s) and their carry (c).
Virtualising machines allows developers to test A XOR gate acts like a half adder.
applications on many systems without making expensive Input Output
A B S C
hardware purchases. 0 0 0 0
0 1 1 0
1 0 1 0
3.4. Logic Gates & Circuit Design 1 1 0 1
A B X
0 0 0
0 1 0
1 0 0
1 1 1
OR Gate: A + B = X
R is "Carry In"
A B Output
J is "Carry Out"
0 0 0 K is "Sum"
0 1 1
1 0 1
1 1 1
NOT Gate: A = X
A Output
0 1
1 0
A B Output
3.5. Flip-Flops
0 0 1
0 1 1
1 0 1
1 1 0
Flip flops can store a single bit of data as 0 or 1
NOR Gate: A + B = X
Computers use bits to store data.
Flip-flops can be used to store bits of data.
Memory can be created from flip-flops.
A B Output
0 0 1 SR Flip Flops
0 1 0
1 0 0
1 1 0
A B Output
0 0 0
0 1 1
1 0 1
1 1 0
Half-Adder
[Link] Copyright © 2025 ZNotes Education & Foundation. All Rights Reserved. This document is
authorised for personal use only by Yung at Trinity International College on 09/02/25.
CAIE A2 LEVEL COMPUTER SCIENCE
Can be made with NAND gates or NOR gates JK flip flops are only active when the clock is high.
Error state exists JK flip flops use a clock pulse for synchronization to
ensure proper functioning.
Advantages of JK flip flops include the validity of all input
combinations, avoidance of unstable states, and
increased stability compared to SR flip flops.
S R Q Q Bar
0 0 1 1
0 1 1 0
1 0 0 1
1 1 No Change No Change
S R Q Q Bar
0 0 No Change No Change
0 1 0 1
1 0 1 0
1 1 0 0
JK Flip Flops
[Link] Copyright © 2025 ZNotes Education & Foundation. All Rights Reserved. This document is
authorised for personal use only by Yung at Trinity International College on 09/02/25.
CAIE A2 LEVEL COMPUTER SCIENCE
{example}
1. Sum of Products
A⋅B⋅C +A⋅B⋅C +A⋅B⋅C
2. Fill in the map
[Link] Copyright © 2025 ZNotes Education & Foundation. All Rights Reserved. This document is
authorised for personal use only by Yung at Trinity International College on 09/02/25.
CAIE A2 LEVEL COMPUTER SCIENCE
3. Circle the largest group containing an even number Hides complexities of the hardware from the user
of 1s. gives users access to the hardware/software systems
depending on their needs without involving them with
the backend
Examples include GUIs and CLIs
Multi-Tasking
Managing the execution of multiple programs that appear to
be running simultaneously.
Process
4. Take the common values from both
In the first group, A ⋅ B is common A process is the code being executed.
In the second group, A ⋅ C is common
Program
5. Write the simplified expression.
A⋅C +A⋅B A program is the code that has been written.
[Link] Copyright © 2025 ZNotes Education & Foundation. All Rights Reserved. This document is
authorised for personal use only by Yung at Trinity International College on 09/02/25.
CAIE A2 LEVEL COMPUTER SCIENCE
Lexical Analysis
Characters are converted from strings into tokens.
Comments are removed.
Symbol table stores identifiers and keywords.
Keyword table stores the reserved words used and the
matching operators.
Syntax Analysis
A parse tree is generated for reverse polish notation and
syntax errors are reported.
[Link] Copyright © 2025 ZNotes Education & Foundation. All Rights Reserved. This document is
authorised for personal use only by Yung at Trinity International College on 09/02/25.
CAIE A2 LEVEL COMPUTER SCIENCE
5. Security
5.1. Encryption
The process of converting of data into an unreadable
format.
Plain Text
Data before applying encryption.
Public Key
4.6. Reverse Polish Notation (RPN)
A public key is shared. It is used to encrypt data so that it can
Reverse Polish notation (RPN): An unambiguous method be decrypted with its matching private key.
for representing an expression left to right with needing
rules of precedence or brackets. Private Key
[Link] Copyright © 2025 ZNotes Education & Foundation. All Rights Reserved. This document is
authorised for personal use only by Yung at Trinity International College on 09/02/25.
CAIE A2 LEVEL COMPUTER SCIENCE
Asymmetric Encryption Allow for more security when communicating over the
internet as it allows two parties identify and verify each
Two keys are used: public key and private key. The message other and communicate confidentially with integrity
is encrypted with the public key and decrypted using the Provides encryption.
matching private key.
Working
Symmetric VS Asymmetric
An SSL/TLS connection is initiated between two
Symmetric Asymmetric applications.
Number of Keys 1 key for both 2 keys
Is Key Shared Yes Only public key
The one initiating it is the client. The one receiving it is
Security Less secure as key needs to be shared More secure the server.
Complexity Simple Complex
Speed Fast Slow
Session begins with a handshake.
Key Length Short Longer Server sends its digital certificate and public key
Client confirms the server’s identity.
Security concerns relating to a transmission: Encryption algorithm is agreed upon and the symmetric
session keys are generated.
Confidentiality: Only the intended recipient should be
able to decrypt the message.
Use Cases
Authenticity: Receiver must know who sent the
ciphertext. Transmitting passwords or session cookies.
Integrity: Message must not be modified during Online shopping and banking websites.
transmission.
Non-repudiation: Neither the sender nor the receiver
should be able to deny involvement in the transmission. 5.3. Digital Certification
Quantum Cryptography Digital Certificate
[Link] Copyright © 2025 ZNotes Education & Foundation. All Rights Reserved. This document is
authorised for personal use only by Yung at Trinity International College on 09/02/25.
CAIE A2 LEVEL COMPUTER SCIENCE
A graph is an abstract datatype that contains a collection of
nodes. These nodes are connected to each other with edges.
A node usually has a name, and an edge usually has a
numerical value.
One example of graphs is A* or Dijkstra's algorithm. The
nodes represent locations, and the edges represent the
distance between them.
[Link] Copyright © 2025 ZNotes Education & Foundation. All Rights Reserved. This document is
authorised for personal use only by Yung at Trinity International College on 09/02/25.
CAIE A2 LEVEL COMPUTER SCIENCE
Supervised Learning
In supervised learning the computer is fed labelled test data,
and it identifies the patterns that led to the data being
labelled in a specific way. This allows it to then predict labels
for new unseen data.
Unsupervised Learning
In unsupervised learning the computer is fed unlabeled test
Neural networks are modelled on the human brain. data, and it identifies hidden patterns.
They contain input and output nodes as well as one or
more hidden layers. Back Propagation of Errors
Each input node is assigned a specific weight, these
weights are summed, and an activation function An algorithm identifies errors with the machine learning and
calculates a value for the output. is then used to adjust the model for improved accuracy by
Repeated for each layer within the network thereby starting at the output layer and working backwards through
allowing reinforcement learning to take place. the hidden layers to the input layer.
For example, if you threw a ball and missed your target.
Use of Hidden Layers: You'd check how far off you were from the target and then
adjust things like angle and strength the next time you threw
Allow deep learning to take place the ball.
Allows the network to make decisions independently
Helps to improve the accuracy of the output Regression
Machine Learning Regression is finding a mathematical function that best fits
out output data based on the previous results in order to
Machine learning is a field of artificial intelligence in which predict the future value.
computers learn from provided data and past experiences in
order to improve its performance in a given task without
explicitly being programmed to know how to do the task. For
example, rather than telling the computer that emails that
advertise free products are most likely scams we feed it a lot
of data and it identifies that pattern on its own.
Deep Learning
A subset of machine learning that simulates the decision
making and data processing abilities of the human brain.
Benefits:
[Link] Copyright © 2025 ZNotes Education & Foundation. All Rights Reserved. This document is
authorised for personal use only by Yung at Trinity International College on 09/02/25.
CAIE A2 Level
Computer Science
© ZNotes Education Ltd. & ZNotes Foundation 2024. All rights reserved.
This version was created by Yung on Sun Feb 09 2025 for strictly personal use only.
These notes have been created by Talal Aamer for the 2024-2025 syllabus.
The document contains images and excerpts of text from educational resources available on the internet and printed books.
If you are the owner of such media, test or visual, utilized in this document and do not accept its usage then we urge you to contact us
and we would immediately replace said media. No part of this document may be copied or re-uploaded to another website.
Under no conditions may this document be distributed under the name of false author(s) or sold for financial gain.
"ZNotes" and the ZNotes logo are trademarks of ZNotes Education Limited (registration UK00003478331).