
90. OCR A Level (H446) SLR14 – 1.4 Data structures part 4 – Tree

Quiz
•
Computers
•
11th Grade
•
Medium

James Cole
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a tree in computer science?
A programming language
A data structure consisting of nodes and pointers
A type of function
A hardware component
Answer explanation
A tree in computer science is a data structure consisting of nodes and pointers, allowing for hierarchical organization of data.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is at the top of a tree data structure?
Leaf node
Root node
Pointer
Edge
Answer explanation
The correct choice is the Root node, which is located at the top of a tree data structure and serves as the starting point for traversing the tree.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are nodes at the very bottom of the tree called?
Root nodes
Subtrees
Child nodes
Leaf nodes
Answer explanation
Leaf nodes are the nodes at the very bottom of the tree, making them the correct choice for this question.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a binary tree?
A tree with binary data
A tree made of binary numbers
A tree where each node can have zero, one, or two pointers
A tree where each node can have up to 3 pointers
Answer explanation
A binary tree is a tree where each node can have zero, one, or two pointers, distinguishing it from trees with up to 3 pointers.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can binary trees be represented in memory?
As binary numbers
Through linked lists
With dictionaries in Python
Using stacks
Answer explanation
Binary trees can be represented in memory using dictionaries in Python, where each node is stored as a key-value pair with references to its children nodes.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a common use of binary trees in computer science?
Generating random numbers
Database applications for efficient searching and sorting
Designing websites
For creating visual effects in games
Answer explanation
Binary trees are commonly used in computer science for database applications to efficiently search and sort data, making them a crucial data structure for this purpose.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a subtree?
A binary tree within another binary tree
The first half of a tree
A set of nodes and edges from any single node down through all of its descendants
A small tree data structure
Answer explanation
A subtree is a set of nodes and edges from any single node down through all of its descendants.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Berpikir Komputasional

Quiz
•
9th Grade - University
20 questions
10.4 Intro. to Abstract Data Types (ADT) Cambridge iAS 9618

Quiz
•
11th Grade
20 questions
Abstract Data Types

Quiz
•
11th Grade
20 questions
A-level binary tree algorithms

Quiz
•
11th Grade
10 questions
Star & Mesh Networks

Quiz
•
9th - 12th Grade
14 questions
Network Topology

Quiz
•
11th Grade
15 questions
Week 11 Networks and Routing

Quiz
•
10th Grade - Professi...
18 questions
Linked List

Quiz
•
KG - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade