COMPUTER
Download PDF Click here
فری تیاری کیلے Whatsappجوائن کریںClick
here
چار آپشن میں سے کسی ایک پر کلک کرنے سے جواب سرخ ہو جائے گا۔
کس قسم کا پوائنٹر کسی بھی ڈیٹا کی قسم کا پتہ اسٹور کرسکتا ہے؟
- 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.
جدید کمپیوٹرز میں دستخط شدہ عدد کی نمائندگی کرنے کے لئے مندرجہ ذیل میں سے کون سا استعمال شدہ طریقہ ہے؟
- Excess 127
- 1's complement
- 2's complement
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
2's complement allows easy addition and subtraction of signed integers without extra logic.
It eliminates the problem of having two zeros, unlike sign-magnitude or 1's complement.
- Range
- Size
- Both A and B
- None of them
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
unsigned int cannot store negative numbers, so its range shifts from -2³¹ to 2³¹-1 to 0 to 2³²-1.
The memory size remains the same (4 bytes).