Deck 12: Binary Trees
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/17
Play
Full screen (f)
Deck 12: Binary Trees
1
17.To process data using postorder processing:
A)Node is processed first,then the left branch,then the right.
B)The left branch is processed first,then the node and then the right branch
C)The left branch is processed first,then the right branch,and then the node
D)The right branch is processed first,then the node,and then the left branch.
A)Node is processed first,then the left branch,then the right.
B)The left branch is processed first,then the node and then the right branch
C)The left branch is processed first,then the right branch,and then the node
D)The right branch is processed first,then the node,and then the left branch.
C
2
7.There are teo branches from every node.
False
3
12.Given the following data,what would the root value be if the tree were transversed as NLR, (Remember the data should be in alphabetical order. ) Dave
Julie
Martha
Adam
Frank
Peter
Norman
A)Julie
B)Adam
C)Martha
D)Peter
E)Norman
Julie
Martha
Adam
Frank
Peter
Norman
A)Julie
B)Adam
C)Martha
D)Peter
E)Norman
A
4
9.There are three ways to process binary trees: Preorder,Inorder,and Postorder.
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
5
16.To process data using inorder processing:
A)Node is processed first,then the left branch,then the right.
B)The left branch is processed first,then the node and then the right branch
C)The left branch is processed first,then the right branch,and then the node
D)The right branch is processed first,then the node,and then the left branch.
A)Node is processed first,then the left branch,then the right.
B)The left branch is processed first,then the node and then the right branch
C)The left branch is processed first,then the right branch,and then the node
D)The right branch is processed first,then the node,and then the left branch.
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
6
11.A binary tree:
A)Has a root node.
B)Each node has no more than two branches.
C)Uses stacks to process the nodes.
D)Uses two extra fields for the pointers to the branches.
E)All of the above.
A)Has a root node.
B)Each node has no more than two branches.
C)Uses stacks to process the nodes.
D)Uses two extra fields for the pointers to the branches.
E)All of the above.
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
7
8.A binary tree stores data in right brances and left branches.
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
8
4.A node at a higher level is called parent.
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
9
10.Hashing is another method of storing and processing data.
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
10
1.The top of a binary tree is a branch.
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
11
18.Preorder processing is abbreviated as:
A)NLR
B)LNR
C)LRN
D)RNL
A)NLR
B)LNR
C)LRN
D)RNL
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
12
3.A binary tree is the same as a linked list.
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
13
6.Stacks are used to process a binary tree.
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
14
15.To process data using preorder processing:
A)Node is processed first,then the left branch,then the right.
B)The left branch is processed first,then the node and then the right branch
C)The left branch is processed first,then the right branch,and then the node
D)The right branch is processed first,then the node,and then the left branch.
A)Node is processed first,then the left branch,then the right.
B)The left branch is processed first,then the node and then the right branch
C)The left branch is processed first,then the right branch,and then the node
D)The right branch is processed first,then the node,and then the left branch.
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
15
2.A node on a binary tree may be a leaf.
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
16
19.Inorder processing is abbreviated as:
A)NLR
B)LNR
C)LRN
D)RNL
A)NLR
B)LNR
C)LRN
D)RNL
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck
17
5.The bottom position of the tree is called a root
Unlock Deck
Unlock for access to all 17 flashcards in this deck.
Unlock Deck
k this deck