Which of the following is the correct definition of an algorithm ?

2025

Which of the following is the correct definition of an algorithm ?

  1. A.

    A set of instructions to perform a task

  2. B.

    A sequence of random steps

  3. C.

    A type of data structure

  4. 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.

Explore the full course: Tpsc Assistant Technical Officer