COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Search
|
|
Delete
|
|
Edit
|
|
Insert
|
Detailed explanation-1: -Basic Operations Traverse − print all the array elements one by one. Insertion − Adds an element at the given index. Deletion − Deletes an element at the given index. Search − Searches an element using the given index or by the value.
Detailed explanation-2: -Java lets us use the special [] operator to access array elements, so that arrays look as we expect.
Detailed explanation-3: -If you need the index of the found element in the array, use findIndex() . If you need to find the index of a value, use indexOf() . (It’s similar to findIndex(), but checks each element for equality with the value instead of using a testing function.)
Detailed explanation-4: -Basic operations Search-It is used to search an element using the given index or by the value.