1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 10
  4. The output of the following loop is: for(int i=0; i

Added 16 Nov 2026

The output of the following loop is: for(int i=0; i<3; i++) printf("%d", i);

  1. 123
  2. 12 Correct answer
  3. 123
  4. 321

Correct answer

B. 12

11 views

MCQSEXAM

Explanation

The loop runs for i = 0, 1, 2 and prints each value. So the output is 012. The condition i

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