frequency is the no. of oscillations per second. since the spring is shaken 10 times per second in a wavy manner, so its frequency is 10Hz.
time period is the time taken to complete one oscillation. here, 10 oscillation produced in one second, so time taken in one oscillation is I/10 i.e., 0.1 sec.