In the following code for the __init__ method for the linked binary search tree, what is the missing code?
def __init__(self, sourceCollection = None): AbstractCollection.__init__(sourceCollection)

A. self.root = sourceCollection
B. self.root = None
C. sourceCollection.__init__(AbstractCollection)
D. self.leaf = root

Answer: B

Computer Science & Information Technology

You might also like to view...

A ________ uses cables, radio waves, or infrared signals to link computers or peripherals, such as printers, within a small geographic area.

a. LAN b. WAN c. MAN d. CAN

Computer Science & Information Technology

What is shared system memory?

A) Memory used by the processor and the chipset simultaneously B) RAM used as storage space C) Storage space used as RAM D) Memory shared between the motherboard and the video adapter

Computer Science & Information Technology