COMPUTER
Download PDF Click here
فری تیاری کیلے Whatsappجوائن کریںClick
here
چار آپشن میں سے کسی ایک پر کلک کرنے سے جواب سرخ ہو جائے گا۔
سی پروگرامنگ میں کون سا لوپ ڈھانچہ دستیاب نہیں ہے؟
- Do-until
- For
- While
- Do-while
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
do-until is not a valid loop structure in C programming.
C provides for, while, and do-while loops for iteration.
مشروط آپریٹر ______ کا متبادل ہے؟
- If
- Nested-if
- If-else
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
The conditional operator (? :) is a shorthand for the if-else statement.
It evaluates a condition and returns one value if true, another if false.
- String variable
- Character variable
- Integer variable
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
The format specifier %c is used in scanf to read a single character.
So, km must be a character variable, e.g., char km;.
کون سا فرار کی ترتیب موجودہ لائن کے آغاز میں کرسر کو منتقل کرتی ہے؟
- \r
- \n
- \b
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
r is the carriage return escape sequence, which moves the cursor to the beginning of the current line.
It does not move to the next line, unlike n (newline).
- 4
- 5
- 3
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In C, 9 and 4 are integers, so 9 / 4 = 2 (integer division, fractional part is discarded).
Then, 2 * 2 = 4
کون سا ڈیٹا ٹائپ اعلی صحت سے متعلق پیش کرتا ہے؟
- Unsigned long int
- Long double
- Float
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
long double provides higher precision than double and float for storing real numbers.
It allows more digits after the decimal point, making it suitable for high-accuracy calculations.
کون سی ہیڈر فائل میں عام ریاضی کے افعال کے بارے میں معلومات شامل ہیں؟
- math.h
- maths.h
- stdo.h
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
math.h is the standard C/C++ header file that contains declarations for common mathematical functions like sqrt(), pow(), sin(), etc.
It must be included when using built-in math operations in programs.
مطلوبہ الفاظ _____ "اگر" بیان کے ساتھ دو مختلف انتخاب کی وضاحت کرنے کے لئے استعمال ہوتا ہے۔
- If
- Else
- Switch
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
The else keyword is used to provide an alternative block of code if the if condition is false.
It works with if to handle two different choices in decision-making.
غیر معمولی اعداد و شمار کی ایک مثال _____ ہے؟
- Bank balance
- Roll number
- Address
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Address consists of text (street, city, etc.).
It is non-numerical.
Marks, bank balance, and roll number are numerical values.
ڈوس میں استعمال ہونے والے انٹرفیس کو _____ کہا جاتا ہے؟
- Command-Line Interface (CLI)
- Graphical User Interface (GUI)
- Application Programming Interface (API)
- Scripting Interface (SI)
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
A command-line interface is used by DOS systems.
By typing a program's filename at the command prompt, a program can be launched.