Question 1: (1 pt)
What are the similarities and differences between pointers and iterators when dealing with linked lists?
Question 2: (1 pt)
What are the benefits behind using smart pointers and can they be used with linked lists? Justify.
Question 3: (1 pt)
How can you implement Queue class using LinkedList class using composition vs using inheritance?
Question 4: (1 pt)
Which problem solving approach is better: recursive solutions or iterative ones? Justify.
Question 5: (1 pt)
If there are multiple catch blocks for one try block and in each block the exception objects correspond to a base class and its corresponding derived class. Which catch block should appear first: the one for the base class or for the derived class? Justify.