The statement A += B is equivalent to
- A = B + B
- A = A + B
- A = A - B
- A = B - A
Explanation
- A += B is equivalent to A = A + B.
- It's the compound assignment operator for addition.
- It takes the current value of A, adds B to it, and stores the result back into A.
Other compound operators follow the same pattern:
- A -= B → A = A - B
- A *= B → A = A * B
- A /= B → A = A / B
- A %= B → A = A % B
Related MCQs
ڈی وی ڈی کس چیز کی مثال ہے؟
- Hard disk
- Optical Disk
- Output devices
- Solis-State Storage Devices
اس سوال کو وضاحت کے ساتھ پڑھیں
ڈیٹا میں ردوبدل کو اور کیا کہا جاتا ہے؟
- Data Processing
- Data Storage
- Data Mining
- Data Retrieval
اس سوال کو وضاحت کے ساتھ پڑھیں
ورلڈ وائیڈ ویب کو رابرٹ کیلِیو کے ساتھ کس نے ایجاد کیا؟
- Tom Burne
- Tim Burner Lee
- Fred Zuckerberg
- Both a and b
اس سوال کو وضاحت کے ساتھ پڑھیں
سب سے پہلے، کمپیوٹر وائرس ------- سے بنایا گیا تھا
- China
- Pakistan
- USA
- Israel
اس سوال کو وضاحت کے ساتھ پڑھیں
ڈیڈیکیٹیڈ کمپیوٹر سے کیا مراد ہے؟
- Which is assigned one and only one task
- Which is used by one person only
- Which is meant for application software
- None of these