Which of the following search algorithms is represented by the pseudocode?

index = 0

WHILE (index < number of items in the list)

{

IF (list[index] == target element)

{

RETURN index

}

index = index+1

}
(1 point)
Responses

quicksort
quicksort

linear search
linear search

hashing
hashing

binary search

1 answer

The pseudocode you provided represents linear search. In a linear search, the algorithm iterates through each element in the list one by one to check if it matches the target element. If it finds a match, it returns the index; otherwise, it continues until it has checked all items.