ExamPlay Light Logo
Prisijunkite

Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 4 - No. 26)

What is the purpose of the 'flag' variable in a linear search?
To store the current position being examined in the list.
To indicate whether the search should continue or stop.
To store the value of the item being searched for.
To count the number of comparisons made during the search.

Paaiškinimas

The flag variable is used to show if the desired element is found or not during linear search.

Komentarai (0)

Prisijungti Norėdami komentuoti
Skelbimas
BrainBehindX Inc Logo
©2026; Maitinamas BrainBehindX Inc