1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 10
  4. The statement k += a; is equivalent to:

Added 16 Nov 2026

The statement k += a; is equivalent to:

  1. k = a;
  2. k = k + a; Correct answer
  3. k = a + 1;
  4. k = k - a;

Correct answer

B. k = k + a;

12 views

MCQSEXAM

Explanation

k += a is shorthand for k = k + a. Compound assignment operators like +=, -=, *= and /= save typing and make code cleaner. This is a common C syntax question.

Reference

Asked in: Matric,FBISE

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Science FBISE Class 10 MCQs

Practise all Computer Science FBISE Class 10 MCQs

Similar MCQs