BPSC COMPUTER PROGRAMMER PAST PAPER 17-04-2025
WhatsApp Chanel Click here
BPSC 5 years Past Papers Click here
چار آپشن میں سے کسی ایک پر کلک کرنے سے جواب سرخ ہو جائے گا۔
کون سا ڈیٹا اسٹرکچر لیفو اصول پر عمل کرتا ہے؟
- Stack
- Queue
- Linked List
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
- A Stack follows the LIFO (Last In, First Out) principle.
- The last element added to the stack is the first one to be removed.
- Elements are inserted using Push and removed using Pop operations.
- Stacks are commonly used in function calls and expression evaluation.
- It is a linear data structure.
Last verified on 10-06-2026
انٹرنیٹ میں منسلک کلائنٹ کو کون سا پروٹوکول آئی پی ایڈریس تفویض کرتا ہے؟
- DHPP
- DHHP
- DHCP
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
- DHCP automatically assigns IP addresses to devices.
- It also provides subnet mask, gateway, and DNS information.
- DHCP stands for Dynamic Host Configuration Protocol.
Last verified on 15-01-2026
اوسط معاملے میں کون سا چھنٹائی الگورتھم سب سے تیز ہے؟
- Quick Sort
- Merge Sort
- Bubble Sort
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
- Quick Sort is the fastest in the average case among the given options.
- It has an average time complexity of O(n log n).
- It uses a divide-and-conquer strategy to sort data efficiently.
Last verified on 23-06-2026
ریکارشن کے لیے کون سا ڈیٹا اسٹرکچر استعمال ہوتا ہے؟
- Graph
- Queue
- Stack
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
- Stack is used for recursion.
- Because it stores function calls in LIFO order during execution.
- Recursion works by repeatedly calling the same function.
- Each call is stored in memory until it completes execution.
Last verified on 08-06-2026
- 3
- 2
- 1
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
13 mod 5 = 3
17 mod 5 = 2
(13 × 17) mod 5 = (3 × 2) mod 5
= 6 mod 5
= 1
- 12
- 24
- 48
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
a = 3, r = 2
5th term:
3, 6, 12, 24, 48
آپ 5 کے سیٹ سے کتنے طریقوں کا انتخاب کرسکتے ہیں؟
- 25
- 5
- 10
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
The number of ways to choose 2 elements from 5 is 5C2 = 5! / (2! × 3!) = 10.
This represents the combinations where order does not matter.
آپ شیلف پر 4 الگ الگ کتابوں کا بندوبست کتنے طریقوں کا بندوبست کرسکتے ہیں؟
- 256
- 16
- 24
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
The number of arrangements of 4 distinct books is 4! = 4 × 3 × 2 × 1 = 24.
This represents all possible permutations of the books on the shelf.
- Eulerian Graph
- Cycle
- Tree
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
A connected graph with n vertices and n-1 edges is always a tree.
It has no cycles and ensures a unique path between any two vertices.
بغیر کسی سائیکل والے گراف کو _____ کہا جاتا ہے؟
- Weighted Graph
- Tree
- Bipartite Graph
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
A tree is a connected graph with no cycles.
It has n nodes and (n-1) edges, ensuring a unique path between any two nodes.