Note:
% is Modulus,
So it's taken as num mod 7, if that evaluates to 0 there is no reminder therefore divisible by 7.
Answer:
D
Explanation:
6
You add the values of the pins that have 5V, so 4+2=6.