Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 1 1 In copying a binary tree, if you use just the value of the pointer of the root node, you get a _

QUESTION 11
In copying a binary tree, if you use just the value of the pointer of the root node, you get a ____ copy of the data.
a.
local
b.
deep
c.
static
d.
shallow
4 points
QUESTION 12
To describe a queuing system, we use the term ____ for the object receiving the service.
a.
server
b.
provider
c.
customer
d.
receiver
4 points
QUESTION 13
A queue is a First In First Out data structure.
True
False
4 points
QUESTION 14
Duplicates are allowed in a binary search tree.
True
False
4 points
QUESTION 15
What is the output of the following code?
queueType queue;
int x, y;
x =2;
y =6;
queue.addQueue(x);
queue.addQueue(y);
x = queue.front();
queue.deleteQueue();
queue.addQueue(x +2);
queue.addQueue(x);
queue.addQueue(y -3);
while (!queue.isEmptyQueue())
{
cout << queue.front()<<"";
queue.deleteQueue();
}
cout << endl
a.
6233
b.
6242
c.
6333
d.
6423
4 points
QUESTION 16
The operations to do inorder, preorder, and postorder traversals of a binary search tree are the same as those for a binary tree.
True
False
4 points
QUESTION 17
All binary tree traversals start at the left-most child node.
True
False
4 points
QUESTION 18
When a stack is implemented as an array, the array is empty if the value of stackTop is ____.
a.
zero
b.
one
c.
nonzero
d.
equal to the size of the array
4 points
QUESTION 19
Every node in a binary tree has ____ pointers.
a.
one
b.
two
c.
three
d.
four
4 points
QUESTION 20
The ____ of a node in a binary tree is the number of branches on the path from the root to the node.
a.
height
b.
size
c.
level
d.
width

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 1 Lnai 9851

Authors: Paolo Frasconi ,Niels Landwehr ,Giuseppe Manco ,Jilles Vreeken

1st Edition

3319461273, 978-3319461274

More Books

Students also viewed these Databases questions

Question

Write a letter asking them to refund your $1,500 down payment.

Answered: 1 week ago