AP Computer Science Principleseasymcq1 pt

If two algorithms solve a problem, the more efficient one generally

A.uses fewer steps as the input grows
B.uses more steps as the input grows
C.is always written in fewer lines
D.always runs on any device

Explanation

Core Concept

Efficiency compares growth of work.

Correct Answer

Auses fewer steps as the input grows

More Unit 3: Algorithms and Programming practice questions

Try a random question →

Practice more AP Computer Science Principles questions with full explanations

Practice Unit 3: Algorithms and Programming Questions →