0 — Test 593
Page 1 of 3
Question 1
Which statement about heap sort is correct?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 2
Shell sort is a generalization of which algorithm?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 3
Which statement about the C standard library function qsort() is correct?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 4
Which paradigm does merge sort follow?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 5
What two properties does a problem need for dynamic programming to be effective?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 6
For which knapsack variant does the greedy approach (taking the best value-to-weight ratio first) give an optimal solution?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 7
With coins {1, 3, 4} and an amount of 6, how many coins does the greedy approach use, and what is the optimal number?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 8
When can Dijkstra's algorithm give wrong shortest paths?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 9
Which algorithm can detect a negative-weight cycle reachable from the source?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 10
Kruskal's MST algorithm efficiently uses which data structure to detect cycles?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026