BPSC COMPUTER 25 YEARS PAST PAPERS
BPSC 5
years Past Papers Click
here
چار آپشن میں سے کسی ایک پر کلک کرنے سے جواب سرخ ہو جائے گا۔
کون سی خصوصیت اعلی سطحی ڈیزائن پر زور دے کر پیچیدگی کو آسان بناتی ہے؟
- Polymorphism
- Abstraction
- Inheritance
- All of them
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Abstraction hides implementation details and focuses on high-level design concepts.
It helps manage complexity by showing only essential features to the user.
ایسی خصوصیت جو مختلف کلاسوں کی اشیاء کو ایک ہی پیغام پر مختلف انداز میں جواب دینے کے قابل بناتی ہے؟
- Polymorphism
- Abstraction
- Inheritance
- All of them
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Polymorphism allows different classes to respond uniquely to the same function or message.
It enhances flexibility and code reusability in object-oriented programming.
مندرجہ ذیل میں سے کون سا رسائی کو کنٹرول کرکے کسی شے کے داخلی اعداد و شمار کی حفاظت سے متعلق ہے؟
- Polymorphism
- Encapsulation
- Inheritance
- All of them
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Encapsulation hides an object’s internal data and exposes only necessary methods.
It controls access to data, ensuring integrity and security.
کون سا شیڈولنگ الگورتھم بھوک کا شکار ہے؟
- FCFS
- Round Robin
- Shortest Job Next
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
FCFS schedules processes in the order they arrive, ensuring every process eventually executes.
It is simple and fair, making it least prone to starvation compared to SJN or priority-based methods.
کون سا شیڈولنگ الگورتھم بھوک کا شکار ہے؟
- FCFS
- Round Robin
- Shortest Job Next
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
SJN favors shorter jobs, so long jobs may wait indefinitely, causing starvation.
FCFS and Round Robin are more fair, reducing the risk of starvation.
تعطل کے لئے مندرجہ ذیل میں سے کون سا ضروری شرط ہے؟
- Circular Wait
- Mutual Exclusion
- Hold and Wait
- All of them
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
For a deadlock to occur in an operating system, four necessary conditions
(known as the Coffman conditions).
- Mutual Exclusion
- Hold and Waite
- No Preemption
- Circular Wait
Last updated 15-feb-2026
ڈیڈ لاک کے لئے کون سی ضروری شرط نہیں ہے؟
- Preemption
- Mutual Exclusion
- Hold and Wait
- Circular Wait
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Deadlock requires mutual exclusion, hold and wait, and circular wait, but preemption is not necessary.
Preemption can actually help prevent or resolve deadlocks by forcibly reallocating resources.
ڈیڈ لاک کا پتہ لگانے کے لئے کون سا الگورتھم استعمال ہوتا ہے؟
- LRU
- Banker's Algorithm
- FIFO
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Banker's Algorithm is used to detect and avoid deadlocks by simulating resource allocation.
It ensures the system remains in a safe state before granting resources.
کون سا طریقہ ہم آہنگی کے کنٹرول میں باہمی خارج کو یقینی بناتا ہے؟
- RAID
- Paging
- Mutex
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
A mutex (mutual exclusion object) ensures that only one process accesses a shared resource at a time.
It prevents race conditions in concurrent programming.
کون سی شیڈولنگ پالیسی ہر عمل کو ایک مقررہ ٹائم سلاٹ دیتی ہے؟
- Round Robin
- FCFS
- SJF
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Round Robin assigns each process a fixed time slice (quantum) for execution.
It ensures fair CPU sharing among all ready processes in a cyclic order.