Binary Tree and Heap Quiz

Binary Tree and Heap Quiz

Professional Development

15 Qs

quiz-placeholder

Similar activities

Advanced Data Analytics Backup

Advanced Data Analytics Backup

Professional Development

15 Qs

Kuiz TB PKD Kluang

Kuiz TB PKD Kluang

Professional Development

14 Qs

Test - Big Data Analytics

Test - Big Data Analytics

Professional Development

20 Qs

Blood-tutorial 3

Blood-tutorial 3

Professional Development

20 Qs

movie trivia

movie trivia

1st Grade - Professional Development

15 Qs

HALLOWEEN MOVIES

HALLOWEEN MOVIES

1st Grade - Professional Development

18 Qs

PRODUCTION TECHNOLOGY

PRODUCTION TECHNOLOGY

University - Professional Development

15 Qs

Week 1 Quiz ATS

Week 1 Quiz ATS

Professional Development

20 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?