COS2611 2023 Assignment 1
(Solutions 100%)
For Discussions and explanations please contact
Crystal Indigo!
Crystal Indigo!
Providing all solutions you need anytime
+27 76 626 8187
***Questions may be different in numbering and availability***
, Question 1: Linked lists allow you to overcome the size limitations of an array
data type.
a) True
b) False
Question 2: Suppose that the pointer head points to the first node in the list, and
the link of the last node is nullptr. The first node of the linked list contains the
address of the ____ node.
a) head
b) first
c) second
d) tail
Question 3: Every node (except of the last node) in a singly linked list contains
____.
a) the next node
b) no address information
c) the address of the next node
d) the address of the previous node
Question 4: A linked list is a collection of components, called ____.
a) elements
b) nodes
c) members
d) pointers
Question 5: In a linked list, the order of the nodes is determined by the address,
called the ____, stored in each node.
a) head
b) tail
c) link
d) first
Question 6: The length of a linked list is the number of nodes in the list.
a) True
b) False
(Solutions 100%)
For Discussions and explanations please contact
Crystal Indigo!
Crystal Indigo!
Providing all solutions you need anytime
+27 76 626 8187
***Questions may be different in numbering and availability***
, Question 1: Linked lists allow you to overcome the size limitations of an array
data type.
a) True
b) False
Question 2: Suppose that the pointer head points to the first node in the list, and
the link of the last node is nullptr. The first node of the linked list contains the
address of the ____ node.
a) head
b) first
c) second
d) tail
Question 3: Every node (except of the last node) in a singly linked list contains
____.
a) the next node
b) no address information
c) the address of the next node
d) the address of the previous node
Question 4: A linked list is a collection of components, called ____.
a) elements
b) nodes
c) members
d) pointers
Question 5: In a linked list, the order of the nodes is determined by the address,
called the ____, stored in each node.
a) head
b) tail
c) link
d) first
Question 6: The length of a linked list is the number of nodes in the list.
a) True
b) False