Do you have the polarity incorrect here? Current flows from + (long bar of the battery symbol) to - , thus in your example "(a) mechanical switch, (b) NPN transistor switch, (c) PNP transistor switch." the pnp and npn examples are the wrong way round.
Mike G
Mike G