BPSC COMPUTER 25 YEARS PAST PAPERS
BPSC 5
years Past Papers Click
here
چار آپشن میں سے کسی ایک پر کلک کرنے سے جواب سرخ ہو جائے گا۔
کس سافٹ ویئر ڈویلپمنٹ پریکٹس میں مسلسل انضمام اور مستقل ترسیل شامل ہے؟
- Prototyping
- Waterfall
- Agile/DevOps
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Agile/DevOps emphasizes Continuous Integration (CI) and Continuous Delivery (CD) for faster, reliable releases.
It promotes iterative development, collaboration, and automation in the software lifecycle.
صارف کی کہانیاں مندرجہ ذیل میں سے کون سے آریگرام سے اخذ کی گئی ہیں؟
- Sequence diagram
- Class diagram
- Use case diagram
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
User stories are derived from use case diagrams as they describe functional requirements from a user's perspective.
They capture interactions between users (actors) and the system.
کس قسم کا پوائنٹر کسی بھی ڈیٹا کی قسم کا پتہ اسٹور کرسکتا ہے؟
- float*
- int*
- void*
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
A void* pointer is a generic pointer that can hold the address of any data type.
Before dereferencing, it must be typecast to the appropriate pointer type.
کسی پوائنٹر کے پتے پر قیمت تک رسائی کے لئے کون سا آپریٹر استعمال ہوتا ہے؟
- []
- *
- &
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
The * operator, called the dereference operator.
It is used to access the value stored at the pointer’s address.
& gives the address, [] is for arrays, and -> accesses members of a struct via pointer.
متحرک طور پر مختص میموری کو کہاں محفوظ کیا جاتا ہے؟
- Array
- Stack
- Heap
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Dynamically allocated memory using functions like malloc or new is stored in the heap segment.
Heap memory persists until explicitly deallocated, unlike stack memory.
اسٹیک میموری اسٹورز مندرجہ ذیل میں سے کون سا فنکشن _____ کہا جاتا ہے؟
- Return addresses
- Local variables
- Parameters
- All of them
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Stack memory stores return addresses, local variables, and function parameters during a function call.
This allows the program to resume execution correctly after the function finishes.
- Do while
- For
- While
- All of them
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
for loops are ideal for iterating over rows and columns in 2D arrays with known sizes.
Nested for loops provide clear structure and indexing for accessing array elements.
جب تکرار کی تعداد پہلے سے معلوم نہیں ہوتی ہے کہ کون سا لوپ سب سے زیادہ موزوں ہے؟
- Do while
- For
- While
- All of them
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
while loop is ideal when iterations depend on a condition rather than a fixed count.
It continues looping until the condition becomes false, making it flexible for unknown iterations.
کون سا برانچنگ بیان آسانی سے گھونسلے کے پیچیدہ فیصلوں کو سنبھال سکتا ہے؟
- Switch
- If else
- Else if
- All of them
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
switch handles multiple discrete values of a variable more clearly than nested if-else statements.
It improves readability and structure in complicated decision-making scenarios.
مندرجہ ذیل میں سے کون سی سی میں معیاری بلٹین ڈیٹا ٹائپ نہیں ہے؟
- Bool
- Long
- Int
- Char
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Standard C (before C99) does not have a built-in bool type; _Bool was introduced in C99.
int, long, and char are standard primitive data types in C.