a.) Note that the maximum displacement is the amount the spring is pulled downwards which is 5 cm.
b.) The time required for one oscillation is the Period. You didn't specify it so we can't really say what it is.
c.) The frequency = 1/Period, i.e. frequency is the reciprocal of the Period. d.) Since the maximum displacement is 5 cm and the string was pulled downwards to start off with, the amplitude will be 5 and because it starts off downwards, we will have to make the 5 negative hence -5. The appropriate sinusoidal function to use in this case would be cosine. Now inside the brackets of cos( ) we will have 2pi/P, where P is the the period, multiplied by t, which is time. Hence the model is:f(t)=−5cos(2πPt)