I need to clear my doubt with you that only 35 names of the prophets are given in the Quran although there are 124000 prophets came.why all the names are not given in it , while it is said that quran has answer to every question.

It's not compulsory to know all prophets names. Also Quran is only responsible to answer those questions that are related to guidance