COMPUTER
Download PDF Click here
فری تیاری کیلے Whatsappجوائن کریںClick
here
چار آپشن میں سے کسی ایک پر کلک کرنے سے جواب سرخ ہو جائے گا۔
- Transitive
- Reflexive
- Symmetric
- All of them
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
An equivalence relation must be reflexive, symmetric, and transitive.
These three properties together define equivalence among elements in a set.
Which of the following is a reflexive relation? (1,2), (2,3) (1,1), (2,2), (3,3) (1,2), (2,1) All of them
- (1,2), (2,3)
- (1,1), (2,2), (3,3)
- (1,2), (2,1)
- All of them
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
A relation is reflexive if every element is related to itself.
Only the set (1,1), (2,2), (3,3) satisfies this condition.
- ~
- V
- A
- &
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
The & operator represents logical AND, returning true only if both operands are true.
It is used in Boolean expressions and bitwise operations.
- What time is it?
- 2 + 2
- X + 5 = 10
- Today is Monday
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
A proposition is a statement that is either true or false, not a question or expression.
"Today is Monday" can be evaluated as true or false, making it a proposition.
ڈسک پر کسی شے کو لکھنے کے لئے کون سی اصطلاح استعمال کی جاتی ہے؟
- Tokenization
- Serialization
- De-serialization
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Serialization is the process of converting an object into a format that can be stored or transmitted.
It allows the object to be saved to disk or sent over a network and later reconstructed via deserialization.
- Using erase()
- Automatically
- Using delete
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In C++, dynamically allocated memory with new is deallocated using delete.
delete[] is used to free memory allocated for arrays.
متعدد استثناء کو سنبھالتے وقت کونسا کیچ بلاک پہلے لکھا جانا چاہئے؟
- Order Irrelevant
- General
- Specific
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Specific exceptions should be caught before general ones to avoid being overshadowed.
Writing a general exception first can prevent specific exception blocks from executing.
کسی رعایت کے بلاک کی وضاحت کے لئے کون سا کلیدی لفظ استعمال کیا جاتا ہے؟
- Finally
- Catch
- Try
- Throw
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
The try block is used to enclose code that may generate exceptions.
Exceptions thrown inside the try block are handled by corresponding catch blocks.
جب اوور رائڈنگ فنکشن بیس اور ماخوذ طبقے میں مندرجہ ذیل میں سے کون سا ہونا چاہئے؟
- Function name
- Return type
- Both A and B
- Parameter list
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
In function overriding, the function name and return type in the derived class must be the same as in the base class.
The parameter list also remains identical, ensuring the derived class redefines the base class behavior.
جب اوورلوڈنگ افعال مندرجہ ذیل میں سے کون سا مختلف ہونا چاہئے؟
- Function name
- Return type
- Both A and B
- Parameter list
اس سوال کو وضاحت کے ساتھ پڑھیں
Explanation
Overloaded functions must have different parameter lists (number or type of parameters).
The function name remains the same, and return type does not differentiate overloaded functions.