Important MCQ

An algorithm must end after

Q.An algorithm must end after

A) no steps
B) random steps
C) infinite steps
D) a finite number of steps
Correct Answer:
Option D
Detailed Explanation:
D) a finite number of steps is correct. An algorithm is a clear, definite, effective, finite, step-by-step method for solving a problem. It is planned before coding and produces at least one output.