MCQ
Algorithm A takes 10 steps and Algorithm B takes 15 steps to solve the same problem correctly. Which is better?
Unit-2 Computational Thinking and Algorithms
A Algorithm B, because it is longer
B Algorithm A, because it uses fewer steps
C Both are equally good
D Neither can be evaluated
Explanation

Algorithm A is more efficient because it reaches the same correct result in fewer steps.