Trees (OCR A-Level Computer Science): Quizzes
📚Quizzes
Practise the questions
15 questions from this quiz
ShowHide
Practise the questions
15 questions from this quiz
What is a tree in computer science?
What is a tree in computer science?
A hierarchical data structure of nodes
What is the root in a tree?
What is the root in a tree?
The topmost node
What is a leaf node?
What is a leaf node?
A node with no children
What is an edge in a tree?
What is an edge in a tree?
A connection between parent and child
How many children can each node have in a binary tree?
How many children can each node have in a binary tree?
At most two
In a BST, where are values less than the parent stored?
In a BST, where are values less than the parent stored?
Left child
What distinguishes a multi-branch tree?
What distinguishes a multi-branch tree?
Nodes can have more than two children
What is the time complexity for BST operations in a balanced tree?
What is the time complexity for BST operations in a balanced tree?
In array implementation, what index is the left child of node at ?
In array implementation, what index is the left child of node at ?
In array implementation, what index is the right child of node at ?
In array implementation, what index is the right child of node at ?
What is the order in post-order traversal?
What is the order in post-order traversal?
Left → Right → Root
Given tree A(B(D,E),C), what is the post-order traversal?
Given tree A(B(D,E),C), what is the post-order traversal?
D → E → B → C → A
How are nodes visited in breadth-first traversal?
How are nodes visited in breadth-first traversal?
Level by level, left to right
How to remove a BST node with two children?
How to remove a BST node with two children?
Replace with in-order successor
