Syllabus
Syllabus Overview
This topic outlines what Cambridge assesses in IGCSE Computer Science. It is taken from the Cambridge International syllabus, which is linked at the bottom of the page. Use it to see how the two papers are set, how the marks are shared between the objectives, which command words to expect and where each part of the syllabus is covered in these notes.
How the exam is set
Every candidate takes the same two papers, which are eligible for grades A* to G. All questions are compulsory and calculators are not allowed. The syllabus lets you write programs in pseudocode or in Python, Visual Basic or Java; answer in the language you have studied.
| Component | What it contains | Time | Marks | Weight |
|---|---|---|---|---|
| Paper 1: Computer Systems | Short-answer and structured questions on Topics 1 to 6 | 1 hour 45 minutes | 75 | 50% |
| Paper 2: Algorithms, Programming and Logic | Short-answer and structured questions and a scenario-based question on Topics 7 to 10 | 1 hour 45 minutes | 75 | 50% |
What the examiners test
Every question tests one of three assessment objectives.
Assessment objective 1. You must know and understand the principles and concepts of computer science.
Assessment objective 2. You must apply that knowledge to a given context, including analysing and designing computational and programming problems.
Assessment objective 3. You must give solutions by evaluating computer systems, making reasoned judgements and presenting conclusions.
The grid shows how much of the qualification and of each paper each objective carries.
| Assessment objective | Qualification | Paper 1 | Paper 2 |
|---|---|---|---|
| AO1 Knowledge and understanding | 40% | 60% | 20% |
| AO2 Application and problem design | 40% | 20% | 60% |
| AO3 Evaluation and solutions | 20% | 20% | 20% |
How to use the grid
- Paper 1 is mostly recall, so learn definitions and explanations of each hardware, software and network idea.
- Paper 2 is mostly application: 60% of its marks are for writing, tracing and correcting algorithms and programs.
- One fifth of each paper asks you to evaluate or justify, so practise giving a reasoned judgement.
Command words
The first word of a question tells you what to do. The syllabus uses these command words, so learn what each one asks for.
| Command word | What to do |
|---|---|
| Calculate | work out a numerical answer from the figures given |
| Compare | say how things are similar and how they differ |
| Define | give the exact meaning |
| Demonstrate | show how, or give an example |
| Describe | set out the main features or points |
| Evaluate | judge the quality, importance or value, weighing the evidence |
| Explain | give reasons, showing why or how, and back them with evidence |
| Give | write down an answer from the source or from memory |
| Identify | name or pick out |
| Outline | give the main points only |
| Show (that) | give clear steps that lead to the result stated |
| State | give a short, clear answer |
| Suggest | use what you know to put forward ideas where several answers are acceptable |
Grades and tiers
All candidates take the same papers and are eligible for grades A* to G. There are no tiers.
Where each part is covered in these notes
| Syllabus area | Topics in these notes |
|---|---|
| Paper 1: Computer Systems (Topics 1 to 6) | Data Representation; Data Transmission; Hardware; Software; The Internet and Its Uses; Automated and Emerging Technologies |
| Paper 2: Algorithms, Programming and Logic (Topics 7 to 10) | Algorithm Design and Problem-solving; Programming; Databases; Boolean Logic |
The official syllabus
Read the full document: Cambridge IGCSE Computer Science syllabus (PDF). This outline follows that edition, so check the Cambridge International website for a later one.
Topic 1
Data Representation
1.1 Number systems
Binary, denary and hexadecimal
Computers are built from billions of tiny electronic switches, each of which is either on or off. For this reason, a computer stores and processes everything, numbers, text, pictures and sound, as patterns of two symbols: 0 and 1. This system is called binary, and each 0 or 1 is a bit (binary digit). People use the denary (decimal) system, which has ten digits, 0 to 9, because we have ten fingers. Programmers also use hexadecimal, with sixteen symbols, because it is a compact way to write long binary numbers.
In every number system, the value of a digit depends on its place value. In denary, the places from the right are units, tens, hundreds, thousands: 1, 10, 100, 1000, each ten times bigger. In binary, each place is twice the one to its right: 1, 2, 4, 8, 16, 32, 64, 128. An eight-bit number has places 128, 64, 32, 16, 8, 4, 2, 1. To convert binary to denary, add the place values wherever there is a 1. For example, 01101001 has 1s in the places 64, 32, 8 and 1, so the value is 64 + 32 + 8 + 1 = 105.
To convert denary to binary, work from the largest place value and ask whether it fits. For 150: 128 fits (150 − 128 = 22), 64 does not, 32 does not, 16 fits (22 − 16 = 6), 8 does not, 4 fits (6 − 4 = 2), 2 fits (2 − 2 = 0), 1 does not. Writing 1 where it fits and 0 where it does not gives 10010110. An alternative is to divide repeatedly by 2 and read the remainders from bottom to top. An eight-bit number can hold values from 0 (00000000) to 255 (11111111), which is 28 − 1, so 256 different values.
Hexadecimal uses the digits 0 to 9 and the letters A to F for ten to fifteen (A = 10, B = 11, C = 12, D = 13, E = 14, F = 15). Each place is sixteen times the one to its right. One hex digit represents exactly four bits (a nibble), so an eight-bit byte is two hex digits. To convert binary to hex, split the number into groups of four bits from the right and convert each group: 1011 0110 becomes B6, because 1011 is 11 (B) and 0110 is 6. To convert hex to binary, replace each digit by its four-bit pattern. To convert hex to denary, multiply: B6 = 11 × 16 + 6 = 182.
Hex is used because it is shorter and easier for people to read and to copy without mistakes than binary. It appears in colour codes on web pages (#FF0000 is red), in MAC addresses, in error messages, and in memory addresses.
| Denary | Binary (8 bits) | Hexadecimal |
|---|---|---|
| 5 | 00000101 | 05 |
| 10 | 00001010 | 0A |
| 65 | 01000001 | 41 |
| 150 | 10010110 | 96 |
| 255 | 11111111 | FF |
Denary: 128 + 32 + 16 + 4 = 180. Hexadecimal: split into 1011 and 0100, which are B and 4, so the hex number is B4. Check: 11 × 16 + 4 = 180.
128 fits (74 left), 64 fits (10 left), 32 no, 16 no, 8 fits (2 left), 4 no, 2 fits (0 left), 1 no: 11001010.
Exam tip
- Learn the place values 128, 64, 32, 16, 8, 4, 2, 1.
- An 8-bit number goes from 0 to 255; one hex digit = 4 bits.
- Show your working: write the place values above the bits.
Binary addition, overflow and shifts
Computers add binary numbers using the same method that you use in denary, working from the right and carrying to the next column. There are only four rules for one column: 0 + 0 = 0; 0 + 1 = 1; 1 + 1 = 10 (write 0, carry 1); and 1 + 1 + 1 = 11 (write 1, carry 1), which happens when there is a carry coming in. Here is an example with eight bits:
Adding 00110101 and 00011011
00110101 (53)
+ 00011011 (27)
----------
01010000 (80)
Working from the right: 1 + 1 = 10, so write 0 and carry 1; 0 + 1 + the carried 1 = 10, write 0 and carry 1; 1 + 0 + the carried 1 = 10, write 0 and carry 1; 0 + 1 + the carried 1 = 10, write 0 and carry 1; 1 + 1 + the carried 1 = 11, write 1 and carry 1; 1 + 0 + the carried 1 = 10, write 0 and carry 1; 0 + 0 + the carried 1 = 1; and the last column is 0. The result 01010000 is 64 + 16 = 80, which is correct (53 + 27 = 80). Writing the carries above each column helps you to avoid mistakes.
If the sum is too large to fit in the number of bits available, an overflow error occurs. In eight bits the largest number is 255, so 200 + 100 = 300 cannot be stored: the ninth bit is lost, and the result would be wrong (44). The overflow is shown by a carry out of the left-hand column. Programs must be written to avoid overflow, or use more bits.
A logical shift moves all the bits in a binary number to the left or the right by a number of places; the bits that fall off the end are lost, and the empty places are filled with 0. Shifting left by one place multiplies the number by 2, and shifting left by two places multiplies by 4. Shifting right by one place divides by 2 (ignoring any remainder). For example, 00001100 (12) shifted left one place is 00011000 (24); shifted right one place it becomes 00000110 (6). If a 1 is shifted off the left end, the answer is wrong, which is a kind of overflow. Shifts are very fast operations for the processor, so they are often used for quick multiplication and division by powers of two.
Two's complement is a method for storing negative integers. In an eight-bit two's complement number, the left-hand place value is −128 instead of +128, so the places are −128, 64, 32, 16, 8, 4, 2, 1. A number with a 1 in the leftmost bit is negative. For example, 11111111 is −128 + 127 = −1, and 10000000 is −128, while 01111111 is +127. The range of numbers is −128 to +127. To turn a positive number into its negative: write the positive number in binary, invert every bit, and add 1. For −5: 5 is 00000101, inverted is 11111010, add 1 gives 11111011. Using two's complement means the computer can use the same addition circuit for both positive and negative numbers.
11001000 (200) + 01100100 (100) = 300, which needs nine bits (100101100). The extra carry out of the left-hand column means overflow occurs in 8 bits.
Result: 01011000. The number 22 has been multiplied by 4 to give 88.
Exam tip
- Binary addition rules: 1 + 1 = 10, and 1 + 1 + 1 = 11.
- Overflow = the answer needs more bits than are available.
- Left shift multiplies by 2; right shift divides by 2; two's complement: invert and add 1.
1.2 Text, sound and images
Representing text
Computers store text by giving every character a number, called its character code, and then storing that number in binary. A character set is the list of all the characters that a computer system can recognise, with the code for each. The characters include letters, digits, punctuation marks and symbols, and even the space and the Enter key.
The earliest widely used character set was ASCII (American Standard Code for Information Interchange). Standard ASCII uses 7 bits for each character, which gives 27 = 128 different characters, enough for the English alphabet, the digits and common symbols. The codes are in an order that makes sorting easy: capital A is 65, B is 66, and so on to Z at 90; lower-case a is 97, b is 98 up to z at 122; the digits 0 to 9 are 48 to 57; the space is 32. So if you know that A is 65, then E is 65 + 4 = 69, and lower-case e is 69 + 32 = 101. Extended ASCII uses 8 bits for 256 characters, which adds accented letters and more symbols.
ASCII cannot represent the alphabets of languages such as Chinese, Arabic or Japanese, or many of the special symbols in other languages. The solution is Unicode, a character set that gives a unique code to the characters of almost all the world's writing systems, as well as symbols and emoji. Unicode uses more bits per character (commonly 16 or 32), so it can represent over a million characters; the first 128 codes are the same as ASCII. The price is that a text file in Unicode needs more storage than one in ASCII: a text of 1000 characters needs 1000 bytes in ASCII at 8 bits per character, but 2000 bytes at 16 bits per character. Unicode lets a document display Setswana, English, French and Chinese side by side, and lets a computer in Botswana send text to a computer in Japan and have it show correctly.
The storage needed by text is calculated by multiplying the number of characters by the number of bits per character. A message of 250 characters in 7-bit ASCII needs 250 × 7 = 1750 bits, or about 219 bytes (if stored in 8-bit bytes, 250 bytes).
| Character set | Bits per character | Number of characters | Notes |
|---|---|---|---|
| ASCII | 7 | 128 | English letters, digits, symbols |
| Extended ASCII | 8 | 256 | Adds accents and symbols |
| Unicode | 16 or more | Over a million | Almost every language and emoji |
G is four letters after C, so its code is 67 + 4 = 71. Lower-case letters are 32 higher, so "g" is 71 + 32 = 103.
4000 × 16 = 64 000 bits; 64 000 ÷ 8 = 8000 bytes, which is 8 kilobytes (using 1000 bytes = 1 kilobyte).
Exam tip
- ASCII: 7 bits, 128 characters; Unicode: more bits, many more characters.
- Capital and lower-case letters differ by 32.
- Size = characters × bits per character.
Representing sound
Sound in the real world is analogue: the pressure of the air varies smoothly. To store it in a computer, the sound must be converted into digital data by an analogue-to-digital converter (ADC). A microphone changes the sound waves into an electrical signal; then the signal is sampled: its height (amplitude) is measured at regular, very short intervals of time, and each measurement is stored as a binary number. To play the sound back, a digital-to-analogue converter (DAC) changes the numbers into an electrical signal for the speaker.
Two settings control the quality of the recording. The sampling rate is the number of samples taken every second, measured in hertz (Hz). A CD uses 44 100 samples per second (44.1 kHz). A higher sampling rate takes the sound more accurately, because there are more points on the wave, but it makes the file larger. The sampling resolution (bit depth) is the number of bits used to store each sample. With 8 bits, each sample can take one of 256 levels; with 16 bits, 65 536 levels, which describes the sound far more accurately and so gives a better quality, again at the cost of a larger file.
The size of a sound file is: sampling rate × sampling resolution × length in seconds, giving bits. For a 10-second recording at 44 100 Hz and 16 bits, the size is 44 100 × 16 × 10 = 7 056 000 bits, which is 882 000 bytes, about 0.88 MB for mono sound. A stereo recording has two channels and so is twice as big. To reduce the size, we can lower the sampling rate or the resolution, shorten the recording, or compress the file, which is dealt with in Topic 1.3.
The sampled sound is only an approximation of the original, because it is stored as a set of steps. If the sampling rate is too low, high-pitched sounds are missed. A good enough rate lets the human ear, which hears up to about 20 kHz, hear no difference, which is why speech on a phone sounds thinner than music on a CD: phones use a lower sampling rate.
8000 × 8 × 30 = 1 920 000 bits; 1 920 000 ÷ 8 = 240 000 bytes (240 kB).
Exam tip
- Sound is sampled: amplitude measured at regular intervals.
- Higher sampling rate and resolution = better quality and bigger file.
- Size = rate × resolution × seconds (÷ 8 for bytes).
Representing images
A digital image is a grid of tiny squares called pixels (picture elements). Each pixel has a colour, stored as a binary number. The number of pixels in the image is its resolution, usually written as width × height, such as 1920 × 1080. More pixels give more detail and a sharper picture, but a bigger file. When an image is enlarged too far, the individual pixels become visible and it looks blocky (pixelated).
The colour depth is the number of bits used for each pixel. With 1 bit, there are only two colours (black and white); with 2 bits, four colours; with 8 bits, 256 colours; with 24 bits, over 16 million colours ("true colour"). In general, n bits give 2n colours. A greater colour depth allows more subtle shades and a more realistic picture, but also a larger file.
The file size of an image is: number of pixels × colour depth (in bits). A picture of 800 × 600 pixels with 24-bit colour has 480 000 pixels, so 480 000 × 24 = 11 520 000 bits = 1 440 000 bytes, about 1.4 MB. Real image files also store metadata, extra data about the file such as its width and height, the colour depth, the date and the camera used, and this adds a little to the size.
For a black and white picture with 1 bit per pixel, a small grid can be stored as rows of bits: an 8 × 8 image needs 64 bits, which is 8 bytes. Drawing a letter in an 8 × 8 grid and writing 1 for a black pixel and 0 for a white pixel is a common exercise.
Bitmap images (photographs) are made of pixels. Vector graphics are stored as mathematical descriptions of shapes (lines, curves, circles with their positions, sizes and colours), so they can be enlarged without losing quality, and the file is small; they suit logos and diagrams. The next section explains how file size can be reduced by compression.
200 × 100 = 20 000 pixels; 20 000 × 8 = 160 000 bits; ÷ 8 = 20 000 bytes = 20 kilobytes.
212 = 4096 colours.
Exam tip
- File size = pixels × colour depth; n bits give 2n colours.
- Higher resolution and colour depth mean better quality but bigger files.
- Metadata describes the file (size, depth, date).
1.3 Data storage and compression
Units of storage and calculating file sizes
All data in a computer is stored in binary. The smallest unit is the bit. A group of four bits is a nibble, and eight bits make a byte, which can store one ASCII character. Larger amounts are counted in multiples. In the current Cambridge syllabus, the units go up in steps of 1024, written with the names kibibyte (KiB), mebibyte (MiB), gibibyte (GiB), tebibyte (TiB) and pebibyte (PiB): 1 kibibyte = 1024 bytes, 1 mebibyte = 1024 kibibytes, 1 gibibyte = 1024 mebibytes, and so on. These are used because computer memory is built in powers of two (1024 is 210). In everyday life, you will hear kilobyte, megabyte and gigabyte used loosely for the same amounts, and some manufacturers use 1000 instead of 1024, which is why a new "500 GB" disk shows a bit less in the computer.
To calculate a file size, work out the number of bits, divide by 8 to get bytes, and then divide by 1024 for each step up. For example, 11 520 000 bits ÷ 8 = 1 440 000 bytes; ÷ 1024 = 1406 kibibytes; ÷ 1024 = 1.37 mebibytes. To go down a unit, multiply by 1024.
Storage devices are chosen on the basis of the capacity they provide for the data. A device with a capacity of 8 GiB holds 8 × 1024 × 1024 × 1024 bytes. A school that wants to store 600 photographs of 3 MiB each needs 1800 MiB, which is about 1.76 GiB, so an 8 GiB flash drive is enough with plenty to spare. A film of two hours needs several gibibytes; a text document a few kibibytes.
| Unit | Symbol | Size |
|---|---|---|
| Nibble | 4 bits | |
| Byte | B | 8 bits |
| Kibibyte | KiB | 1024 bytes |
| Mebibyte | MiB | 1024 KiB |
| Gibibyte | GiB | 1024 MiB |
| Tebibyte | TiB | 1024 GiB |
| Pebibyte | PiB | 1024 TiB |
3 × 1024 = 3072 MiB; 3072 × 1024 = 3 145 728 KiB.
150 × 4 = 600 MiB. This is more than 512 MiB, so it will not fit; about 128 files would.
Exam tip
- Steps of 1024: KiB, MiB, GiB, TiB, PiB.
- bits ÷ 8 = bytes; then ÷ 1024 for each larger unit.
- 1 nibble = 4 bits; 1 byte = 8 bits.
Data compression
Compression reduces the size of a file. This saves storage space, and makes the file quicker to send over a network because less data has to be transmitted, and so it uses less bandwidth. There are two kinds: lossy and lossless.
Lossless compression reduces the file size without losing any of the original data. When the file is decompressed, it is identical to the original. It works by finding patterns or repeated data and storing them in a shorter form. It is essential for text, program files and data, where every character matters, since losing one letter could change the meaning. Formats such as ZIP and PNG use lossless compression. A simple lossless method is run-length encoding (RLE). It replaces a run of repeated values with a single value and a count. The text AAAAABBBCC would be stored as 5A3B2C, using six characters instead of ten. In an image, a row of 12 white pixels followed by 3 black pixels and 5 white could be stored as (12, white), (3, black), (5, white). RLE works best where there are long runs of the same data, such as simple cartoons or diagrams, and works badly on photographs where neighbouring pixels differ slightly.
Lossy compression reduces the file size by permanently removing some of the data, in a way that people are unlikely to notice. The original cannot be recovered. It is used for photographs, music and video, where the human eye and ear cannot detect small losses. In an image, JPEG compression reduces the number of colours or combines similar neighbouring pixels. In sound, MP3 removes sounds at frequencies the ear cannot hear well, and lowers the sampling resolution or rate. In video, MP4 discards details that change little from one frame to the next. The files are much smaller, but quality falls as more data is removed; heavy compression makes pictures blurry and sound tinny.
The choice depends on the purpose. For a legal document or a program, use lossless. For streaming a film over a slow mobile connection, use lossy. In examination answers, always state what is removed or kept: "lossless means that no data is lost, and the original file can be restored exactly".
6W3B4W. The original has 13 characters and the compressed version has 6, so 7 characters are saved.
(a) Lossy (JPEG), because small losses are not noticed and the file is much smaller. (b) Lossless, because every value must be kept exactly.
Exam tip
- Lossless = no data lost, can be restored; lossy = data permanently removed.
- RLE stores value and count for each run.
- Compression saves storage and transmission time.
Topic 2
Data Transmission
There's more where that came from ✨
Start a free 15-day trial to open more, or subscribe and get everything:
Topic 3
Hardware
There's more where that came from ✨
Start a free 15-day trial to open more, or subscribe and get everything:
Topic 4
Software
There's more where that came from ✨
Start a free 15-day trial to open more, or subscribe and get everything:
Topic 5
The Internet and Its Uses
There's more where that came from ✨
Start a free 15-day trial to open more, or subscribe and get everything:
Topic 6
Automated and Emerging Technologies
There's more where that came from ✨
Start a free 15-day trial to open more, or subscribe and get everything:
Topic 7
Algorithm Design and Problem-solving
There's more where that came from ✨
Start a free 15-day trial to open more, or subscribe and get everything:
Topic 8
Programming
There's more where that came from ✨
Start a free 15-day trial to open more, or subscribe and get everything:
Topic 9
Databases
There's more where that came from ✨
Start a free 15-day trial to open more, or subscribe and get everything:
Topic 10
Boolean Logic
There's more where that came from ✨
Start a free 15-day trial to open more, or subscribe and get everything:
Morutabana / study