Binary Trees A2 CS

Binary Trees A2 CS

11th - 12th Grade

23 Qs

quiz-placeholder

Similar activities

COMP 210 - Help for MDTM 2

COMP 210 - Help for MDTM 2

12th Grade

20 Qs

PTS KELAS 9

PTS KELAS 9

9th - 12th Grade

20 Qs

ASESMEN TENGAH SEMESTER 1

ASESMEN TENGAH SEMESTER 1

9th Grade - University

25 Qs

Pengenalan Topologi Jaringan

Pengenalan Topologi Jaringan

11th Grade

20 Qs

Test Formatif Informatika Kelas 11

Test Formatif Informatika Kelas 11

11th Grade

20 Qs

10.4 Intro. to Abstract Data Types (ADT) Cambridge iAS 9618

10.4 Intro. to Abstract Data Types (ADT) Cambridge iAS 9618

11th Grade

20 Qs

Basics of computer

Basics of computer

12th Grade

20 Qs

CSP 1.4 Vocab

CSP 1.4 Vocab

9th - 12th Grade

20 Qs

Binary Trees A2 CS

Binary Trees A2 CS

Assessment

Quiz

Computers

11th - 12th Grade

Hard

Created by

Ryan Coughlin

Used 5+ times

FREE Resource

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When adding a new node to a tree, which is not a pointer that you need

FreePtr

NewNodePtr

CurrentPtr

PreviousPtr

NextPtr

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When initialising the tree, what should the LeftPtr field have as a value?

The next index in the list

NullPtr

The RootPtr

The size of the array

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#When adding a new node to the tree:


IF TurnedLeft = TRUE

THEN

Tree [________] .Left Pointer <- NewNodePtr

FreePtr

CurrentPtr

PreviousPtr

NullPtr

RootPtr

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#When adding a new node to the tree:


Tree[_______] .Data <- Newitem

FreePtr

CurrentPtr

PreviousPtr

NewNodePtr

RootPtr

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#When adding a new node to the tree:


WHILE ThisNodePtr <> ________// while not a leaf node

FreePtr

CurrentPtr

PreviousPtr

NullPtr

RootPtr

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#When adding a new node to the tree:


IF Tree[ThisNodePtr] .Data > Newitem THEN

TurnedLeft <- TRUE

ThisNodePtr <- Tree [________].LeftPointer

FreePtr

ThisNodePtr

PreviousPtr

NullPtr

RootPtr

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#When adding a new node to the tree:


________ <- ThisNodePtr // remember this node

FreePtr

ThisNodePtr

PreviousPtr

NullPtr

RootPtr

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?