60:00
0/100 Attempted
Your Progress
Attempted 0
Correct 0
Incorrect 0
Skipped 0
Score 0
Marks 0

FPSC- Programmer (BS-17) - PMD High Yield - 2026 — Part 2 (100 Q)

Page 1 of 10

Review Skipped Questions

0
Question 1
What does the recurrence T(n) = 2T(n/2) + n solve to?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 2
What does the recurrence T(n) = 2T(n/2) + 1 solve to?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 3
What does the recurrence T(n) = T(n - 1) + n solve to?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 4
What is the maximum number of comparisons binary search needs on a sorted array of 1000 elements?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 5
Why is mid = low + (high - low) / 2 preferred over mid = (low + high) / 2?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 6
Quick sort with the first or last element as its pivot shows worst-case O(n²) behavior on which input?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 7
Which sorting algorithm is stable in its standard form?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 8
What is the time complexity of insertion sort on already sorted input?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 9
Which comparison sort performs only O(n) swaps in the worst case?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 10
What is the lower bound on the worst-case number of comparisons for any comparison-based sort?
FPSC- Programmer (BS-17) - PMD High Yield - 2026