COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Insertion
|
|
Deletion
|
|
Traversing
|
|
Searching
|
Detailed explanation-1: -Traversing: accessing each record/node exactly once so that certain items in the record may be processed.
Detailed explanation-2: -Traversing a data structure means: “visiting” or “touching” the elements of the structure, and doing something with the data. (Traversing is also sometimes called iterating over the data structure)
Detailed explanation-3: -To traverse an array means to access each element (item) stored in the array so that the data can be checked or used as part of a process. In most high-level languages, it is necessary to create a variable that will track the position of the element currently being accessed.
Detailed explanation-4: -46) Which of the following operations accesses each record exactly once? Answer: (C) Explanation: In traversing, we access each record or data exactly once.