Heap Sort

Heap Sort

12th Grade

11 Qs

quiz-placeholder

Similar activities

Heap and Search Tree

Heap and Search Tree

12th Grade

11 Qs

APCS Unit 8

APCS Unit 8

12th Grade

10 Qs

APCSA Final

APCSA Final

12th Grade

10 Qs

Computer Science AP

Computer Science AP

12th Grade

10 Qs

Processing Arrays

Processing Arrays

10th - 12th Grade

10 Qs

Arrays and Lists

Arrays and Lists

6th - 12th Grade

10 Qs

Algorithm Intro

Algorithm Intro

9th Grade - University

14 Qs

TA - Corte 2

TA - Corte 2

12th Grade

15 Qs

Heap Sort

Heap Sort

Assessment

Quiz

Computers

12th Grade

Medium

Created by

romaysa i

Used 3+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a binary tree?

A structure with nodes connected by edges

A tree that maintains a specific order between parent and child nodes.

A sublist created from values in an array

2.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

How many children can each node have?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the root node in a binary tree?

The node with no parent

The node with no children

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is a heap?

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does heapify do?

Bring the greatest number to the top of the heap

Move the greatest number to the bottom of the heap

Remove the greatest number from the bottom of the heap

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens to a number after it's removed from a heap?

It gets sorted into its place in the array

It gets moved to the end of the array

It moves to the beginning of the array

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the notation for heap sort's best-case scenario?

O(n log n)

O(n log 2)

O(log n)

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?