Which of the following is the correct definition of an algorithm ?
2025
Which of the following is the correct definition of an algorithm ?
- A.
A set of instructions to perform a task
- B.
A sequence of random steps
- C.
A type of data structure
- D.
A program written in a high-level language
Attempted by 238 students.
Show answer & explanation
Correct answer: A
An algorithm is a step-by-step procedure or set of instructions designed to perform a specific task or solve a particular problem. It provides a clear sequence of actions that must be followed to achieve the desired outcome efficiently.