Time Complexity | MCQs

    Q1: The time factor when determining the efficiency of the algorithm is measured by:

    الگورتھم کی کارکردگی کا تعین کرتے وقت وقت کا عنصرکس سے ماپا جاتا ہے
    • A. Counting the number of statements
    • B. Counting the number of key operations
    • C. Counting the kilobytes of algorithm
    • D. Counting Microseconds

    Q2: What is the time complexity of searching for an element in a balanced binary search tree?

    متوازن بائنری سرچ ٹری میں کسی عنصر کی تلاش میں وقت کی پیچیدگی کیا ہے؟
    • A. None of these
    • B. O(log n)
    • C. O(n)
    • D. O(1)
✅ Correct: 0 | ❌ Wrong: 0 | 📊 Total Attempted: 0