8 How many nodes are searched in the worst case when the search() method is called on a Linked List?
A Searching a Linked List is done in O(log n) time because you can use tree search
B One of the benefits of a Linked List is that it can be searched in constant time
C In the worst case, the method returns an error if the data to search for is not found
D In the worst case, the data to be found is the last node of the Linked List, so all the nodes must be searched
9 The remove() method we coded in the course removes _________
A All occurences of nodes containing the data to be removed
B Only the last occurrence of a node containing the data to be removed
C The first Occurrence of a node containing the data to be removed
10 The size() and search() mthods of the Doubly-Linked List are the same as the size() and search() methods for the Singly-Linked List
A True
B False
Comments
Leave a comment