Search Header Logo

Binary Tree and Heap Quiz

Authored by Harwin Mendoza

Education

Professional Development

Binary Tree and Heap Quiz
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 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

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?