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

Question : What is a Linked List?

Solution :
469020260611034426 Correct Answer : Linear data structure of nodes connected by links

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : In a Singly Linked List, each node contains:

Solution :
688820260611034353 Correct Answer : Data and next pointer

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : The first node of a linked list is called:

Solution :
78120260611034303 Correct Answer : Head

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : The last node in a Singly Linked List contains:

Solution :
276920260611034219 Correct Answer : NULL in next pointer

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Which memory allocation is used in Linked Lists?

Solution :
195920260611034151 Correct Answer : Dynamic

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Which operation is faster in Linked List compared to Array?

Solution :
562820260611034105 Correct Answer : Insertion at beginning

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Which pointer stores the address of the first node?

Solution :
337820260611034026 Correct Answer : Head

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : A node in a linked list consists of:

Solution :
861920260611033945 Correct Answer : Data and pointer(s)

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Linked Lists are suitable when:

Solution :
695820260611033853 Correct Answer : Frequent insertion/deletion occurs

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Which data structure uses LIFO principle?

Solution :
972320260611033822 Correct Answer : Stack

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : In a Doubly Linked List, each node contains:

Solution :
152320260611033736 Correct Answer : Two pointers

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : The previous pointer of the first node in a Doubly Linked List is:

Solution :
923020260611033654 Correct Answer : NULL

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Which linked list allows traversal in both directions?

Solution :
818820260611033542 Correct Answer : Doubly Linked List

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : In a Circular Linked List, the last node points to:

Solution :
76720260611033504 Correct Answer : Head node

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Time complexity of insertion at the beginning of a Singly Linked List:

Solution :
737920260611033405 Correct Answer : O(1)

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Searching an element in a Linked List requires:

Solution :
121420260611033335 Correct Answer : O(n)

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Which linked list has no NULL pointer?

Solution :
176720260611033302 Correct Answer : Circular Linked List

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Which structure uses more memory?

Solution :
284920260611033222 Correct Answer : Doubly Linked List

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : The address of the next node is stored in:

Solution :
200220260611033137 Correct Answer : Link field

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Which operation is difficult in Singly Linked List?

Solution :
222220260611033102 Correct Answer : Backward traversal

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Time complexity to delete a node when its address is known in a Singly Linked List:

Solution :
183520260611032746 Correct Answer : O(n)

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Which linked list is most suitable for implementing browser back and forward buttons?

Solution :
266920260611032655 Correct Answer : Doubly Linked List

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Detecting a loop in a linked list is commonly done using:

Solution :
481120260611032556 Correct Answer : Floyd's Cycle Detection Algorithm

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : In Circular Doubly Linked List, the previous pointer of the head points to:

Solution :
88720260611032457 Correct Answer : Last node

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : The main disadvantage of Linked Lists compared to Arrays is:

Solution :
166720260611032403 Correct Answer : Extra memory for pointers

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Which linked list is best for implementing a music playlist with repeat mode?

Solution :
521320260611032257 Correct Answer : Circular Linked List

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : What is the time complexity of accessing the nth node in a Singly Linked List?

Solution :
995120260611032205 Correct Answer : O(n)

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Which of the following supports efficient deletion from both ends?

Solution :
663420260611031902 Correct Answer : Circular Doubly Linked List

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : Which linked list is commonly used in implementing Deque (Double Ended Queue)?

Solution :
376520260611031812 Correct Answer : Doubly Linked List

Description -

Data Structures and Algorithms : Linked List (Test 1)

Question : If a Circular Linked List contains only one node, then:

Solution :
808420260611031722 Correct Answer : Next pointer points to itself

Description -

Data Structures and Algorithms : Linked List (Test 1)