Before going to answer this question first we have to know the fundamental principle of magnetism.
A magnet have two poles .The important characteristic of a magnet is that like poles will repel each other while unlike poles will attract each other.
Through this concept the question can be answered as explained below-
A-As per first option the side of magnet A is repelled by the south pole of magnet B. Hence the pole of a must be south .It can't be north as it will lead to attraction.
B-The side of magnet A is repelled by the north pole of magnet B. Hence the side of A must be north pole.It can't be a south pole.
C-The side of magnet A is attracted by the south pole of magnet B .Hence the side of magnet A must be north.Hence this is right
D-The side of magnet A is attracted by the north pole of magnet B. Hence the side of A must south.It can't be north as it will lead to repulsion.
Hence the option C is right.