1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 10
  4. The output of printf("%d", 10 % 3); is:

Added 16 Nov 2026

The output of printf("%d", 10 % 3); is:

  1. 3
  2. 1 Correct answer
  3. 0
  4. 10

Correct answer

B. 1

10 views

MCQSEXAM

Explanation

% is the modulus operator, which gives the remainder. 10 divided by 3 is 3 remainder 1, so the output is 1. Modulus only works with integers.

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