ICSE Class 10 Computer Applications Question 2 of 30

Solved Sample Paper 4 — Question 2

Back to all questions
2
Question

Question 1(ii)

If a = 8 and b = 4, the value of a % = b is

  1. 2
  2. 0
  3. 4
  4. 8
Answer

0

Reason — The expression a % = b is evaluated as follows:

a % = b
⟹ a = a % b
⟹ a = 8 % 4
⟹ a = 0