CORRECT QUESTIONS AND VERIFIED
DETAILED ANSWERS |CURRENTLY TESTING
QUESTIONS AND SOLUTIONS|ALREADY
GRADED A+|NEWEST|BRAND NEW
VERSION!!|GUARANTEED PASS
Which of the following is not used when determining the location of an entry in a two-
dimensional array stored in row-major order?
Number of rows in the array
Suppose a binary tree contained the nodes W, X, Y, and Z. If W and X were children of Y, and Z
had no children, which node would be the root?
Y
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?
r, y, z
Most modern programming languages include a way to allocate memory, as the program runs,
to store new data items. Which of the following statements is most true?
not This should not be allowed. The programmer should know how much data is to be
processed and allocate sufficient memory when the program is written.
The nodes in which of the trees below will be printed in alphabetical order by the following
recursive procedure?
not c
The table below represents a portion of a computer's main memory containing a binary tree.
Each node consists of three cells, the first being data, the second being a pointer to the node's
left child, and the third being a pointer to the node's right child. If the null pointer is
represented by 00 and the tree's root pointer contains 50, which of the following is a picture of
the tree?
1|Page
,not a
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 left child of the
node V?
Y
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?
V
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?
Stack
Which of the following is a FIFO structure?
Queue
If the two-dimensional array X were stored in row-major order, then in the block of main
memory containing X, which of the following would be true?
The entry X[1,2] would appear before X[2,1].
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?
One
Which of the following is not a means of locating an entry in a linked storage structure?
null pointer
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?
y, z, r
Suppose a binary tree is implemented as a linked structure in which each node contains both a
left child pointer and a right child pointer. Which of the following statements is false?
2|Page
, Each terminal node in the tree is always at the end of a path that is as least as long as any other
path in the tree.
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?
15
In a machine language, the technique in which the data to be manipulated by an instruction is
included within the instruction itself is called
Immediate addressing
In a machine language, the technique in which an instruction contains the location of a pointer
to the data to be manipulated is called
Indirect addressing
Which of the following accesses a database in terms of a database model?
Application software
Which of the following relational operations extracts entire columns from a relation?
PROJECT
Given the relation X below
X: A B C
257
333
442
528
what value will be retrieved by the following query?
TEMP <-- SELECT from X where B = C
RESULT <-- PROJECT B from TEMP
3|Page