COMPUTER
Download PDF Click here
فری تیاری کیلے Whatsappجوائن کریںClick
here
چار آپشن میں سے کسی ایک پر کلک کرنے سے جواب سرخ ہو جائے گا۔
ہر ویب سرور تک _____ کے ذریعے رسائی حاصل کی جاتی ہے؟
- Cell phone
- Postal address
- IP address
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Every web server is accessed using its IP address, which uniquely identifies the server on the internet.
The domain name (like www.example.com) is often used to refer to an IP address via the Domain Name System (DNS).
- 1’s are grouped horizontally and vertically
- 1’s are grouped diagonally
- 1’s and 0’s are grouped together
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In Karnaugh Maps, 1's are grouped in powers of two (1, 2, 4, 8, etc.) horizontally or vertically to simplify Boolean expressions.
The goal is to minimize the number of terms by forming the largest possible groups of adjacent 1's.
ایک منطق کا گیٹ جو منطقی ضرب کو انجام دیتا ہے اسے ______ گیٹ کہا جاتا ہے۔
- XOR
- AND
- NOT
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
The AND gate performs logical multiplication, outputting 1 only when all its inputs are 1.
It is also known as a conjunction gate in digital logic.
- switch
- continue
- break
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
The break statement, when used inside a loop, immediately exits the loop and transfers control to the statement following the loop.
It does not terminate the entire program, only the current loop.
- Compiler will generate error
- z will be converted to long and z will be calculated as long
- y will be converted to int and z will be calculated as int
- z will be converted to long and z will be calculated as int
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In z = z + y;, since z is an int and y is long, y is converted to int (if possible) to match the type of z due to usual type conversion rules.
The result is calculated as an int, and this may cause data loss if y exceeds int range.
سی پروگرامنگ میں ، لوپ جو کم از کم ایک بار انجام دیا جاتا ہے (یہاں تک کہ اگر حالت غلط ہے) کو ______ لوپ کہا جاتا ہے۔
- do-while
- for
- while
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In a do-while loop, the body executes first, and the condition is checked afterward, ensuring it runs at least once.
This differs from for and while loops, which check the condition before executing.
سی زبان میں ، فنکشن گیٹچار () _____؟
- Reads a character from the keyboard without echo
- Requires pressing the "Enter" key after entering the character
- Reads a string until the user presses the "Enter" key
- Reads a character from the keyboard with echo
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In C, getchar() reads a single character from standard input but requires pressing "Enter" to submit the input.
The input is buffered, meaning it waits for the newline (n) before processing the character.
مندرجہ ذیل میں سے کون سا متغیر کے لئے صحیح ہے جو مطلوبہ الفاظ کے ساتھ بیان کیا گیا ہے اور سی زبان میں کسی قدر سے شروع کیا گیا ہے؟
- Can be overwritten within the scope of the variable
- Does not differ from the variable that is declared without const and initialized
- Cannot be changed within the scope of the variable during execution of the program
- Can be changed within the scope of the variable
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
A variable declared with the const keyword in C becomes read-only and its value cannot be modified after initialization.
Attempting to change a const variable will result in a compile-time error.
مندرجہ ذیل میں سے کون سی زبان میں متغیر کا نام بننے کے اہل نہیں ہے؟
- "address"
- "name"
- "age"
- "define"
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
"define" is a reserved keyword in C, used in preprocessor directives (e.g., #define) and cannot be used as a variable name.
Variable names like "address", "name", and "age" are valid as they follow C naming rules and aren't reserved.
سی پروگرامنگ میں ، پری پروسیسر ہدایات _____ کردار سے شروع ہوتی ہیں۔
- *
- %
- #
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In C programming, preprocessor directives (like #include or #define) begin with the # symbol.
These directives are processed before the actual compilation of code starts.