When writing an algorithm, which is closest to how selection is used?

(1 point)
Responses

to randomize results

to randomize results

to repeat a step

to repeat a step

to ask a question

to ask a question

to test for bugs

to test for bugs
Skip to navigation

1 answer

The closest response to how selection is used in an algorithm is:

to ask a question

Selection in algorithms typically involves making decisions based on conditions, which can be thought of as asking a question (e.g., if a condition is true or false).