MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

ALGORITHMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which one of the following statements is NOT a characteristic of good algorithm?
A
Ambiguous.
B
Precise.
C
Finite number of steps.
D
Logical flow of control.
Explanation: 

Detailed explanation-1: -Algorithms must terminate after a finite number of steps.An algorithm should not be infinite and always terminate after definite number of steps. There is no point in developing an algorithm which is infinite as it will be useless for us.

Detailed explanation-2: -Characteristics of an Algorithm Input − An algorithm should have 0 or more well-defined inputs. Output − An algorithm should have 1 or more well-defined outputs, and should match the desired output. Finiteness − Algorithms must terminate after a finite number of steps.

Detailed explanation-3: -Unambiguity, fineness, effectiveness, and language independence are some of the characteristics of an algorithm.

Detailed explanation-4: -Presence of ambiguity. The algorithm does not produce a valid output.

There is 1 question to complete.