CMSC 256 COURSE STUDY MATERIAL 2026
PRACTICE INSTRUCTION COMPLETE
PROBLEMS AND RESPONSES
Rather than storing values in an array, a singly linked list uses a
sequence of _______. Ans: node
◍ What is included in a linked node class definition?. Ans: A
reference to the next node and a data element
◍ What are the advantages of singly linked list over array?. Ans: -
can have infinite number of data points
- given allotted memory
- can add beginning or end of the linked list with little issue
◍ What are the disadvantages with singly linked list of nodes. Ans:
A single linked list is somewhat more difficult to implement and
understand. Removing a specific data point within the linked list
requires you delete that point and then move everything over as to not
break the link, otherwise there is a null point.
◍ What methods are used in a stack?. Ans: - push
- peek
- pop
PRACTICE INSTRUCTION COMPLETE
PROBLEMS AND RESPONSES
Rather than storing values in an array, a singly linked list uses a
sequence of _______. Ans: node
◍ What is included in a linked node class definition?. Ans: A
reference to the next node and a data element
◍ What are the advantages of singly linked list over array?. Ans: -
can have infinite number of data points
- given allotted memory
- can add beginning or end of the linked list with little issue
◍ What are the disadvantages with singly linked list of nodes. Ans:
A single linked list is somewhat more difficult to implement and
understand. Removing a specific data point within the linked list
requires you delete that point and then move everything over as to not
break the link, otherwise there is a null point.
◍ What methods are used in a stack?. Ans: - push
- peek
- pop