Free Practice Quiz Question List

03 Linked Lists Online Quiz Questions

Use this free practice quiz with 20 questions to review 03 Linked Lists, test your knowledge, and prepare for your next test or exam.

20 questions
01
Choose one
1 point

Which statement best explains how linked-list nodes are stored?

  1. A

    Every node must be stored next to the preceding node in memory.

  2. B

    Nodes may be distributed throughout memory and connected by links.

  3. C

    Every node must contain a complete copy of the entire list.

  4. D

    Nodes cannot be connected unless they are stored in an array.

02
Choose one
1 point

A singly linked list uses head to identify its first node. Which sequence correctly inserts new at the front without losing the existing list?

  1. A

    Set head to null, then set new.next to head.

  2. B

    Set head to new, then set new.next to head.

  3. C

    Set new.next to head, then set head to new.

  4. D

    Set new.next to null, then set head to new.

03
True or false
1 point

A singly linked list cannot move directly backward from a node because it does not store a predecessor link.

  1. A

    True

  2. B

    False

04
Written response
1 point

What is the conventional name for the reference that identifies the first node of a linked list?

05
Fill in the blank
1 point

Complete the conceptual singly linked-node definition: a node contains for the stored element and for the link to the following node.

06
Choose one
1 point

If a singly linked list stores only a head reference, what is the time complexity of appending a new node at the end?

  1. A

    O(n)O(n)

  2. B

    O(1)O(1)

  3. C

    O(log⁡n)O(\log n)

  4. D

    O(n2)O(n^2)

07
Choose all
1 point

Which operations can take O(1)O(1) time once the relevant location is already known? Select all correct choices.

  1. A

    Inserting after a known node in a singly linked list

  2. B

    Removing a known node from a doubly linked list

  3. C

    Finding a value in an unsorted linked list

  4. D

    Deleting the head node of a singly linked list

08
True or false
1 point

In a circular linked list, a traversal that waits for current == null will not stop because the final node links back to the first node.

  1. A

    True

  2. B

    False

09
Written response
1 point

A linked list has at least 7 nodes and is accessed sequentially from the head. With zero-based indexing, how many nodes must be visited to retrieve the element at index 6?

10
Fill in the blank
1 point

In a circular singly linked list, traversal begins at , and the final node's link refers back to the first node.

11
Choose all
1 point

Which conditions generally favor an array-backed list over a linked list? Select all correct choices.

  1. A

    Elements are frequently accessed by index.

  2. B

    Traversal speed and cache locality are important.

  3. C

    Frequent insertions occur near already known nodes.

  4. D

    Memory overhead from one or more links per node should be minimized.

12
Open ended
1 point

Compare deleting a node by value in a singly linked list with deleting a known node in a doubly linked list. Explain the relevant time complexities and why the distinction between locating a node and changing links matters.

13
Choose one
1 point

Why can an array-backed list be faster in practice than a linked list even when the linked list has an O(1)O(1) insertion or deletion at a known location?

  1. A

    A linked list always has better practical performance because O(1)O(1) is faster than any array operation.

  2. B

    An array-backed list can be faster in practice because contiguous storage improves cache locality and reduces allocation and indirection costs.

  3. C

    An array-backed list cannot support insertion or deletion under any circumstances.

  4. D

    Cache locality matters only for doubly linked lists, not singly linked lists.

14
True or false
1 point

If an application must traverse a linked list backward from a node, a doubly linked list is appropriate because it stores prev links.

  1. A

    True

  2. B

    False

15
Choose one
1 point

Which pair of fields is sufficient for the basic representation of a node in a singly linked list?

  1. A

    data and next

  2. B

    data and prev only

  3. C

    head and tail only

  4. D

    index and capacity

16
Written response
1 point

In a singly linked list, what conventional value represents the fact that the final node has no successor?

17
Choose one
1 point

Which assignment order correctly inserts a new node at the front of a nonempty singly linked list?

  1. A

    head = new, then new.next = head

  2. B

    new.next = head, then head = new

  3. C

    new.next = null, then head = new

  4. D

    head.next = new, then new = head

18
Written response
1 point

What reference identifies the last node when a linked-list implementation explicitly maintains a reference to its final node?

19
Choose one
1 point

Which feature directly enables traversal from a node toward the beginning of a linked list?

  1. A

    A next link in a singly linked list

  2. B

    A tail reference in any linked list

  3. C

    A prev link in a doubly linked list

  4. D

    A size counter in any linked list

20
Choose one
1 point

A target node in a doubly linked list is already known. What is the time complexity of inserting one new node immediately before that target?

  1. A

    O(1)O(1)

  2. B

    O(log⁡n)O(\log n)

  3. C

    O(n)O(n)

  4. D

    O(n2)O(n^2)