solution - Data Structures and Algorithms : Linked List (Test 2)

Question : Which data structure stores elements in non-contiguous memory locations?

Solution :
720220260621060653 Correct Answer : Linked List

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Which part of a singly linked list node stores the address of the next node?

Solution :
819120260621060612 Correct Answer : Pointer

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Which pointer represents the first node of a linked list?

Solution :
817320260621060540 Correct Answer : Head

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Time complexity of insertion at the beginning of a singly linked list is:

Solution :
335220260621060502 Correct Answer : O(1)

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Which operation is easiest in a linked list compared to an array?

Solution :
619120260621060414 Correct Answer : Insertion

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : What does NULL indicate?

Solution :
53920260621060333 Correct Answer : End of linked list

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Which traversal visits every node exactly once?

Solution :
862820260621060259 Correct Answer : Sequential Traversal

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Searching an element in an unsorted linked list takes:

Solution :
191920260621060216 Correct Answer : O(n)

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Insertion after a specified node requires:

Solution :
188620260621060133 Correct Answer : Node address

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Which pointer is added in a doubly linked list?

Solution :
762320260621060059 Correct Answer : Previous

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Time complexity of insertion at end without tail pointer is:

Solution :
873920260621060019 Correct Answer : O(n)

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Deleting the first node requires updating:

Solution :
813620260621055943 Correct Answer : Head

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : In a doubly linked list, deleting a node requires updating:

Solution :
905920260621055913 Correct Answer : Both previous and next pointers

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Which linked list supports backward traversal?

Solution :
41120260621055837 Correct Answer : Doubly

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Last node of a circular linked list points to:

Solution :
807020260621055749 Correct Answer : Head

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Which operation cannot be performed directly in a singly linked list?

Solution :
403920260621055707 Correct Answer : Backward Traversal

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Space complexity per node in doubly linked list is:

Solution :
73420260621055632 Correct Answer : Two pointers

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Insertion at end in circular linked list with tail pointer is:

Solution :
436420260621055547 Correct Answer : O(1)

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Searching in doubly linked list takes:

Solution :
162920260621055526 Correct Answer : O(n)

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Circular linked list is useful for:

Solution :
328820260621055430 Correct Answer : CPU Scheduling

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : In a circular doubly linked list, head's previous pointer points to:

Solution :
293720260621055356 Correct Answer : Last Node

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : After inserting at beginning of circular linked list, which pointers must change?

Solution :
677020260621055306 Correct Answer : Head and last node

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Which linked list provides fastest deletion when node address is known?

Solution :
246020260621055216 Correct Answer : Doubly

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : If head becomes NULL after deletion, it means:

Solution :
569620260621055137 Correct Answer : Empty list

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Which linked list is most suitable for browser forward/back navigation?

Solution :
8820260621055058 Correct Answer : Doubly

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Time complexity of deleting last node in singly linked list without tail pointer is:

Solution :
574820260621055010 Correct Answer : O(n)

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Circular linked list has:

Solution :
861320260621054929 Correct Answer : No NULL pointer

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Which linked list requires maximum memory per node?

Solution :
412020260621054829 Correct Answer : Doubly

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Which operation requires traversal before insertion?

Solution :
701720260621054651 Correct Answer : Insertion after specified data

Description -

Data Structures and Algorithms : Linked List (Test 2)

Question : Which statement is true?

Solution :
652420260621054532 Correct Answer : Linked lists provide dynamic memory allocation

Description -

Data Structures and Algorithms : Linked List (Test 2)