Big Java Binder Early Objects

Computing

Quiz 17 :

Tree Structures

Quiz 17 :

Tree Structures

Question Type
search
arrow
Consider the following tree diagram: img What is the size of the subtree with root R?
Free
Multiple Choice
Answer:

Answer:

D

Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img Which of the following nodes are siblings?
Free
Multiple Choice
Answer:

Answer:

C

Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img Which of the following nodes are parent nodes?
Free
Multiple Choice
Answer:

Answer:

D

Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img Which of the following nodes are child nodes?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img What is the size of this tree?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img What is the height of the subtree with root R?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
As implemented in the textbook, a tree class contains which of the following? I Node class II Root node III List of child nodes
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img Which of the following nodes are child nodes?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img Which of the following nodes are leaf nodes?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Given the Node class discussed in section 17.1 (partially shown below), select an expression to complete the isLeaf method, which is designed to return true if the node is a leaf, false otherwise. class Node { Public Object data; Public List<Node> children; ) . . Public boolean isLeaf() { Return _______________; } }
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img What is the height of this tree?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img Which of the following statements is NOT correct?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img Which of the following nodes are leaf nodes?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img Which of the following statements is NOT correct?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img What is the height of the subtree with root P?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img Which of the following nodes are root nodes?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img Which of the following statements is NOT correct?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img What is the height of this tree?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img What is the size of the subtree with root P?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Consider the following tree diagram: img Which of the following nodes are interior nodes?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
Showing 1 - 20 of 110