Answer
Solution:
we know that unlike poles attract each other while like poles repel each other. In case of toy car, if the front of the toy car gets attracted to the north pole of the given magnet then it is the south pole of the bar magnet hidden inside the car and vice-versa.