Computer Science practice
196 computer science topics in 20 units, in teaching order. Practice topics give new numbers each time; quizzes, flashcards and diagrams use a fixed set. After each answer you see an explanation.
Start here
What is a computer? (hardware overview)
Computer hardware is the physical parts of a computer, the ones you can touch.
First topic of Foundations.
Start practisingUnit 1: Foundations
10 topics · ~1.5 h
- What is a computer? (hardware overview)Computer hardware is the physical parts of a computer, the ones you can touch.Flashcards · easy, medium, hard
- Binary, decimal, hex number systems (CS framing)Computers store everything as bits, which can only be 0 or 1, so they count in binary (base 2).Practice · easy, medium, hard
- How data is represented (bits, bytes, ASCII/Unicode)Computers store all data, including text, pictures and sound, as patterns of bits.Quiz · easy, medium, hard
- Boolean logic & truth tables (CS framing)Boolean logic deals with values that are either true or false, usually written as 1 and 0.Quiz · easy, medium, hard
- Logic gatesLogic gates are the basic building blocks of computer hardware.Diagrams · easy, medium, hard
- The history of computingThe history of computing covers the machines and ideas that led to modern computers, from early counting tools to…Flashcards · easy, medium, hard
- Representing images & soundPictures and sounds are stored as numbers.Quiz · easy, medium, hard
- Data compression (lossy vs. lossless)Data compression reduces the number of bits needed to store or send information.Quiz · easy, medium, hard
- Binary addition, shifts and overflowBinary addition works like decimal addition, but with only two digits.Practice · easy, medium, hard
- Data storage units and file size calculationsA bit is the smallest unit of storage and holds a single 0 or 1.Practice · easy, medium, hard
Unit 2: Programming fundamentals
16 topics · ~2.5 h
- Variables & data types (concept)Variables are named containers that hold values while a program runs.Quiz · easy, medium, hard
- Operators & expressionsAn operator is a symbol that performs a calculation or comparison on values, such as + for addition or == for equality.Practice · easy, medium, hard
- Control flow: conditionalsA conditional statement runs a block of code only when a condition is true.Quiz · easy, medium, hard
- Control flow: loopsA loop repeats a block of instructions either a set number of times or while a condition holds.Quiz · easy, medium, hard
- Functions & parameters (concept)A function is a named block of code that performs one task and can be run whenever it is needed.Quiz · easy, medium, hard
- Scope & variable lifetimeThe scope of a variable is the part of a program where its name can be used.Quiz · easy, medium, hard
- Recursion (concept & tracing)Recursion is when a function solves a problem by calling itself on a smaller version of the same problem.Practice · easy, medium, hard
- Pseudocode & flowchartsPseudocode and flowcharts are two ways to plan an algorithm before writing real code.Diagrams · easy, medium, hard
- Debugging strategiesDebugging is the process of finding and fixing errors in a program.Quiz · easy, medium, hard
- Nested loops: counting iterations and outputA loop repeats a block of statements.Practice · easy, medium, hard
- Data validation, verification and authenticationValidation, verification and authentication are three checks that protect the quality and security of data.Quiz · easy, medium, hard
- Testing: error types and test dataTesting checks that a program does what it is meant to do.Quiz · easy, medium, hard
- Trace tablesA trace table records the value of each variable at each step of an algorithm.Practice · easy, medium, hard
- Computational thinking: abstraction, decomposition, pattern recognitionComputational thinking is a set of problem-solving skills used before any code is written.Quiz · easy, medium, hard
- String manipulation, casting & ASCII arithmeticA string is a sequence of characters, such as a word or sentence.Practice · easy, medium, hard
- Defensive design & maintainabilityDefensive design means writing programs that expect misuse and unusual input, and that still behave safely when it…Quiz · easy, medium, hard
Unit 3: Python
25 topics · ~4 h
- Syntax basics (indentation, print)Python programs are made of statements, normally one per line, and they run from top to bottom.Practice · easy, medium, hard
- Variables & data typesIn Python, a variable is created the moment you give it a value with the = sign, and you do not write its type in…Practice · easy, medium, hard
- OperatorsOperators are symbols that combine values into new values, such as addition or comparison.Practice · easy, medium, hard
- Strings & string methodsA string is a sequence of characters written inside quotes, and Python provides methods that work on strings.Practice · easy, medium, hard
- ListsA list is an ordered collection of items written in square brackets, such as [3, 1, 4].Practice · easy, medium, hard
- TuplesA tuple is an ordered, fixed collection of values, written in parentheses and separated by commas.Practice · easy, medium, hard
- DictionariesA dictionary in Python stores pairs of keys and values.Practice · easy, medium, hard
- SetsA set in Python is an unordered collection in which each value appears at most once.Practice · easy, medium, hard
- ConditionalsConditionals let a program choose which code to run depending on whether a condition is true.Practice · easy, medium, hard
- Loops (for/while)Loops repeat a block of code.Practice · easy, medium, hard
- List comprehensionsA list comprehension builds a new list from an existing iterable in a single expression, with an optional condition…Practice · easy, medium, hard
- Functions & default argumentsA default argument is a value a function uses when the caller does not supply that argument.Practice · easy, medium, hard
- *args and kwargsA Python function can accept any number of extra arguments by declaring special parameters.Practice · easy, medium, hard
- Lambda functionsA lambda is a small anonymous function written as a single expression.Practice · easy, medium, hard
- Error handling (try/except)Error handling lets a Python program deal with a problem, such as a missing number or a division by zero, without…Practice · easy, medium, hard
- File I/OFile I/O is how a Python program reads data from files and writes data to them.Practice · easy, medium, hard
- Classes & objects (OOP basics)A class is a blueprint for objects, and an object is one instance made from that blueprint.Practice · easy, medium, hard
- Inheritance & polymorphismInheritance lets a new class reuse and extend an existing class, and polymorphism lets code call the same method…Practice · easy, medium, hard
- Modules & packages (concept)A module is a single Python file whose functions and variables can be used by other code, and a package is a folder…Quiz · easy, medium, hard
- Virtual environments & pip (concept)A virtual environment is a folder that holds its own Python installation and its own set of installed packages,…Quiz · easy, medium, hard
- Standard library highlightsThe Python standard library is the set of modules that comes with every Python installation, so many common tasks…Flashcards · easy, medium, hard
- Intro to NumPy/pandas (concept)NumPy and pandas are third-party libraries for working with numbers and tables in Python.Quiz · easy, medium, hard
- Intro to Flask/web frameworks (concept)A web framework provides the building blocks for a web application, such as receiving requests from a browser,…Quiz · easy, medium, hard
- Decorators (concept)A decorator is a function that takes another function, wraps it with extra behaviour and returns the new function.Quiz · easy, medium, hard
- Code tracing: "what does this print?"Code tracing means working through a program by hand, line by line, keeping track of each variable's value, so you…Practice · easy, medium, hard
Unit 4: JavaScript
25 topics · ~4 h
- Syntax basicsA JavaScript program is a list of statements that the engine runs from top to bottom.Practice · easy, medium, hard
- Variables (var/let/const)JavaScript has three keywords for declaring variables: var, let and const.Practice · easy, medium, hard
- Data typesJavaScript values are either primitives, which hold one simple value, or objects, which hold named properties.Practice · easy, medium, hard
- Operators & type coercionJavaScript converts values to other types automatically when an operator needs a different type.Practice · easy, medium, hard
- Strings & template literalsStrings hold text in JavaScript.Practice · easy, medium, hard
- Arrays & array methodsAn array is an ordered list of values, indexed from zero.Practice · easy, medium, hard
- ObjectsAn object groups related values under named properties, written as key-value pairs.Practice · easy, medium, hard
- ConditionalsConditionals let a program choose which code to run based on whether a condition is true.Practice · easy, medium, hard
- LoopsA loop repeats a block of code while a condition holds, or once for each item in a collection.Practice · easy, medium, hard
- Functions & arrow functionsA function groups code under a name so it can be reused with different inputs.Practice · easy, medium, hard
- Scope & closuresScope decides where a variable can be used.Quiz · easy, medium, hard
- The "this" keyword (concept)The value of this is decided by how a function is called, not where it is written.Quiz · easy, medium, hard
- Promises & async/await (concept)A promise represents a value that will be available later, such as the result of a network request.Quiz · easy, medium, hard
- Error handling (try/catch)Error handling lets a program respond to a problem, such as bad input or a failed operation, without crashing.Practice · easy, medium, hard
- DOM manipulation basicsThe Document Object Model, or DOM, is the browser's tree of objects that represents a web page.Practice · easy, medium, hard
- Event handling basicsEvents are signals that something happened, such as a click, a key press or a form submission.Quiz · easy, medium, hard
- Classes & prototypesA class is a template for creating objects that share methods and properties.Practice · easy, medium, hard
- JSON basicsJSON, short for JavaScript Object Notation, is a plain text format for structured data.Practice · easy, medium, hard
- Modules (import/export, concept)Modules split a program into files that each have their own scope.Quiz · easy, medium, hard
- ES6+ features overviewES6, also called ECMAScript 2015, added many features that make JavaScript shorter and clearer, and the later annual…Flashcards · easy, medium, hard
- Intro to Node.js (concept)Node.js runs JavaScript outside the browser, on a computer or server.Quiz · easy, medium, hard
- Intro to React basics (concept)React is a JavaScript library for building user interfaces from components.Quiz · easy, medium, hard
- Fetch API & working with APIs (concept)The fetch function sends an HTTP request from JavaScript and returns a promise for the response.Quiz · easy, medium, hard
- Common quirks & gotchasJavaScript has several behaviours that surprise most newcomers, from the default sort order of arrays to how NaN…Quiz · easy, medium, hard
- Code tracing: "what does this log?"Code tracing means following a program by hand to predict its output before running it.Practice · easy, medium, hard
Unit 5: Java
25 topics · ~4 h
- Syntax basics (classes, main method)A Java program is built from classes, and every program starts running in a method called main.Practice · easy, medium, hard
- Variables & primitive typesIn Java every variable must be declared with a type before it is used, and that type cannot change afterwards.Practice · easy, medium, hard
- OperatorsJava operators are symbols that combine values.Practice · easy, medium, hard
- Strings & the String classA String in Java is an object that holds a sequence of characters.Practice · easy, medium, hard
- ArraysAn array is an ordered collection of values stored under a single name, where each value is reached by its index.Practice · easy, medium, hard
- ConditionalsIn Java, an if statement runs its block only when its condition is true.Practice · easy, medium, hard
- Loops (for/while/do-while)A loop repeats a block of instructions.Practice · easy, medium, hard
- Methods & overloadingA method is a named block of code inside a class that can be called to do a job.Practice · easy, medium, hard
- Classes & objects (OOP basics)In Java a class is a blueprint, and an object is an instance created from it with the new keyword.Practice · easy, medium, hard
- ConstructorsA constructor is a special method that runs when an object is created with new, and it sets up the object's starting…Practice · easy, medium, hard
- InheritanceInheritance lets one class, called a subclass, reuse the attributes and methods of another class, called its…Practice · easy, medium, hard
- Interfaces & abstract classesAn interface and an abstract class both describe what a class must provide without always implementing it all.Quiz · easy, medium, hard
- PolymorphismPolymorphism means "many forms": the same method call can produce different results depending on which object it is…Practice · easy, medium, hard
- Encapsulation & access modifiersEncapsulation means keeping an object's data private and letting other code use it only through methods the class…Quiz · easy, medium, hard
- Exception handling (try/catch)An exception is an event that interrupts the normal flow of a program, such as dividing an integer by zero or…Practice · easy, medium, hard
- Collections framework (ArrayList, HashMap)The Java Collections Framework provides ready-made data structures.Practice · easy, medium, hard
- Generics (concept)Generics let a class or method work with a type that the caller chooses, such as String or Integer, and the compiler…Quiz · easy, medium, hard
- Static vs. instance membersA static member belongs to the class itself and is shared by all of its objects.Practice · easy, medium, hard
- Packages & imports (concept)A package is a group of related Java classes, and it gives each class a fully qualified name made of the package…Quiz · easy, medium, hard
- File I/OJava reads and writes files with classes from java.nio.file and java.io.Practice · easy, medium, hard
- Standard library highlightsThe Java standard library, also called the Java API, comes with the JDK, so these classes need no extra download.Flashcards · easy, medium, hard
- Intro to Spring framework (concept)Spring is a Java framework that creates and connects the objects of an application for you.Quiz · easy, medium, hard
- Memory management & garbage collection (concept)Java manages memory automatically.Quiz · easy, medium, hard
- Multithreading basics (concept)A thread is an independent path of execution within a program.Quiz · easy, medium, hard
- Code tracing: "what does this print?"Code tracing means working out what a program prints by following it line by line, without running it.Practice · easy, medium, hard
Unit 6: Data structures
11 topics · ~2 h
- Arrays & listsAn array is a collection of items stored under one name, where each item is picked out by its index.Quiz · easy, medium, hard
- 2D arrays (grids)A two-dimensional array stores values in rows and columns, like a grid or a table.Practice · easy, medium, hard
- Linked listsA linked list is a collection of nodes, where each node stores a value and a pointer, which is a reference to the…Diagrams · easy, medium, hard
- StacksA stack is a data structure that holds items in last-in, first-out (LIFO) order.Quiz · easy, medium, hard
- QueuesA queue is a data structure that holds items in first-in, first-out (FIFO) order.Quiz · easy, medium, hard
- Hash tables/mapsA hash table, also called a hash map or dictionary, stores key and value pairs.Quiz · easy, medium, hard
- Trees (binary trees)A tree is a data structure made of nodes joined by links, with one special node at the top called the root.Diagrams · easy, medium, hard
- Binary search treesA binary search tree is a tree in which each node has at most two children.Practice · easy, medium, hard
- Heaps & priority queuesA heap is a tree-shaped structure that gives fast access to its smallest (or largest) item, and a priority queue is…Quiz · easy, medium, hard
- Graphs (representation)A graph is a set of nodes, also called vertices, joined by edges.Diagrams · easy, medium, hard
- SetsA set is a collection of items in which each item appears at most once and the order does not matter.Quiz · easy, medium, hard
Unit 7: Algorithms
17 topics · ~3 h
- Big-O notation & complexity analysisBig O notation describes how an algorithm's running time (or memory use) grows as the input size n grows.Practice · easy, medium, hard
- Linear searchLinear search finds an item in a list by checking each element in turn, starting at the first and moving to the…Practice · easy, medium, hard
- Binary searchBinary search finds a target value in a sorted list by repeatedly halving the part of the list that could still…Practice · easy, medium, hard
- Bubble sortBubble sort puts a list into order by repeatedly comparing neighbouring items and swapping any pair that is in the…Practice · easy, medium, hard
- Selection sortSelection sort puts a list into order by repeatedly finding the smallest item that is still unsorted and moving it…Practice · easy, medium, hard
- Insertion sortInsertion sort builds a sorted list one item at a time.Practice · easy, medium, hard
- Merge sortMerge sort sorts a list by splitting it in half again and again until every piece holds one item, then merging the…Practice · easy, medium, hard
- Quick sortQuick sort is a divide and conquer sorting algorithm.Practice · easy, medium, hard
- Graph traversal (BFS)Breadth-first search (BFS) explores a graph level by level.Practice · easy, medium, hard
- Graph traversal (DFS)Depth-first search (DFS) explores a graph by going as deep as it can along one path before backtracking to try other…Practice · easy, medium, hard
- Dijkstra's algorithm (shortest path)Dijkstra's algorithm finds the shortest route from one node to every other node in a weighted graph, where each edge…Practice · easy, medium, hard
- Dynamic programming basicsDynamic programming solves a problem by breaking it into smaller overlapping subproblems and storing each answer so…Quiz · easy, medium, hard
- Greedy algorithms basicsA greedy algorithm builds a solution one step at a time, always choosing the option that looks best at that moment…Quiz · easy, medium, hard
- Recursion vs. iteration tradeoffsRecursion and iteration are two ways to repeat work.Quiz · easy, medium, hard
- Tree traversal orders (pre-, in-, post-order)A binary tree is a structure where each node has at most two children, a left child and a right child.Practice · easy, medium, hard
- Hashing & collision handlingA hash table stores items so that they can be found quickly, by using a hash function to turn each key into a…Practice · easy, medium, hard
- Algorithm efficiency: reasonable vs unreasonable time & heuristicsAlgorithm efficiency describes how the number of steps an algorithm needs grows as the size of its input grows.Quiz · easy, medium, hard
Unit 8: Databases
9 topics · ~1.5 h
- Relational database conceptsA relational database stores data in tables.Quiz · easy, medium, hard
- SQL: SELECT queriesSQL, short for Structured Query Language, is the language used to ask questions of a relational database.Practice · easy, medium, hard
- SQL: WHERE/filteringThe WHERE clause in an SQL query keeps only the rows that match a condition.Practice · easy, medium, hard
- SQL: JOINsA JOIN combines rows from two tables in one query by matching a column in one table with a column in the other.Practice · easy, medium, hard
- SQL: INSERT/UPDATE/DELETESQL has commands for changing the data in a table as well as reading it.Practice · easy, medium, hard
- Database normalization (concept)Database normalisation is the process of organising tables so that each fact is stored in one place only.Quiz · easy, medium, hard
- SQL: aggregate functions (COUNT, SUM, AVG, MAX)Aggregate functions in SQL take the values from many rows and return a single value.Practice · easy, medium, hard
- NoSQL databases (concept)NoSQL databases store data in forms other than fixed relational tables, such as documents, key-value pairs, wide…Quiz · easy, medium, hard
- Keys, ER diagrams & database designA relational database stores data in tables, where each row is a record and each column is a field.Quiz · easy, medium, hard
Unit 9: Web development
5 topics · ~50 min
- HTML basicsHTML, which stands for HyperText Markup Language, describes the structure and content of a web page.Quiz · easy, medium, hard
- CSS basicsCSS, which stands for Cascading Style Sheets, controls how a web page looks.Quiz · easy, medium, hard
- The DOM (concept)The Document Object Model, or DOM, is a tree that a browser builds from an HTML page.Quiz · easy, medium, hard
- Client-side vs. server-side rendering (concept)Rendering is the step that turns data into the HTML a browser displays.Quiz · easy, medium, hard
- REST APIs (concept)A REST API exposes data as resources, each identified by a URL, and uses standard HTTP methods to act on them.Quiz · easy, medium, hard
Unit 10: Networking
9 topics · ~1.5 h
- How the internet works (overview)The internet is a worldwide network of networks that lets computers exchange data.Quiz · easy, medium, hard
- IP addresses & DNSAn IP address is a number that identifies a device on a network, and the Domain Name System (DNS) turns…Quiz · easy, medium, hard
- HTTP/HTTPS basicsHTTP, the Hypertext Transfer Protocol, is the set of rules that a browser and a web server use to request and send…Quiz · easy, medium, hard
- Client-server modelThe client-server model is a way of organising a network in which some computers, called servers, provide services…Quiz · easy, medium, hard
- Networking protocols overviewA network protocol is an agreed set of rules that defines the format and order of messages exchanged between computers.Flashcards · easy, medium, hard
- Network types, topologies & hardwareA network is a group of devices linked together so that they can share data.Quiz · easy, medium, hard
- Network layers, TCP/IP stack & packet switchingA computer network is a set of devices connected so that they can exchange data.Quiz · easy, medium, hard
- IPv4 addressing, subnet masks & CIDRAn IP address identifies a device on a network.Practice · easy, medium, hard
- Network security measures: firewalls, MAC filtering, penetration testingNetwork security protects data and devices from unauthorised access, misuse and damage.Quiz · easy, medium, hard
Unit 11: Computer architecture & systems
11 topics · ~2 h
- CPU basics (fetch-decode-execute)The central processing unit (CPU) is the part of a computer that carries out programs.Quiz · easy, medium, hard
- Memory hierarchy (cache, RAM, disk)A computer has several kinds of memory and storage arranged in a hierarchy.Quiz · easy, medium, hard
- How compilers & interpreters work (concept)A compiler translates a whole program written in a high-level language into machine code or another lower-level form…Quiz · easy, medium, hard
- Operating systems basics (processes, threads)An operating system (OS) is the software that manages a computer's hardware and gives programs a controlled way to…Quiz · easy, medium, hard
- File systems basicsA file system is the part of an operating system that organises how files are named, stored and found on a storage…Quiz · easy, medium, hard
- CPU registers & Von Neumann architectureThe central processing unit (CPU) is the part of a computer that carries out instructions.Quiz · easy, medium, hard
- Factors affecting CPU performance & embedded systemsThe performance of a CPU is the speed at which it completes work.Quiz · easy, medium, hard
- Secondary storage, RAM, ROM & virtual memoryComputer storage comes in several kinds.Quiz · easy, medium, hard
- Operating system functions & utility softwareAn operating system (OS) is the system software that manages a computer's hardware and provides a platform for…Quiz · easy, medium, hard
- Assembly language & Little Man ComputerAssembly language uses short mnemonic codes, such as LDA for load, to represent the machine code instructions that a…Practice · easy, medium, hard
- CPU scheduling algorithmsCPU scheduling decides which ready process runs next on the processor.Practice · easy, medium, hard
Unit 12: Cybersecurity
4 topics · ~40 min
- Common security threats overviewSecurity threats are attempts to steal data, damage systems or trick people into harmful actions.Flashcards · easy, medium, hard
- Encryption basics (symmetric vs. asymmetric)Encryption scrambles data so that only someone with the right key can read it.Quiz · easy, medium, hard
- Password security & hashing (concept)Passwords should never be stored in plain text, because anyone who reads the database would see every password.Quiz · easy, medium, hard
- Common vulnerability categories (concept only)A vulnerability is a weakness in software, a system or the people using them that an attacker could exploit.Quiz · easy, medium, hard
Unit 13: Software engineering
7 topics · ~1 h
- Ethical, legal & environmental impacts of computingComputing raises questions beyond whether a system works.Quiz · easy, medium, hard
- Version control concepts (Git basics)Version control records the history of a project so that changes can be tracked, compared and undone.Quiz · easy, medium, hard
- Software testing basics (unit tests)A unit test checks one small piece of code, such as a single function, in isolation by comparing its result with an…Quiz · easy, medium, hard
- Agile & software development methodologiesAgile methods are approaches to software development that deliver work in short cycles and adjust plans based on…Quiz · easy, medium, hard
- Code readability & style basicsCode readability is how easily a person can understand what a program does.Quiz · easy, medium, hard
- API design basics (concept)An API, or application programming interface, is the set of requests a program offers to other programs.Quiz · easy, medium, hard
- Functional programming (map, filter, reduce)Functional programming is a style in which programs are built from functions that take inputs and return outputs…Quiz · easy, medium, hard
Unit 14: AI/ML fundamentals
5 topics · ~50 min
- What is machine learning? (concept)Machine learning is a way of writing programs that learn patterns from data, instead of following rules that a…Quiz · easy, medium, hard
- Supervised vs. unsupervised learningSupervised learning trains a model on data that has labels, meaning the correct answer is given for each example, so…Quiz · easy, medium, hard
- Neural networks basics (concept)A neural network is a model made of layers of simple units, called neurons, each of which combines its inputs with…Quiz · easy, medium, hard
- Overfitting vs. underfitting (concept)Overfitting happens when a model learns the training data too closely, including its noise, so it performs poorly on…Quiz · easy, medium, hard
- AI ethics basicsAI ethics is the study of how artificial intelligence systems should be designed and used so that they are fair,…Quiz · easy, medium, hard
Unit 15: AP CSA
4 topics · ~40 min
- ArrayList traversal, removal and common algorithmsAn ArrayList in Java is a resizable list of objects.Practice · easy, medium, hard
- Boolean expressions: De Morgan and short-circuitA boolean expression combines values using NOT, AND and OR, and it evaluates to true or false.Practice · easy, medium, hard
- Math class, random ranges, integer division and castingThe Math class in Java provides useful methods.Practice · easy, medium, hard
- References, aliasing, null & == vs equalsIn Java, a variable that holds an object does not store the object itself.Quiz · easy, medium, hard
Unit 16: AP CSP
4 topics · ~40 min
- Lists and procedures in AP pseudocodeAP Computer Science Principles pseudocode stores collections of values in lists.Practice · easy, medium, hard
- The Internet: bandwidth, latency, fault tolerance & parallel computingThe Internet is a global network of networks that carries data between devices by splitting messages into packets.Quiz · easy, medium, hard
- Data: abstraction, metadata, overflow & round-off errorsData abstraction hides the detail of how data is stored and shows only what a user needs.Quiz · easy, medium, hard
- Digital divide, bias, crowdsourcing, licensing & PIIDigital technology affects people in different ways, and several issues matter in AP Computer Science Principles.Quiz · easy, medium, hard
Unit 17: Boolean logic
1 topic · ~10 min
Unit 18: Data representation
3 topics · ~30 min
- Two's complement & signed binaryBinary numbers can represent positive values, but computers also need negative numbers.Practice · easy, medium, hard
- Error detection: parity, checksums & check digitsWhen data is stored or sent, it can be corrupted by noise, damage or a faulty connection.Practice · easy, medium, hard
- Floating-point representationReal numbers such as 6.5 or 0.001 are stored in computers using floating-point representation.Practice · easy, medium, hard
Unit 19: Theory of computation
3 topics · ~30 min
- Finite state machinesA finite state machine is a model of a system that can be in one of a fixed number of states.Practice · easy, medium, hard
- Regular expressionsA regular expression, often shortened to regex, is a compact pattern that describes a set of strings.Practice · easy, medium, hard
- Turing machines, computability & the halting problemA Turing machine is an abstract model of computation proposed by Alan Turing in 1936.Quiz · easy, medium, hard
Unit 20: General
2 topics · ~20 min