Binary Tree and Heap Quiz

Binary Tree and Heap Quiz

Professional Development

15 Qs

quiz-placeholder

Similar activities

Quiz (part 1) 🎉

Quiz (part 1) 🎉

KG - Professional Development

20 Qs

DSD III B 2021

DSD III B 2021

Professional Development

16 Qs

Sorting Quiz

Sorting Quiz

University - Professional Development

15 Qs

Blockchain Quiz 2

Blockchain Quiz 2

6th Grade - Professional Development

10 Qs

DSAquiz

DSAquiz

Professional Development

20 Qs

Hari 3 - Kuis Coding & Pengenalan AI" kelas b arif marnoto

Hari 3 - Kuis Coding & Pengenalan AI" kelas b arif marnoto

University - Professional Development

10 Qs

TDX21 Quiz

TDX21 Quiz

Professional Development

10 Qs

Programming Knowledge Quiz (Medium)

Programming Knowledge Quiz (Medium)

5th Grade - Professional Development

10 Qs

Binary Tree and Heap Quiz

Binary Tree and Heap Quiz

Assessment

Quiz

Education

Professional Development

Hard

Created by

Harwin Mendoza

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the infix expression for the operation 1*2+3?

1+2*3

1*2+3

1+(2*3)

(1*2)+3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In postfix notation, how is the expression (12*3)+4 represented?

12*3+

123*4+

12*3+4

12*34+

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator has the highest precedence?

^

*

-

+

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the left subtree of a binary search tree node supposed to contain?

Only leaf nodes

Duplicate nodes

Nodes with keys lesser than the node’s key

Nodes with keys greater than the node’s key

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when you try to insert a duplicate key in a binary search tree?

It skips the insertion

It throws an error

It replaces the existing node

It creates a new node

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a max-heap, what is true about the root node?

It is always a leaf node

It can be any value

It contains the maximum value

It contains the minimum value

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary use of heaps?

Implementing binary search trees

Implementing priority queues

Storing sorted data

Creating expression trees

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?