• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
The statement A += B is equivalent to
  1. A = B + B
  2. A = A + B
  3. A = A - B
  4. 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 -= BA = A - B
  • A *= BA = A * B
  • A /= BA = A / B
  • A %= BA = A % B

Related MCQs

  1. Star Topology
  2. Bus Topology
  3. Ring Topology
  4. Mesh Topology
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. Integration Testing
  2. Unit Testing
  3. System Testing
  4. Acceptance Testing
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. True
  2. False
  3. Partially True
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. Input → Processing → Output → Storage
  2. Processing → Input → Storage → Output
  3. Storage → Input → Processing → Output
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. --
  2. ++
  3. +=
  4. **
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com