8. Which of the following is not used when determining the location of an entry in a two-dimensional array
stored in row-major order?
A. Indices B. Number of rows in the array
C. Address polynomial D. Number of columns in the array
9. Which of the following is not a means of locating an entry in a linked storage structure?
A. head pointer B. child pointer C. root pointer D. null pointer
10. 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?
A. w, x, r B. y, z, r C. r, y, z D. r, w, x
11. If a queue contained the entries w, x, y, z (from head to tail), which of the following would be the
contents after two entries were removed and the entry r was inserted?
A. w, x, r B. y, z, r C. r, y, z D. r, w, x
12. If the number of nodes in a binary tree is 2n (where n is a positive integer), then the entire tree would
contain at least
A. 2n + 1 nodes B. 22n nodes C. 2n + 1 – 1 nodes D. 2n + 2 nodes
13. If the longest path in a binary tree contained exactly four nodes, what is the maximum number of nodes
that could be in the entire tree?
A. 4 B. 7 C. 15 D. 31
14. The nodes in which of the trees below will be printed in alphabetical order by the following recursive
procedure?
def printTree (Tree):
if (Tree is not None):
print(Tree.Value)
printTree(Tree.Right)
printTree(Tree.Left)