MCQ
Two algorithms solve the same problem. Which one is more efficient?
Unit-2 Computational Thinking and Algorithms
A
The one with more steps
B
The one that uses fewer steps and less time
C
The one that is longer to read
D
The one that uses more memory without reason
Explanation
The more efficient algorithm accomplishes the task with fewer steps and less time.
Related MCQs
What is the result of NOT (FALSE)?
Unit-2 Computational Thinking and Algorithms
View
Ali wants to plan a birthday party. He splits the work into arranging the venue, the cake, and the games. Which computational thinking skill is he using?
Unit-2 Computational Thinking and Algorithms
View
What are the four main techniques involved in computational thinking?
Unit-2 Computational Thinking and Algorithms
View
In Boolean logic, the AND operator gives TRUE only when:
Unit-2 Computational Thinking and Algorithms
View
Which keyword is commonly used in pseudocode to get input from the user?
Unit-2 Computational Thinking and Algorithms
View
The efficiency of an algorithm refers to:
Unit-2 Computational Thinking and Algorithms
View