Which of the following is also known as Rope data structure?
Options
- A. String
- B. Array
- C. Linked List
- D. Cord
D. Cord
A Rope data structure is also known as a Cord.
A Rope (Cord) is a tree-based data structure used to efficiently store and manipulate large strings.
It is especially useful when frequent insertions, deletions, and concatenations are required.
Instead of storing the entire string in one continuous memory block (like a normal string or array), it stores substrings in nodes of a binary tree.
Attempt Quiz Now:
BPSC Tre 4.0 DSA Practice Set