Skip to content

Asked in PPSC, FPSC and other one-paper exams (compiled from unofficial resources).

Data Structures & AlgorithmsTime & Space Complexity

The efficiency of an algorithm is primarily determined by which time factor?

  1. A.Measuring the compilation time
  2. B.Counting the number of lines of code
  3. C.Counting the number of key operationsCorrect answer
  4. D.Measuring the execution time in seconds

Timed quizzes, instant results, track your progress — free

Practice these MCQs in the app

Quick fact: The efficiency of an algorithm is primarily determined by counting the number of key operations.

Related MCQs

Start studying free