Graphs and Trees (AQA A-Level Computer Science): Quizzes

📚Quizzes
Graphs and Trees
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

10 questions from this quiz

Show

What are the two main components that make up a graph?

Vertices and edges

What is a weighted graph?

Graph with numerical values on edges

What distinguishes a directed graph from an undirected graph?

One-way relationships with arrows

In an adjacency list for an undirected graph, how often does each connection appear?

Twice - once in each vertex's row

What value represents 'no connection' in a weighted adjacency matrix?

Infinity symbol

Which representation uses less memory for sparse graphs?

Adjacency list

What key feature distinguishes trees from general graphs?

No cycles or loops

What is a leaf node in a tree?

A node with no children

In a binary search tree, where does a value less than the current node go?

Left branch

How many arrays are needed to implement a binary tree?

Three arrays

Join 100,000+ A-Level students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.