Search Header Logo

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

Authored by James Cole

Computers

11th Grade

Used 2+ times

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

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?