

InterviewSolution
Saved Bookmarks
1. |
To add a new element to a list we use which command?(a) list1.add(5)(b) list1.append(5)(c) list1.addLast(5)(d) list1.addEnd(5) |
Answer» Right choice is (b) list1.append(5) For explanation: We use the function append to add an element to the list. |
|