FPSC- Programmer (BS-17) - PMD High Yield - 2026 — Test 5
Page 1 of 3
Question 1
When does a connected undirected graph have an Euler path (one that uses every edge exactly once)?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 2
What is the postfix form of the infix expression (A + B) * C?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 3
What is the prefix form of A + B * C?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 4
In a circular queue of size n (with one slot always left empty), what is the 'full' condition?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 5
What is the time complexity of building a binary heap from n unsorted elements (bottom-up heapify)?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 6
In a 0-indexed array representation of a binary heap, where are the children of the node at index i?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 7
Which pair of traversals uniquely determines a general binary tree with distinct keys?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 8
What is the minimum number of moves to solve the Tower of Hanoi with 5 disks?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 9
How many layers do the OSI model and the classic TCP/IP (DoD) model have?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 10
Which OSI layer handles data translation, encryption, and compression?
FPSC- Programmer (BS-17) - PMD High Yield - 2026