Trees

Trees

University

16 Qs

quiz-placeholder

Similar activities

AlgoMania Quiz

AlgoMania Quiz

University

15 Qs

SMARTICUS

SMARTICUS

University

20 Qs

Linked list 1

Linked list 1

University

20 Qs

1 Binary Search Trees

1 Binary Search Trees

University

20 Qs

DSA_Quiz_3

DSA_Quiz_3

University

20 Qs

Javascript & DOM model

Javascript & DOM model

University

18 Qs

Heaps

Heaps

University

15 Qs

A-Level Computer Science Data Structures Quiz

A-Level Computer Science Data Structures Quiz

12th Grade - University

14 Qs

Trees

Trees

Assessment

Quiz

Computers

University

Easy

Created by

Enugala Rajitha

Used 1+ times

FREE Resource

16 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • Ungraded

Enter your Rollno

Evaluate responses using AI:

OFF

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a general tree, a node can have at most

1 child

2 children

Any number of children

No children

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The depth of a node in a tree is:

Number of leaves in the tree

Number of nodes in the path from root to the node

Number of edges from the node to the deepest leaf

Always equal to height of the tree

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A tree with ‘n’ nodes has exactly how many edges?

n

n – 1

n + 1

2n

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A full binary tree is a tree in which:

Every node has 0 or 1 child

Every level must be completly filled

Every node has 0 or 2 children

All leaves are at the same level

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The maximum number of nodes in a binary tree of height h (with root at level 1) is:

2^h

2^h – 1

2^(h+1)

h^2

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which traversal method is used in expression trees to get the prefix expression?

Preorder

Postorder

Inorder

Level Order

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?