Filters
Question type

Study Flashcards

Array-based binary trees are the easiest to define and implement.

A) True
B) False

Correct Answer

verifed

verified

A file system is similar to a binary search tree.

A) True
B) False

Correct Answer

verifed

verified

In a tree, the root item has no parent item.

A) True
B) False

Correct Answer

verifed

verified

What is the number of nodes in a full binary tree with a height of 4?


A) 23
B) 19
C) 31
D) 47

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

Which is true about binary search trees?


A) they cannot support logarithmic insertions
B) they can support logarithmic searches
C) they don't work well for sorted collections
D) each node in the right subtree of a given node is less than that node

E) A) and B)
F) A) and D)

Correct Answer

verifed

verified

A min-heap is a binary tree in which each node is less than or equal to both of its children.

A) True
B) False

Correct Answer

verifed

verified

Which traversal type guides visits to items in the tree from left to right through the levels of the tree?


A) levelorder
B) inorder
C) preorder
D) postorder

E) B) and C)
F) A) and C)

Correct Answer

verifed

verified

What kind of tree would be useful in analyzing the syntax of a sentence?


A) binary search tree
B) sorting tree
C) parse tree
D) linear tree

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

What is the formula for determining the number of nodes in a full binary tree where H is the height of the tree?


A) 2 H - 1 + 1
B) 2 H + 1
C) 2 H + 1
D) 2 H + 1 - 1

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Which type of binary tree traversal traverses the left subtree, traverses the right subtree, and then visits the root node?


A) postorder traversal
B) inorder traversal
C) preorder traversal
D) unordered traversal

E) A) and C)
F) B) and D)

Correct Answer

verifed

verified

Showing 41 - 50 of 50

Related Exams

Show Answer