India and China on Wednesday signed a record 24 agreements in key sectors, including in railways and education, on day two of Prime Minister Narendra Modi's first visit to the communist neighbour.