The first and getNext functions (the iterator) cannot be used in the remove function to find the node to remove because:
A. a class function cannot call any other class functions
B. they aren’t called directly by the client, so they don’t know what to search for
C. the first and getNext functions just return the elements within nodes, and the
remove function needs to know the address of the node to remove
D. it would be impossible to return the element using the reference parameter
C
You might also like to view...
A transfer of control occurs when:
a) a program changes from input to output, or vice versa b) a logic error occurs in a program c) a statement other than the next sequential one in the program executes d) None of the above.
The task of finding the largest number in a list can be solved in a MIMD parallel fashion using the ____ model.
A. distributed B. divide-and-conquer C. piecewise D. stepwise