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

Binary Trees A2 CS

Quiz
•
Computers
•
11th - 12th Grade
•
Hard
Ryan Coughlin
Used 5+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
20 questions
Basics of computer

Quiz
•
12th Grade
27 questions
Priority Queues and Heapsort

Quiz
•
9th - 12th Grade
20 questions
PTS KELAS 9

Quiz
•
9th - 12th Grade
20 questions
Data Structures Through C C-21 (UNIT 5 & 6)

Quiz
•
12th Grade
20 questions
Latihan Informatika Kelas 9

Quiz
•
9th Grade - University
20 questions
Abstract Data Types

Quiz
•
11th Grade
20 questions
A-level binary tree algorithms

Quiz
•
11th Grade
20 questions
COMP 210 - Help for MDTM 2

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University