Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Computer Science
Quiz 8: Data Abstractions
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Question 1
Multiple Choice
Suppose a binary tree contained the nodes W,X,Y,and Z,and each node had at most one child.How many terminal nodes would be in the tree?
Question 2
Multiple Choice
The table below represents a portion of a computer's main memory containing a binary tree stored row by row in a contiguous block as described in the chapter.What is the parent of the node Z?
Address
Contents
50
T
51
U
52
V
53
W
54
X
55
Y
56
Z
\begin{array} { c c } \text { Address } & \text { Contents } \\50 & \mathrm {~T} \\51 & \mathrm { U } \\52 & \mathrm {~V} \\53 & \mathrm {~W} \\54 & \mathrm { X } \\55 & \mathrm { Y } \\56 & \mathrm { Z }\end{array}
Address
50
51
52
53
54
55
56
Contents
T
U
V
W
X
Y
Z
Question 3
Multiple Choice
Which of the following is a LIFO structure?
Question 4
Multiple Choice
If a stack contained the entries w,x,y,z (from top to bottom) ,which of the following would be the contents after two entries were removed and the entry r was inserted?
Question 5
Multiple Choice
Suppose you were going to retrieve items of data that you would later need to process in the opposite order from that in which they were retrieved.Which of the following would be the best structure in which to store the items?