Exam 8: Data Abstractions

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

What is the distinction between a user-defined data type and an abstract data type?

(Essay)
4.9/5
(37)

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?

(Multiple Choice)
5.0/5
(28)

Which of the following is not a means of locating an entry in a linked storage structure?

(Multiple Choice)
4.9/5
(42)

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?

(Multiple Choice)
4.8/5
(36)

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?

(Multiple Choice)
4.8/5
(28)

The following represents a portion of a computer's main memory. Address Contents 50 51 51 56 52 53 53 57 54 58 55 50 56 57 57 52 58 53 A.What would be stored at address 50 after executing the instruction "Copy the contents of the memory cell at address 54 to address 50"? B.What would be stored at address 50 after executing the instruction "Copy the contents of the memory cell pointed to by the cell at address 54 to address 50"?

(Short Answer)
4.7/5
(28)

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 53,draw a picture of the tree showing the data in each node? Address Contents 50 51 56 52 00 53 54 00 55 50 56 57 00 58 00

(Essay)
4.8/5
(27)

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)

(Multiple Choice)
4.8/5
(34)

The table below represents a portion of a computer's main memory containing a linked list.Each list entry consists of two cells,the first being data and the second being a pointer to the next list entry.If the null pointer is represented by 00 and the list's head pointer contains 56,what are the data entries in the list? (List the entries in the order they occur in the list.) Address Contents 50 AA 51 00 52 BB 53 58 54 CC 55 50 56 DD 57 54 58 EE 59 00

(Short Answer)
4.9/5
(41)

The table below represents a portion of a computer's main memory containing a linked list.Each entry consists of two cells,the first being data,the second being a pointer to the next entry.If the null pointer is represented by 00 and the list's head pointer contains 52,modify the memory cells so the data at address 56 is inserted at the end of the list. Address Content 50 51 00 52 53 58 54 55 00 56 57 00 58 59 54

(Essay)
4.8/5
(36)

What condition indicates that a linked list is empty?

(Essay)
4.8/5
(37)

What sequence of nodes from the tree What sequence of nodes from the tree     would be printed if the following recursive procedure were applied to it? def printTree(Tree): if (Tree is not None): print(Tree.Value) printTree(Tree.Right) would be printed if the following recursive procedure were applied to it? def printTree(Tree): if (Tree is not None): print(Tree.Value) printTree(Tree.Right)

(Short Answer)
4.9/5
(37)

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 56,what data is in the left child of the root node? Address Contents 50 51 53 52 00 53 54 00 55 00 56 57 50 58 00

(Short Answer)
4.7/5
(25)
Showing 41 - 53 of 53
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)