@excelsior_997

10. because there are only 10 perfect squares between 1 and 100 (inclusive).

why is the answer equal to the number of perfect squares in this range? because, perfect squares have odd number of divisors, hence they will be flipped an odd number of times. since the initial state was off, flipping the switch odd number of times will get it turned on.