ISRO Computer Science (CSE) 2018 - Question 34

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2018

Consider a singly linked list of the form where F is a pointer to the first element in the linked list and is the pointer to the last element in the list. The time of which of the following operations depends on the length of the list?

Figure for question 34, ISRO Computer Science (CSE) 2018

  • A. Delete the last element of the list
  • B. Delete the first element of the list
  • C. Add an element after the last element of the list
  • D. Interchange the first two elements of the list

Answer: A. Delete the last element of the list

| | All questions of ISRO Computer Science (CSE) 2018