Eduqas A-Level Computer Science A500QS
Data Structures: Arrays, Records and Hash Tables
Stacks, Queues, Linked Lists and Trees
Boolean Logic and Simplification
Algorithms, Pseudo-Code and Programming Constructs
Variables, Scope, Parameters and Identifiers
Recursion and Modular Programming
Sorting Algorithms
Searching and Shortest-Path Algorithms
Big O Notation and Algorithm Efficiency
Validation, Verification and Testing
Data Compression
Programming Paradigms and Computer Languages
Systems Analysis, Maintenance and Documentation
System Design and Human-Computer Interaction
Software Engineering Tools and Translators
Computing, Society and the Law
Computer Architecture, the Processor and Assembly Language
Input, Output and Secondary Storage
Networks, Protocols and the Internet
Data Transmission and Network Performance
Number Systems and Binary Arithmetic
Data Types, Characters and Floating Point
Files, Records and File Organisation
Databases, Normalisation and Entity Modelling
SQL, Big Data and Distributed Systems
The Operating System and Its Modes
Interrupts, Memory Management and Scheduling
Types of Software System
Data Security, Cryptography and Attack
Stacks, Queues, Linked Lists and Trees
- 7 subtopics
- 21 things to know
- Component 1
What Stacks, Queues, Linked Lists and Trees covers
Stacks, Queues, Linked Lists and Trees is examined in Component 1, Programming and System Development. It covers stacks: push, pop and the stack pointer, implementing a stack in an array, queues: enqueue, dequeue and pointers, circular queues and priority queues, linked lists: nodes, pointers and the free list, binary trees: nodes, roots and leaves and traversing linked lists and trees.
The 7 subtopics
Each one has its own page.
- Stacks: push, pop and the stack pointerTerm stack pointer, stack overflow and stack underflow.Open →
- Implementing a stack in an arrayHow two stacks can share a single array and operations a stack must provide as an abstract data type.Open →
- Queues: enqueue, dequeue and pointersTwo pointers used with a linear queue, drawback of a simple linear queue held in an array and one way of avoiding wasted space in a linear queue.Open →
- Circular queues and priority queuesCircular queue and priority queue.Open →
- Linked lists: nodes, pointers and the free listLinked list, term node and free list.Open →
- Binary trees: nodes, roots and leavesRoot of a tree, leaf node and binary tree.Open →
- Traversing linked lists and treesTraversal of a linked list, three traversals of a binary tree and in-order traversal.Open →
What you need to know
Answer each one before you reveal it.
What does a dequeue operation do, and which pointers does a linear queue keep?
How is a stack held in an array?
What is a circular queue?
What is a linked list?
What is a tree?
What is a traversal?
What is a stack?
Write pseudo-code for a push operation on an array-based stack.
What is a queue?
How is the next position calculated in a circular queue?
Define the term node.
What is the root of a tree?
Describe the traversal of a linked list.
What does the push operation do?
Write pseudo-code for a pop operation on an array-based stack.
What does the enqueue operation do?
A circular queue of size 8 has its rear at index 7. State the index used by the next enqueue.
What is the start pointer of a linked list?
What is a leaf node?
Write pseudo-code for the traversal of a linked list.
Take Stacks, Queues, Linked Lists and Trees further
The same content, four other ways.
Commonly confused
Pairs that lose marks when they are blurred together.
Stack vs Queue
Stack: removing the most recently added item. Queue: removing the one that has waited longest.
Overflow vs Underflow
Overflow: a push onto a full structure. Underflow: a pop or dequeue from an empty one.
Priority queue vs Ordinary queue
Priority queue: serving the most urgent item first. Ordinary queue: serving the earliest arrival.
Questions from this topic
Each one with the model answer underneath.
- 1
What is a stack?
Model answer
A stack is a last in, first out data structure. Items are added and removed at the same end, which is called the top.
- 2
What does the push operation do?
Model answer
A push operation adds a new item to the top of the stack. The stack pointer is increased so that it addresses the new top.
- 3
What does the pop operation do?
Model answer
A pop operation removes and returns the item at the top of the stack. The stack pointer is then decreased by one.
- 4
What does the peek operation do?
Model answer
A peek operation reads the item at the top without removing it. The stack pointer is left unchanged.
- 5
Define the term stack pointer.
Model answer
The stack pointer holds the position of the current top of the stack. Every push and every pop updates the pointer.
- 6
What is stack overflow?
Model answer
Stack overflow occurs when a push is attempted on a stack that is already full. The push must be refused and an error reported.
What is inside Levo
Six ways to work the same material.
Stacks, Queues, Linked Lists and Trees revision questions
- What does Stacks, Queues, Linked Lists and Trees cover in Eduqas A-Level Computer Science?
- 7 subtopics: stacks: push, pop and the stack pointer, implementing a stack in an array, queues: enqueue, dequeue and pointers, circular queues and priority queues, linked lists: nodes, pointers and the free list, binary trees: nodes, roots and leaves and traversing linked lists and trees. Each one has its own page with questions and model answers.
- How is Stacks, Queues, Linked Lists and Trees organised?
- By the Eduqas A500QS specification, subtopic by subtopic, so it matches the order you are taught it in.
Every question in Stacks, Queues, Linked Lists and Trees, on a schedule.
Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.
Or £46 a year, about £3.83 a month. Cancel anytime.