These are traces, not definitions. A stack takes six operations and you say what is left in it. A hash table with linear probing takes three keys that all collide and you say where the third one lands. A tree written out as a list of parent-to-child relationships is traversed in pre-order and you give the sequence. An array goes through one full pass of a bubble sort and you give the array. Every structure is written out inside its own question, so nothing depends on a diagram you cannot see.
One question is worth pointing out because it is the kind that usually has two right answers. Deleting the root of a binary search tree can promote either the largest value in the left subtree or the smallest in the right — both keep the tree ordered, and both are taught. So the question names which convention it wants, and the explanation says plainly that the other value would be correct under the other one. A question that quietly accepts one of two valid answers teaches the wrong lesson about what the algorithm requires.
The rest covers why binary search is logarithmic rather than merely fast, what actually happens when a recursion loses its base case, where a circular queue puts the next item once its rear pointer wraps round, and how Dijkstra's algorithm finds a shorter route by revising a distance it had already recorded.
The one piece of pseudocode is board-neutral: plain IF/THEN/ELSE and RETURN. Boards set their own reference languages and none of them is assumed here.
The flashcards and the written tasks carry the theory the traces lead to: why complexity is not the same as running time, what encapsulation gives a class beyond a hidden field, and why the Halting Problem is undecidable rather than merely slow to solve.
Nothing is taken from any exam board specification, past paper, mark scheme or textbook.
Zestly is an independent study tool. It is not affiliated with any exam board and it is not an exam centre.
A binary search tree is built by inserting, in this order: 10, 5, 15, 3, 7. The root is now deleted and replaced by its IN-ORDER PREDECESSOR, that is, the largest value in its left subtree. Which node moves to the root, and what becomes of the place it came from? — one of ten traced questions written for this set.
Consider the binary tree in the diagram: Root is A. A has left child B and right child C. B has left child D and right child E. C has left child F. What is the result of a pre-order traversal?
A, B, D, E, C, F
Pre-order visits Root, Left, Right. Start at A, visit left subtree (B, D, E), then right subtree (C, F). The error of visiting the root last results in a post-order traversal.
Try this quiz →Try this exam →Practice these flashcards →Try this written work →
A levels are awarded by AQA, Pearson Edexcel, OCR, WJEC/Eduqas and CCEA, and regulated by Ofqual, Qualifications Wales and CCEA Regulation, the regulators for England, Wales and Northern Ireland. Zestly is not affiliated with or endorsed by Ofqual, UCAS or any awarding body. These materials are our own and reproduce no past-paper content.