wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

An algorithm must terminate in


A

One iteration

No worries! We‘ve got your back. Try BYJU‘S free classes today!
B

One step

No worries! We‘ve got your back. Try BYJU‘S free classes today!
C

Finite number of steps

Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D

None of these

No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C

Finite number of steps


Explanation for correct answer:

An algorithm is a strictly defined finite sequence of well-defined statements (often called instruction or commands) that provide the solution to a problem or to a specific class of problems for an acceptable set of input values (if there are any inputs).

Thus an algorithm must terminate after a finite number of steps.

Hence the correct option is C


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
The Staffing Process
BUSINESS STUDIES
Watch in App
Join BYJU'S Learning Program
CrossIcon