Answer
Free flashcards · Cambridge IGCSE · 0478
Computer Science flashcards
126 cards covering every topic of the 0478 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 126 cards
For a quick read-through or printing. Cover the right-hand side to test yourself.
Topic 1: Data representation
- Why do computers store data in binary?
- A computer is built from switches (transistors) that have two states, on and off, which are represented as 1 and 0. All data and instructions are therefore stored and processed as binary.
- How do you convert binary to hexadecimal?
- Split the binary number into nibbles (groups of 4 bits) from the right, then convert each nibble to one hex digit (0-9, then A=10 to F=15). Example: 11011001 → 1101 1001 → D9.
- Why is hexadecimal used in computer science?
- It is a shorter, more readable way for humans to write binary, with fewer errors. Uses include MAC addresses, IPv6 addresses, colour codes, memory dumps and error codes. The computer itself still stores binary.
- What is overflow in binary addition?
- The result of a calculation needs more bits than the register can hold, so the extra (most significant) bit is lost and the stored answer is wrong. In 8 bits, any result over 255 overflows.
- What does a logical shift do to an unsigned binary number?
- A shift left of one place multiplies the number by 2; a shift right of one place divides it by 2. Bits shifted out of the register are lost, which can make the result inaccurate.
- How do you write a negative number in 8-bit two's complement?
- Write the positive number in binary, flip every bit, then add 1. Example: 19 = 00010011 → 11101100 → 11101101, which is -19. The leftmost bit has a place value of -128.
- Convert denary 174 to binary and hexadecimal
- 174 = 128 + 32 + 8 + 4 + 2 = 10101110. Nibbles 1010 and 1110 are A and E, so the hex value is AE.
- What is a character set?
- A defined list of characters that a computer recognises, each with a unique binary code. ASCII and Unicode are examples.
- ASCII vs extended ASCII vs Unicode: bits and number of characters
- ASCII: 7 bits, 128 characters. Extended ASCII: 8 bits, 256 characters. Unicode: 16 bits or more per character, covering a very wide range of the world's writing systems.
- Why is Unicode used instead of ASCII for a multilingual website?
- ASCII cannot represent non-Latin scripts. Unicode covers a very wide range of languages and symbols, though it can need more storage per character.
- What are sample rate and sample resolution in sound?
- Sample rate: the number of samples of the sound wave taken per second (Hz). Sample resolution: the number of bits used to store each sample. Raising either improves accuracy and increases file size.
- What are image resolution and colour depth?
- Resolution: the number of pixels in the image (width × height). Colour depth: the number of bits used per pixel; n bits give 2ⁿ possible colours. Raising either improves quality and increases file size.
- How many colours can be shown with a colour depth of 8 bits?
- 2⁸ = 256 colours.
- What are a nibble and a byte?
- A nibble is 4 bits. A byte is 8 bits (two nibbles).
- List the storage units from KiB upwards and the factor between them
- Kibibyte (KiB), mebibyte (MiB), gibibyte (GiB), tebibyte (TiB), pebibyte (PiB), exbibyte (EiB). Each is 1024 times the one before; 1 KiB = 1024 bytes.
- How do you calculate the file size of an image and of a sound file?
- Image (bits) = width × height × colour depth. Sound (bits) = sample rate × sample resolution × length in seconds. Then ÷ 8 for bytes, ÷ 1024 for KiB, ÷ 1024 again for MiB.
- Lossless vs lossy compression
- Lossless: removes redundancy so the original file can be restored exactly (e.g. RLE); used for text and program files. Lossy: permanently removes detail people are unlikely to notice, giving much smaller files; used for photos, music and video.
- How does run length encoding (RLE) work?
- It replaces a run of identical values with one value-and-count pair, e.g. WWWWBBB → 4W 3B. It is lossless and works best on images with large blocks of one colour, not on photographs.
- Why is compression used?
- Smaller files use less storage space, upload and download faster, and use less bandwidth when sent over a network.
- An image is 1024 × 768 pixels with 24-bit colour. What is its size in MiB?
- 1024 × 768 × 24 = 18,874,368 bits ÷ 8 = 2,359,296 bytes ÷ 1024 = 2304 KiB ÷ 1024 = 2.25 MiB.
Topic 2: Data transmission
- What is a data packet made up of?
- A header (destination address, packet number and originator's address), a payload (the actual data) and a trailer (marks the end of the packet and can hold an error check).
- Describe packet switching
- The message is split into packets. Routers choose the route for each packet, so packets can travel by different routes and arrive out of order. The receiving device uses the packet numbers to reorder them.
- Serial vs parallel transmission
- Serial: one bit at a time down a single wire; reliable over long distances and cheaper cabling. Parallel: several bits at once down several wires; faster over short distances, but bits can arrive out of sync (skew) over long ones.
- Simplex, half-duplex and full-duplex
- Simplex: one direction only (e.g. computer to printer). Half-duplex: both directions, but only one at a time (e.g. walkie-talkie). Full-duplex: both directions at the same time (e.g. phone call).
- Give one benefit and one drawback of USB
- Benefit: a standard connector supported by most devices, which also supplies power and is detected automatically. Drawback: a limited maximum cable length and transmission speeds lower than some dedicated interfaces.
- Why is error detection needed when data is transmitted?
- Data can be corrupted, lost or gained in transit by interference, congestion or equipment faults, so the receiver must be able to tell whether the data arrived exactly as sent.
- How does a parity check work?
- Sender and receiver agree odd or even parity. A parity bit is set so the number of 1s in each byte is odd (or even). The receiver counts the 1s; a wrong total shows an error. It cannot detect two bits changing.
- What does a parity block (parity byte) add to a parity check?
- A parity bit is calculated for each row and each column of a block of bytes. The row and column that fail cross at the incorrect bit, so the error can be located and corrected.
- Checksum vs echo check
- Checksum: a value calculated from the data is sent with it and recalculated on arrival; different values show an error. Echo check: the receiver sends the data back to the sender to compare with the original.
- What is a check digit, and how does it differ from parity and checksums?
- An extra digit calculated from the other digits of a number such as an ISBN or barcode. It checks that one item of data has been entered correctly, not that a whole transmission arrived intact.
- What is an automatic repeat query (ARQ)?
- The receiver sends a positive acknowledgement if the data is correct, or a negative one if not. If the sender gets no acknowledgement before a timeout, or a negative one, it resends the data.
- What is the purpose of encryption?
- To scramble data (plaintext into ciphertext) so that if it is intercepted it cannot be understood without the key. It does not stop the data being intercepted.
- What is symmetric encryption?
- One shared key is used both to encrypt and to decrypt the data. The key must be sent to the receiver, and if it is intercepted the data can be read.
- What is asymmetric encryption?
- A mathematically linked public key and private key are used. Data encrypted with the receiver's public key can only be decrypted with the matching private key, which is never shared.
- Why is asymmetric encryption more secure than symmetric for sending data?
- The private key never has to be transmitted, so there is no shared key that could be intercepted. Anyone can have the public key, but it cannot decrypt the data.
Topic 3: Hardware
- What do the ALU and the CU do?
- ALU (arithmetic logic unit): carries out arithmetic and logic operations. CU (control unit): sends control signals that manage the fetch-decode-execute cycle and the flow of data in the CPU.
- What do the PC, MAR, MDR, CIR and ACC hold?
- PC: address of the next instruction. MAR: address being accessed in memory. MDR: data or instruction being moved to or from memory. CIR: instruction being decoded and executed. ACC: result of ALU operations.
- What do the address bus, data bus and control bus carry?
- Address bus: memory addresses (where), one way from the CPU. Data bus: data and instructions (what), both ways. Control bus: control signals such as read, write and clock, both ways.
- Describe the fetch stage of the fetch-decode-execute cycle
- The address in the PC is copied to the MAR. The instruction at that address is copied from RAM to the MDR, then to the CIR. The PC is incremented to point to the next instruction.
- How do cores, cache and clock speed affect CPU performance?
- More cores: more instructions processed at once. Larger cache: more frequently used data held close to the CPU, so fewer slow trips to RAM. Faster clock: more cycles, so more instructions, per second.
- What is an instruction set?
- The list of all the commands, in machine code, that a particular CPU can process.
- What is an embedded system?
- A computer system built into a larger device to perform one dedicated function, e.g. in a washing machine, car, security system or vending machine. A PC, by contrast, is general-purpose.
- Name six input devices on the 0478 syllabus
- Any six of: barcode scanner, digital camera, keyboard, microphone, optical mouse, QR code scanner, touch screen (resistive, capacitive or infra-red), 2D scanner, 3D scanner.
- Name six output devices on the 0478 syllabus
- Any six of: actuator, DLP projector, LCD projector, inkjet printer, laser printer, LED screen, LCD screen, speaker, 3D printer.
- What is a sensor?
- An input device that measures a physical property of its surroundings (such as temperature, light or pressure) and sends the reading to a computer, usually as an analogue signal that is converted to digital.
- Which sensor would you use to: detect an obstacle near a car; measure soil wetness; detect a gas leak?
- Obstacle: proximity sensor (or acoustic sensor). Soil wetness: moisture sensor. Gas leak: gas sensor.
- What is an actuator?
- An output device that turns a signal from a computer into physical movement or action, e.g. a motor, pump, valve or heater.
- Primary vs secondary storage
- Primary storage (RAM and ROM) is directly accessed by the CPU. Secondary storage (HDD, SSD, optical discs) is not directly accessed by the CPU, is non-volatile and is used to store data and programs long-term.
- RAM vs ROM
- RAM: volatile, read and write, holds the programs and data currently in use. ROM: non-volatile, read-only, holds the start-up (bootstrap) instructions.
- How does magnetic storage (an HDD) store data?
- Data is stored on spinning platters divided into tracks and sectors. A read/write head uses an electromagnet to magnetise areas of the surface, representing 1s and 0s.
- How do optical and solid-state storage store data?
- Optical (CD, DVD, Blu-ray): a laser burns and reads pits and lands on the disc surface. Solid-state (SSD, SD card, USB drive): NAND or NOR flash memory, using transistors with control gates and floating gates to trap charge.
- What is virtual memory and why is it needed?
- Part of secondary storage used as if it were RAM when RAM is full. Pages of data not currently needed are moved from RAM to virtual memory and back when needed, so more programs can run than RAM alone allows.
- Give one advantage and one disadvantage of cloud storage compared with local storage
- Advantage: data can be accessed from anywhere with an internet connection. Disadvantage: it relies on a network connection and on physical servers run by a third party.
- What is a network interface card (NIC)?
- The hardware a device needs to connect to a network. It is given a MAC address at manufacture.
- What is a MAC address?
- A unique address fixed to a device's NIC at manufacture, written in hexadecimal. It is made up of a manufacturer code and a serial code.
- What is an IP address, and how does a static IP address differ from a dynamic one?
- An address allocated by the network that identifies a device's location on it. A static IP address stays the same; a dynamic one is assigned each time the device connects and can change.
- IPv4 vs IPv6
- IPv4: 32 bits, written as four denary numbers 0-255 separated by dots. IPv6: 128 bits, written as eight groups of four hexadecimal digits separated by colons, allowing far more addresses.
- What does a router do?
- It sends data packets to a specific destination on a network, can assign IP addresses to devices, and connects a local network to the internet.
- MAC address vs IP address
- A MAC address is fixed at manufacture and identifies the network hardware itself. An IP address is allocated by the network, can change, and identifies where the device is on the network.
Topic 4: Software
- System software vs application software
- System software manages the computer and provides a platform for other software (operating system, utilities, device drivers, translators). Application software lets the user do a useful task (word processor, spreadsheet, web browser).
- Give five functions of an operating system
- Any five of: managing files; handling interrupts; providing a user interface; managing peripherals and drivers; managing memory; managing multitasking; providing a platform for applications; managing security; managing user accounts.
- What is an interrupt?
- A signal to the processor that something needs attention at once, e.g. a key press, a printer out of paper, a division-by-zero error or a timer. It can come from hardware or software.
- What happens when the processor receives an interrupt?
- At the end of the current fetch-decode-execute cycle it checks for interrupts. If the interrupt has high enough priority, it saves the current state, runs the interrupt service routine, then restores the state and carries on.
- What is a device driver?
- A small program that translates operating system commands into signals that a particular peripheral, such as a printer, understands.
- High-level vs low-level languages
- High-level (e.g. Python): close to human language, easier to write and debug, not tied to one processor. Low-level (machine code, assembly): close to the processor, gives direct control of hardware and memory, but is processor-specific and harder to write.
- Compiler vs interpreter
- Compiler: translates the whole program before it runs, creating an executable; reports all errors after translation; runs fast without the translator. Interpreter: translates and runs one statement at a time; stops at the first error; needed every run.
- What does an assembler do?
- It translates assembly language (mnemonics such as LDA and ADD) into machine code.
- Name four features of an IDE
- Any four of: code editor (with syntax highlighting, auto-completion, auto-correction and pretty printing); error diagnostics; run-time environment; translator; debugging tools such as breakpoints, stepping and variable watching.
- 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
- What is the difference between the internet and the World Wide Web?
- The internet is the global network of interconnected networks (the infrastructure). The World Wide Web is a collection of web pages and resources stored on web servers and accessed using the internet.
- What are the parts of a URL?
- The protocol (e.g. https), the domain name (e.g. www.example.com) and usually a path and file name (e.g. /shop/boots.html).
- HTTP vs HTTPS
- HTTP is the protocol used to request and send web pages. HTTPS is the secure version: it encrypts the data using SSL/TLS, so intercepted data cannot be read.
- How does the DNS find a web page?
- The browser sends the domain name to a DNS server, which looks up the matching IP address (asking other DNS servers if needed) and returns it. The browser then requests the page from the web server at that IP address.
- Session cookie vs persistent cookie
- A session cookie is held in memory and deleted when the browser closes, e.g. to keep a shopping basket. A persistent cookie stays on the device until it expires or is deleted, e.g. to remember logins or preferences.
- What is a blockchain?
- A digital ledger of transactions held as a chain of blocks, shared across many computers. Each block holds transactions, a timestamp, its own hash and the hash of the previous block, so changing a past block breaks the chain and is detected.
- What is a DDoS attack, and how can it be prevented?
- Distributed denial of service: many computers flood a server with requests so genuine users cannot get through. Defences include a firewall, traffic filtering and proxy servers.
- Phishing vs pharming
- Phishing: fake emails or messages pretending to be from a trusted source trick the user into giving personal data. Pharming: malicious code redirects the user to a fake website even when the correct URL is typed.
- What is a brute-force attack, and how is it prevented?
- Trying many passwords or keys in turn until one works. Prevent it with long, complex passwords, a limit on login attempts and two-factor authentication.
- Name five types of malware
- Any five of: virus, worm, trojan horse, spyware, adware, ransomware.
Topic 6: Automated and emerging technologies
- What are the three main parts of an automated system?
- Sensors measure a physical property. A microprocessor reads the data, compares it with stored values and decides what to do. Actuators carry out the physical action, e.g. a motor, pump or heater.
- Why does an automated system need an ADC?
- Sensors usually produce analogue signals that vary continuously, but the microprocessor can only process digital data, so an analogue-to-digital converter is needed between them.
- Describe the feedback loop in an automated system
- The sensor takes a reading, which is converted to digital. The processor compares it with the preset value and, if action is needed, signals an actuator. The next reading reflects the effect, and the loop repeats continuously.
- Give two advantages and two disadvantages of automated systems
- Advantages: work continuously; consistent quality; faster response; remove people from danger. Disadvantages: high set-up and maintenance cost; job losses; need skilled technicians; a fault can be repeated at speed.
- What are the characteristics of a robot?
- It has a mechanical structure (such as arms, wheels or legs), electrical components (sensors, motors, a processor), and it is programmable.
- Give two advantages and two disadvantages of robots in a factory
- Advantages: work non-stop; very consistent and accurate; can work in hazardous places. Disadvantages: high purchase and maintenance cost; cannot cope well with unexpected situations; can cause unemployment.
- What is artificial intelligence (AI)?
- The ability of a computer system to carry out tasks that normally need human intelligence. An AI system collects data, uses rules to reason about it, and can adapt its behaviour.
- Knowledge base, rule base and inference engine
- Knowledge base: stores the facts. Rule base: stores the rules, usually IF condition THEN conclusion. Inference engine: applies the rules to the facts to reach a conclusion.
- What is machine learning?
- A branch of AI in which the system improves its performance by learning from data, rather than being given every rule by a programmer, e.g. a spam filter trained on labelled emails.
Topic 7: Algorithm design and problem-solving
- What are abstraction, decomposition and pattern recognition?
- Abstraction: keep only the details that matter. Decomposition: split a problem into smaller sub-problems. Pattern recognition: spot similarities so a solution can be reused or a task put in a loop.
- What do the flowchart symbols mean?
- Rounded terminator: start or end. Parallelogram: input or output. Rectangle: process. Diamond: decision, with labelled yes/no exits. Arrows show the order.
- How do totalling and counting work in an algorithm?
- Totalling: set Total ← 0 before the loop, then Total ← Total + Value inside it. Counting: set Count ← 0, then Count ← Count + 1 each time the condition is met.
- How does a linear search work?
- Check each item in turn from the start until the target is found or the end of the list is reached. It works on unsorted data but can be slow, as every item may need checking.
- How does a bubble sort work?
- Compare adjacent items and swap them if they are in the wrong order, working through the list. After each pass the largest unsorted item is in place. Stop when a pass makes no swaps.
- Why does a swap in a bubble sort need a temporary variable?
- To hold one value while the other is copied over it. Without Temp, one of the two values would be overwritten and lost.
- Validation vs verification
- Validation: an automatic check that data is reasonable and allowed (range, length, type, presence, format, check digit); it cannot prove data is correct. Verification: checks data was entered or copied accurately (double entry, visual check).
- Normal, boundary and abnormal test data for whole numbers 1 to 10
- Normal: e.g. 5 (accepted). Boundary: 1 and 10 (accepted) and 0 and 11, the first values outside the range (rejected). Abnormal (erroneous): e.g. "ten" (rejected).
- What is a trace table used for?
- Recording the value of each variable, and any output, step by step as an algorithm runs, to work out what it does or find a logic error.
Topic 8: Programming
- Variable vs constant
- A variable is a named memory location whose value can change while the program runs. A constant is a named value fixed for the whole run, so it only needs changing in one place.
- What are the five data types in Cambridge pseudocode?
- INTEGER (whole number), REAL (number with a fractional part), CHAR (a single character), STRING (zero or more characters), BOOLEAN (TRUE or FALSE).
- What are sequence, selection and iteration?
- Sequence: statements run in the order written. Selection: a path is chosen (IF ... THEN ... ELSE ... ENDIF, CASE OF ... ENDCASE). Iteration: statements are repeated (FOR, WHILE, REPEAT loops).
- FOR vs WHILE vs REPEAT ... UNTIL loops
- FOR ... NEXT: count-controlled, runs a set number of times. WHILE ... DO ... ENDWHILE: pre-condition, tested first, may run zero times. REPEAT ... UNTIL: post-condition, tested after, always runs at least once.
- What do DIV and MOD do? Give 17 DIV 5 and 17 MOD 5
- DIV gives the whole-number part of a division; MOD gives the remainder. 17 DIV 5 = 3 and 17 MOD 5 = 2.
- What do LENGTH, SUBSTRING, UCASE and LCASE do?
- LENGTH returns the number of characters. SUBSTRING(Word, Start, Length) returns part of a string, e.g. SUBSTRING("Cambridge", 1, 4) is "Camb". UCASE and LCASE convert to upper or lower case.
- Procedure vs function
- Both are named blocks of code called by name that can take parameters. A function returns a value that can be used in an expression; a procedure does not.
- Local vs global variables
- A local variable exists only inside the procedure or function where it is declared. A global variable can be used anywhere in the program. Local variables prevent accidental changes elsewhere.
- How do you declare and use a 2D array in pseudocode?
- DECLARE Grid : ARRAY[1:3, 1:4] OF INTEGER declares 3 rows and 4 columns. Grid[2, 4] is row 2, column 4. Arrays are usually processed with nested FOR loops.
- What are the steps of file handling in pseudocode?
- Open the file (OPENFILE ... FOR READ or FOR WRITE), process it (READFILE or WRITEFILE, testing EOF when reading), then close it (CLOSEFILE). Opening for WRITE replaces the old contents.
- How do you make a program maintainable?
- Use meaningful identifier names, comments, indentation, constants instead of repeated values, and procedures and functions for repeated tasks.
Topic 9: Databases
- Table, field and record
- A table holds data about one kind of thing. A field is a column holding one kind of fact. A record is a row holding all the facts about one item.
- What is a primary key?
- A field whose value is unique for every record, so each record can be identified. It cannot be left empty. An ID number is a good choice; a name is not, since two people can share one.
- Which database data types do you need for 0478?
- Text/alphanumeric, character, Boolean, integer, real, and date/time.
- Why is a telephone number stored as text, not an integer?
- It is never used in calculations, and a leading zero would be lost if it were stored as a number.
- What do SELECT, FROM, WHERE and ORDER BY do in SQL?
- SELECT lists the fields to show (* for all). FROM names the table. WHERE gives the condition records must meet. ORDER BY sorts the results, ascending by default, or descending with DESC.
- What do SUM and COUNT do in SQL?
- SUM adds up the values in a numeric field. COUNT counts the records that meet the condition. Each returns a single value.
- In what order must the clauses of an SQL query be written?
- SELECT, FROM, WHERE, ORDER BY. Text values go in quotation marks; numbers do not.
- Write SQL to show the Title of books by N Okafor priced under 10, from table Book
- SELECT Title FROM Book WHERE Author = 'N Okafor' AND Price < 10;
Topic 10: Boolean logic
- When is the output of a NOT, AND and OR gate 1?
- NOT: when the input is 0 (it inverts). AND: only when both inputs are 1. OR: when at least one input is 1.
- When is the output of a NAND, NOR and XOR gate 1?
- NAND: unless both inputs are 1. NOR: only when both inputs are 0. XOR: only when the inputs are different.
- Truth table for XOR (A, B → X)
- 0, 0 → 0 0, 1 → 1 1, 0 → 1 1, 1 → 0
- Truth table for NAND (A, B → X)
- 0, 0 → 1 0, 1 → 1 1, 0 → 1 1, 1 → 0
- How many rows does a truth table have?
- 2ⁿ rows for n inputs: 4 rows for two inputs and 8 rows for three. List them in binary counting order (000, 001, 010 ...).
- OR vs XOR
- OR gives 1 when either or both inputs are 1. XOR gives 1 only when exactly one input is 1.
- Is A NAND B the same as (NOT A) AND (NOT B)?
- No. A NAND B is NOT (A AND B), which is 1 unless both inputs are 1. (NOT A) AND (NOT B) is 1 only when both are 0, which is NOR.
- How do you write a logic expression from a problem statement?
- Give each condition a letter, then join them with AND (both), OR (either) and NOT (not / unless), using brackets. E.g. heater on when cold and window not open: H = C AND (NOT W).
- How do you complete a truth table for a circuit with several gates?
- Add a working column for the output of each gate and fill them left to right through the circuit, then the final output. Working columns can earn marks even if the final column is wrong.
Flashcards by topic
- Topic 1 Data representation 20 cards · 3 subtopics
- Topic 2 Data transmission 15 cards · 3 subtopics
- Topic 3 Hardware 24 cards · 4 subtopics
- Topic 4 Software 11 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 9 cards
- Topic 8 Programming 11 cards
- Topic 9 Databases 8 cards
- Topic 10 Boolean logic 9 cards
Written for Cambridge IGCSE Computer Science (0478), syllabus 0478 (2026-2028).
Cards by Marlbridge Academic Team. This deck has not yet been reviewed as a whole by a subject teacher. Report an error.