1. : What is a circular linked list?
(A) A list where each node points to the next node
(B) A list where each node points to the previous node
(C) A list where the last node points back to the first node
(D) A list where nodes are linked in a non-linear order
2. : What is the key difference between a circular linked list and a singly linked list?
(A) A circular linked list has nodes pointing to both the next and previous nodes
(B) A circular linked list has the last node pointing to the first node
(C) A singly linked list allows traversal in both directions
(D) A singly linked list has nodes linked in a non-linear order
3. : What is the time complexity of inserting an element at the beginning of a circular linked list?
(A) O(1)
(B) O(n)
(C) O(log n)
(D) O(n log n)
4. : Which of the following operations requires traversal in a circular linked list?
(A) Inserting at the beginning
(B) Deleting from the beginning
(C) Accessing the last element
(D) Accessing the first element
5. : What is the time complexity of deleting the first element of a circular linked list?
(A) O(1)
(B) O(n)
(C) O(log n)
(D) O(n log n)
6. : In a circular linked list, each node contains:
(A) A data part and a pointer to the next node
(B) A data part and a pointer to the previous node
(C) A data part and pointers to both the previous and next nodes
(D) Only a data part
7. : How do you traverse a circular linked list?
(A) By following the pointers from one node to the next until you return to the starting node
(B) By using an index
(C) By accessing elements directly
(D) By using a stack
8. : Which of the following is the correct way to delete a node after a given node in a circular linked list?
(A) Adjust the pointer of the given node to skip the next node
(B) Adjust the pointer of the next node to point to the given node
(C) Delete the given node
(D) None of the above
9. : What is the time complexity of searching for an element in a circular linked list?
(A) O(1)
(B) O(n)
(C) O(log n)
(D) O(n log n)
10. : How do you insert a new node after a given node in a circular linked list?
(A) Set the new node’s pointer to the next node, then adjust the given node’s pointer to the new node
(B) Set the given node’s pointer to the new node, then set the new node’s pointer to the next node
(C) Set the new node’s pointer to the previous node
(D) Set the new node’s pointer to the first node
11. : Which of the following is true about the head node in a circular linked list?
(A) It contains the largest value in the list
(B) It points to the first node of the list
(C) It points to the last node of the list
(D) It is always null
12. : What is the time complexity of inserting an element at the end of a circular linked list if the tail pointer is maintained?
(A) O(1)
(B) O(n)
(C) O(log n)
(D) O(n log n)
13. : What is the key advantage of using a circular linked list over a singly linked list?
(A) It requires less memory
(B) It allows traversal starting from any node
(C) It is easier to implement
(D) It has faster access to elements
14. : Which of the following operations is possible with a circular linked list but not with a singly linked list?
(A) Insertion at the beginning
(B) Deletion from the beginning
(C) Traversing in reverse order
(D) Traversing starting from any node
15. : What is the time complexity of accessing the nth element in a circular linked list?
(A) O(1)
(B) O(n)
(C) O(log n)
(D) O(n log n)
16. : Which of the following statements is true about circular linked lists?
(A) They can be traversed in both directions
(B) They use more memory than doubly linked lists
(C) They allow efficient insertion and deletion from both ends
(D) They allow efficient traversal starting from any node
17. : How do you find the length of a circular linked list?
(A) By traversing the list and counting the nodes until you return to the starting node
(B) By accessing the length property
(C) By using a counter variable during insertion and deletion
(D) Both A and C
18. : In a circular linked list, what is the term used for the last node?
(A) Head
(B) Tail
(C) End
(D) Final
19. : What happens if you try to delete a node from an empty circular linked list?
(A) The list becomes undefined
(B) The list becomes null
(C) An error occurs
(D) Nothing happens
20. : Which of the following best describes a node in a circular linked list?
(A) It contains a value and two pointers
(B) It contains a value and a pointer to the next node
(C) It contains only a value
(D) It contains a value and a pointer to the previous node