Answer
Free flashcards · Cambridge O Level · 2210
Computer Science flashcards
121 cards covering every topic of the 2210 syllabus (2026-2028). Study one topic or mix them all, turn each card, and mark yourself honestly.
Study mode needs JavaScript. Every card is listed below, so you can still cover the answers and test yourself.
Choose your cards
Session complete
Worth another look:
All 121 cards
For a quick read-through or printing. Cover the right-hand side to test yourself.
Topic 1: Data representation
- How do you convert a denary number to binary by division?
- Divide by 2 repeatedly, writing down each remainder, until you reach 0. Read the remainders from the bottom upwards.
- Why is hexadecimal used rather than binary?
- It is far more compact, and each hex digit maps to exactly four binary digits, so conversion is simple and human error is less likely. Used for memory addresses, MAC addresses, colour codes and error codes.
- Convert denary 205 to hexadecimal
- 205 = 128 + 64 + 8 + 4 + 1 = 11001101. Split into nibbles from the right: 1100 = C and 1101 = D, so 205 = CD.
- What is overflow?
- The result of a calculation is too large for the number of bits allocated, so the stored value is incorrect. In 8 bits the largest unsigned value is 255.
- What does a binary shift of n places do?
- A left shift of n places multiplies by 2ⁿ; a right shift of n places divides by 2ⁿ, discarding any remainder. Bits shifted out are lost and zeros are shifted in.
- What is the range of an 8-bit two's complement integer?
- -128 to +127. The most significant bit has a place value of -128; a leading 1 means the number is negative.
- Convert -45 to 8-bit two's complement
- +45 = 00101101. Invert every bit: 11010010. Add 1: 11010011. Check: -128 + 64 + 16 + 2 + 1 = -45.
- Convert the two's complement number 11101100 to denary
- Add the place values, using -128 for the first bit: -128 + 64 + 32 + 8 + 4 = -20.
- ASCII vs Unicode
- ASCII uses 7 bits (128 characters); extended ASCII uses 8 bits (256). Unicode can use up to 32 bits per character to cover a very wide range of the world's scripts, so text files are larger.
- Why was Unicode introduced?
- ASCII could not represent non-Latin writing systems such as Arabic, Chinese or Urdu, so a larger character set was needed.
- Resolution and colour depth of a bitmap image
- Resolution: the number of pixels. Colour depth: bits per pixel; n bits give 2ⁿ colours. Higher values give better quality but larger files.
- Sample rate and bit depth of a sound file
- Sample rate: samples per second (Hz). Bit depth (sample resolution): bits per sample. Raising either records the wave more accurately but increases file size.
- An image is 800 × 600 pixels with 24-bit colour. What is its file size in MiB?
- 800 × 600 × 24 = 11,520,000 bits ÷ 8 = 1,440,000 bytes ÷ 1024 = 1406.25 KiB ÷ 1024 ≈ 1.37 MiB.
- List the 2210 storage units from bit to exbibyte
- Bit, nibble (4 bits), byte (8 bits), KiB, MiB, GiB, TiB, PiB, EiB. From the kibibyte (1024 bytes) up, each unit is 1024 times the one before.
- When must lossless compression be used, and what does lossy compression do?
- Lossless is needed where every bit matters (text, program files, spreadsheets), as the original is fully recovered. Lossy permanently removes data, e.g. by reducing resolution, colour depth or sample rate; used for images, audio, video.
- Can run-length encoding make a file larger?
- Yes. RLE stores each run as a value and a count, so on noisy or photographic data with few repeated adjacent values it can produce a file larger than the original.
Topic 2: Data transmission
- What does the header of a data packet contain?
- The destination address, the packet number and the originator's (sender's) address. The payload carries the data and the trailer marks the end of the packet.
- Why can packets from one message arrive out of order?
- In packet switching, routers send each packet by the best route available at the time, so packets can take different routes. The receiver puts them back in order using the packet numbers.
- Which transmission method suits a long-distance link, and which a short high-speed cable?
- Long distance: serial (one bit at a time on one wire, so no skew and cheaper cabling). Short, high-speed connection: parallel (several bits at once on several wires).
- Give an example of simplex, half-duplex and full-duplex transmission
- Simplex (one way only): keyboard to computer. Half-duplex (both ways, one at a time): walkie-talkie. Full-duplex (both ways at once): telephone call.
- Why is USB widely used to connect devices?
- It is a standard connector supported by most devices, it supplies power, devices are detected automatically and the right driver is loaded. Drawbacks: limited cable length and speed.
- How does odd or even parity detect an error?
- A parity bit makes the number of 1s in each byte odd (or even), as agreed. The receiver counts the 1s; if the total no longer matches the agreed parity, an error has occurred.
- What can a parity check not detect?
- An even number of changed bits, such as two bits flipped in the same byte, because the count of 1s stays odd (or even).
- How does a checksum work?
- A value is calculated from the data before sending and sent with it. The receiver recalculates the value from the data received; if the two values differ, an error has occurred.
- How does an echo check work?
- The receiver sends a copy of the data it received back to the sender, which compares it with the original. If they differ, the data is sent again. It cannot show which way the error happened.
- What is a check digit used for?
- Validating one item of entered data, such as an ISBN or bar code number. A digit is calculated from the other digits and compared with the one entered.
- Describe automatic repeat query (ARQ)
- The receiver sends a positive acknowledgement for correct data or a negative one for an error. If the sender gets a negative acknowledgement, or none before the timeout, it resends the data.
- Plaintext vs ciphertext
- Plaintext is the original, readable data. Ciphertext is the scrambled data produced by encryption, which is meaningless without the key.
- Symmetric vs asymmetric encryption
- Symmetric: the same key encrypts and decrypts, so it must be shared securely. Asymmetric: a linked public/private key pair; the public key encrypts and only the matching private key decrypts.
- Does encryption stop data being intercepted?
- No. It makes intercepted data meaningless to anyone without the key, so it cannot be understood or used.
- What is the risk with symmetric encryption?
- The key has to be sent to the receiver. If the key is intercepted, anyone holding it can decrypt the data.
Topic 3: Hardware
- What is the role of the CPU?
- To process instructions and data by carrying out the fetch-decode-execute cycle. It contains the ALU, the control unit, registers and buses.
- Which register holds the address of the next instruction, and which holds the instruction being decoded?
- The program counter (PC) holds the address of the next instruction. The current instruction register (CIR) holds the instruction being decoded and executed.
- MAR vs MDR
- The memory address register holds the address of the memory location being read or written. The memory data register holds the data or instruction being transferred to or from that location.
- Which bus is one-way, and what do the three buses carry?
- The address bus is one-way (CPU to memory) and carries addresses. The data bus carries data and instructions both ways. The control bus carries control signals such as read and write.
- Trace the fetch-decode-execute cycle
- Fetch: PC → MAR; instruction from RAM → MDR → CIR; PC incremented. Decode: the CU interprets the instruction in the CIR. Execute: the instruction is carried out, e.g. the ALU calculates and the result goes to the ACC.
- Why does a larger cache improve CPU performance?
- Cache is fast memory close to the CPU that holds frequently used data and instructions, so the CPU fetches them from RAM less often.
- Give three examples of embedded systems
- Any three of: a washing machine controller, a car engine management system, a security alarm, a lighting system, a vending machine, a microwave. Each performs one dedicated function.
- Name the three types of touch screen on the syllabus
- Resistive, capacitive and infra-red.
- Name two types of printer and two types of projector on the syllabus
- Printers: inkjet and laser (also the 3D printer). Projectors: digital light processing (DLP) and LCD.
- Which sensor would you use in a greenhouse to monitor: warmth; air wetness; soil wetness; brightness?
- Temperature sensor; humidity sensor; moisture sensor; light sensor.
- What do a pH sensor, a flow sensor and a level sensor measure?
- pH sensor: acidity or alkalinity. Flow sensor: the rate at which a liquid or gas moves. Level sensor: how full a container is.
- Why must a scenario answer name a specific sensor?
- The mark is for naming the sensor and what it measures, e.g. "a proximity sensor to detect nearby obstacles", not just "a sensor".
- Why does a computer need both RAM and ROM?
- RAM is volatile, so it cannot keep the start-up instructions when the power is off; it holds programs and data in use. ROM is non-volatile and permanently stores the bootstrap instructions.
- Name the three types of secondary storage and an example of each
- Magnetic: hard disk drive. Optical: CD, DVD or Blu-ray. Solid-state (flash): SSD, SD card or USB flash drive.
- How is data stored on an optical disc?
- A laser burns pits into the disc surface; the unchanged areas are lands. When reading, a laser is reflected differently from pits and lands, which are read as binary.
- How does solid-state storage hold data?
- It uses NAND or NOR flash memory with transistors that have a control gate and a floating gate. Charge trapped in the floating gate represents a 1 or a 0, with no moving parts.
- Describe how virtual memory is used
- When RAM is full, part of secondary storage is used as an extension of RAM. Pages of data not currently needed are moved out of RAM, and moved back in when needed.
- What is cloud storage?
- Data stored on remote servers, owned by a third party, and accessed over the internet. It can be reached from anywhere, but depends on a connection and on the provider's physical servers.
- What is the purpose of a NIC?
- A network interface card lets a device connect to a network. Each NIC has a unique MAC address.
- What two parts make up a MAC address?
- A manufacturer code and a serial code. The address is fixed at manufacture and written in hexadecimal.
- Static vs dynamic IP address
- A static IP address is fixed and does not change. A dynamic IP address is assigned by the network each time the device connects, so it can change.
- How do IPv4 and IPv6 addresses differ?
- IPv4 uses 32 bits, written as four denary numbers from 0 to 255 separated by full stops. IPv6 uses 128 bits, written as eight groups of hexadecimal digits separated by colons.
- Give three roles of a router
- It directs data packets to their destination, it can assign IP addresses to devices on the network, and it connects a local network to the internet.
Topic 4: Software
- Is antivirus software application or system software?
- System software. It is a utility program, which maintains the computer, rather than an application that does the user's task.
- State three functions of an operating system
- Any three of: managing files; managing memory; handling interrupts; managing peripherals and drivers; providing a user interface; managing multitasking; providing a platform for applications; providing security; managing user accounts.
- How does the processor deal with an interrupt?
- It checks for interrupts at the end of each fetch-decode-execute cycle. If an interrupt has higher priority than the current task, it saves the task's state, runs the interrupt service routine, then restores and resumes the task.
- Give three reasons for writing in a high-level language
- It is machine independent (portable); it is easier to read and debug; the programmer is less likely to make errors; one statement does the work of many machine-code instructions.
- Why is assembly language used for device drivers and embedded systems?
- It gives direct control of the hardware and memory and can produce code that is fast and uses little memory.
- How do a compiler and an interpreter report errors?
- A compiler translates the whole program first and gives a report listing all the errors. An interpreter stops at the first error it meets and continues only once it is corrected.
- Which translator would you choose to distribute a finished game, and why?
- A compiler: it produces an executable file that runs without the translator, runs faster, and does not give customers the source code.
- What do auto-completion, auto-correction and prettyprint do in an IDE?
- Auto-completion suggests how to finish a keyword or identifier being typed. Auto-correction fixes misspelt keywords. Prettyprint shows keywords and identifiers in different colours and layout so code is easier to read.
- How do hardware, firmware and the operating system work together to run an application?
- The bootloader (firmware) is run on the hardware at start-up; it loads the operating system, which runs on the firmware; applications are then run on the operating system.
- Give the syllabus examples of hardware and software interrupts
- Hardware: pressing a key on the keyboard, moving the mouse. Software: division by zero, two processes trying to access the same memory location.
Topic 5: The internet and its uses
- Is the World Wide Web the same as the internet?
- No. The internet is the global infrastructure of connected networks. The World Wide Web is a collection of web pages and resources accessed using the internet.
- Name the three parts of https://www.example.org/tickets/prices.html
- https is the protocol; www.example.org is the domain name; /tickets/prices.html is the path and file name of the web page.
- Give three functions of a web browser
- Any three of: requests web pages and renders the HTML; stores bookmarks; records history; opens multiple tabs; stores cookies; provides navigation tools such as back and forward buttons and an address bar.
- Describe how the DNS is used to find a website
- The browser sends the domain name to a DNS server, which searches its records for the IP address, passing the request to another DNS server if needed. The IP address is returned, and the browser requests the page from that web server.
- How does a browser set up an HTTPS connection with a web server?
- The browser asks the server to identify itself; the server sends its digital (SSL) certificate; the browser checks it is valid. If so, an encrypted connection is set up; if not, the user is warned.
- Give one use of a session cookie and one of a persistent cookie
- Session cookie: keeping track of a shopping basket during one visit. Persistent cookie: remembering login details or preferences between visits.
- Why is a blockchain hard to tamper with?
- It is a decentralised ledger: every computer in the network holds a copy. Each block holds its own hash and the previous block's hash, so changing a block breaks the chain and does not match the other copies.
- How does a user reach a fake website in phishing and in pharming?
- Phishing: the user clicks a link in a legitimate-looking email or message. Pharming: malicious code on the computer or a DNS server redirects them, even when they type the correct URL.
- What is social engineering?
- Manipulating people into giving away confidential information or access, e.g. by pretending to be a technician. Staff training and clear procedures help prevent it.
- Spyware vs ransomware
- Spyware secretly records what the user does, such as key presses, and sends it to a third party. Ransomware encrypts or locks the user's data and demands payment to release it.
Topic 6: Automated and emerging technologies
- Describe how a sensor-based automated heating system works
- A temperature sensor continually takes readings; an ADC converts them to digital; the microprocessor compares them with stored values; if too cold it signals an actuator to switch the heater on. This repeats continuously.
- Sensor, microprocessor or actuator: which one decides what happens?
- The microprocessor. A sensor only measures, and an actuator only carries out the physical action it is told to.
- Give three areas where automated systems are used
- Any three of: industry (production lines), transport (automatic braking, traffic lights), agriculture (greenhouses, irrigation), weather monitoring, gaming, lighting, science.
- Name the electrical components of a robot
- Sensors, microprocessors and actuators (such as motors). Arms, wheels and legs belong to its mechanical structure, not its electrical components.
- Give two characteristics that make a machine a robot
- It has a mechanical structure or framework, and it is programmable. It also has electrical components such as sensors and actuators.
- Give an advantage and a disadvantage of a remotely controlled robot, with reasons
- Advantage: the operator need not be near the hazard, so they are kept safe. Disadvantage: the network connection could be lost or delayed, so the robot cannot be controlled and work stops.
- What do the knowledge base and the rule base of an expert system hold?
- The knowledge base is a database of facts about the subject, gathered from human experts. The rule base is a set of IF ... THEN rules used to draw conclusions from those facts.
- What does the inference engine do in an expert system?
- It compares the user's answers with the knowledge base, applies the rules in the rule base to reach a conclusion, and decides which question to ask next.
- How does machine learning differ from a system given fixed rules?
- A machine-learning system improves its performance by finding patterns in the data it is trained on, rather than following only rules written by a programmer. Poor or biased data gives poor decisions.
Topic 7: Algorithm design and problem-solving
- What are the stages of the program development life cycle?
- Analysis, design, coding and testing.
- What is decomposition? Give an example
- Breaking a problem into smaller sub-problems that can be solved and tested separately, e.g. a library system split into searching, borrowing, returning and fines.
- What is abstraction? Give an example
- Removing unnecessary detail to focus on what matters, e.g. a rail map that shows the order of stations but not the real distances.
- Which flowchart symbol is used for input/output, and which for a decision?
- Input or output: a parallelogram. Decision: a diamond with labelled yes/no exits. A rectangle is a process; a rounded terminator marks start and end.
- How do you find the maximum value in a list?
- Set Highest to the first item (or a very low value). Compare each item in turn; if it is greater than Highest, replace Highest with it. Output Highest after the loop.
- What happens in one pass of a bubble sort?
- Each pair of adjacent items is compared and swapped if in the wrong order, from the start of the list to the end of the unsorted part. The largest unsorted item ends in its correct place.
- Name six validation checks
- Range check, length check, type check, presence check, format check and check digit.
- Name two methods of verification
- Double entry (the data is entered twice and the two compared) and a visual check (the data is compared by eye with the source).
- What is boundary (extreme) test data?
- Values at the edges of the valid range, which should be accepted, plus the values just outside it, which should be rejected. For 11 to 16: 11 and 16 accepted, 10 and 17 rejected.
- Why must a running total be set to 0 before the loop?
- Otherwise it starts with an unknown value, so every total calculated from it is wrong.
Topic 8: Programming
- Which data type should store a postcode, a price and a yes/no answer?
- Postcode: STRING (letters and digits, not used in calculations). Price: REAL. Yes/no answer: BOOLEAN.
- How do you declare a variable and assign a value in Cambridge pseudocode?
- DECLARE Total : INTEGER declares it; Total ← 0 assigns a value using the arrow. The = sign is used only for comparison.
- What are DIV(47, 6) and MOD(47, 6)?
- DIV(47, 6) = 7, the whole-number part of the division. MOD(47, 6) = 5, the remainder, because 47 = 6 × 7 + 5.
- How do you output an average rounded to 2 decimal places in pseudocode?
- Put the calculation inside ROUND with 2 as the second parameter, e.g. OUTPUT ROUND(Total / Count, 2).
- Where does a string start in Cambridge pseudocode, and what is SUBSTRING("KX4829", 3, 2)?
- The first character is at position 1. SUBSTRING("KX4829", 3, 2) starts at character 3 and takes 2 characters, giving "48".
- How are a function and a procedure called differently?
- A function returns a value, so it is used in an expression, e.g. OUTPUT Perimeter(4.5, 3.0). A procedure does not return a value and is run with CALL.
- Which loop always runs at least once?
- The post-condition loop, REPEAT ... UNTIL, because the condition is tested after each iteration. A WHILE loop tests first and may not run at all.
- What is a CASE OF statement used for?
- Selection between several values of one variable, each with its own action, ending with an optional OTHERWISE and ENDCASE. It is neater than many nested IF statements.
- What is a one-dimensional array?
- A data structure holding several items of the same data type under one identifier, each reached by an index, e.g. DECLARE Scores : ARRAY[1:25] OF INTEGER.
- Why must a program close a file after using it?
- To make sure all data is written to the file and to free it for other use.
- What is a library routine? Give two examples
- A ready-written, tested routine supplied with the language, so you do not write it yourself. Examples: ROUND, RANDOM, MOD, DIV.
Topic 9: Databases
- What is a single-table (flat-file) database?
- A database in which all the data is held in one table of records and fields.
- Fields run down or across a table, and what about records?
- Fields are the columns, each holding one kind of data. Records are the rows, each holding all the data about one item.
- How do you rule out a field as the primary key?
- Look for repeated values in the data. A field such as a surname, where two records share a value, cannot identify one record on its own.
- Which data types would you choose for WeightKg, Vaccinated, Species and Visits?
- WeightKg: real. Vaccinated: Boolean. Species: text. Visits: integer.
- Write SQL to list PetName and OwnerSurname of every dog in table Pet
- SELECT PetName, OwnerSurname FROM Pet WHERE Species = 'Dog';
- How do you list results with the largest value first in SQL?
- Add ORDER BY the field followed by DESC. ORDER BY sorts in ascending order unless DESC is added.
- What do SUM and COUNT return in an SQL query?
- SUM returns the total of the values in a numeric field for the selected records. COUNT returns the number of records that meet the WHERE condition.
- When are quotation marks needed in an SQL condition?
- Around a text value, e.g. Species = 'Dog'. Numbers are written without quotation marks, e.g. WeightKg > 20.
Topic 10: Boolean logic
- Name the six logic gates on the 2210 syllabus
- NOT, AND, OR, NAND, NOR and XOR.
- Truth table for AND and OR (A, B → AND, OR)
- 0, 0 → 0, 0 0, 1 → 0, 1 1, 0 → 0, 1 1, 1 → 1, 1
- Truth table for NOR (A, B → X)
- 0, 0 → 1 0, 1 → 0 1, 0 → 0 1, 1 → 0
- What does XOR mean?
- Exclusive OR: the output is 1 when one input or the other is 1, but not both.
- How is a NAND gate related to an AND gate?
- NAND is NOT AND: its output is the AND output inverted, so it is 0 only when both inputs are 1. The small circle on its symbol shows the inversion.
- How many rows does a truth table for three inputs need?
- 8 (2³), listed in binary order from 000 to 111.
- Write XOR using only AND, OR and NOT
- X = (A AND NOT B) OR (NOT A AND B).
- Write a logic expression: alarm S sounds when door D is open and keypad K is not unlocked, or panic button P is pressed
- S = (D AND NOT K) OR P.
- What is the maximum number of inputs in a 2210 logic circuit?
- Three inputs and one output.
Flashcards by topic
- Topic 1 Data representation 16 cards
- Topic 2 Data transmission 15 cards · 3 subtopics
- Topic 3 Hardware 23 cards · 4 subtopics
- Topic 4 Software 10 cards
- Topic 5 The internet and its uses 10 cards
- Topic 6 Automated and emerging technologies 9 cards
- Topic 7 Algorithm design and problem-solving 10 cards
- Topic 8 Programming 11 cards
- Topic 9 Databases 8 cards
- Topic 10 Boolean logic 9 cards
Written for Cambridge O Level Computer Science (2210), syllabus 2210 (2026-2028).
Cards by Marlbridge Academic Team; 4 restate definitions from the 2210 revision notes. This deck has not yet been reviewed as a whole by a subject teacher. Report an error.