The figure shows the graph of a periodic function f in the xy-plane what is the frequency of f?
A) 0.5
B) 2
C) 3
D) 8

Frequency is the reciprocal of period.
Period is the time it takes to complete one wave.
Then the period is T = 0.5 and F = 1/T = 2.