What is an algorithm?
- A broken computer
- Only a password
- An ordered set of steps to solve a problem
- A type of screen
Answer and explanation
An ordered set of steps to solve a problem
An ordered set of steps to solve a problem
Subjects
Choose questions individually, practise online, or create a worksheet with matching answers. Counts include generated variants, not only authored originals.
An ordered set of steps to solve a problem
An ordered set of steps to solve a problem
Repeat these steps five times
Repeat these steps five times
Compare heights, put the shortest first, then the shorter of the remaining two, then the tallest. Accept any precise method that sorts all three.
Compare heights, put the shortest first, then the shorter of the remaining two, then the tallest. Accept any precise method that sorts all three.
Algorithm
Algorithm: A finite, ordered method for carrying out a task or solving a problem.
Variable
Variable: A named location or binding used to refer to a value in a program.
Constant
Constant: A value intended not to change within the relevant program context.
An index of zero refers to the first position, not the second.
Grades 6–9This product applies when the inner count is constant for each outer iteration.
Grades 8–12The upper limit is inclusive in the pseudocode here.
Grades 6–10Rules, conditions and small examples in one printable reference.
Grades 6–8Rules, conditions and small examples in one printable reference.
Grades 9–10Rules, conditions and small examples in one printable reference.
Grades 11–1220 key concepts, retrieval questions and a learning checkpoint.
Grades 5–10Trace code using a table of variable values. Do not execute unknown code to answer a worksheet question.
Grades 5–1020 key concepts, retrieval questions and a learning checkpoint.
Grades 9–12An algorithm’s complexity describes growth, not its exact runtime on every computer. Binary search requires an appropriate ordered collection.
Grades 9–12An algorithm is a clear sequence of instructions for a task.
Grades 3–6An algorithm is a clear sequence of instructions for a task.
Grades 3–6Use a small table of variable values after each statement.
Grades 7–11Use a small table of variable values after each statement.
Grades 7–11Python lists use zero-based indexing; these tasks use the displayed list only.
Grades 7–10Python lists use zero-based indexing; these tasks use the displayed list only.
Grades 7–10These examples use plain pseudocode; inclusive bounds are stated explicitly.
Grades 6–10These examples use plain pseudocode; inclusive bounds are stated explicitly.
Grades 6–10Use explicit starting values and loop boundaries.
Grades 6–10Use explicit starting values and loop boundaries.
Grades 6–10Learn core Python concepts with paper-based reasoning and small code-reading tasks.
Study HTML, CSS, JavaScript and accessible web structure without a paid bootcamp.
Learn tables, queries, joins and data modelling with original exercises.
Work through data cleaning, visualization, modelling and interpretation.
Study defensive security, privacy and risk management without offensive exploitation instructions.
Learn formulas, references, cleaning and charts for practical study and office work.