Select the correct statements.

For a motion to be SHM it has to be periodic and oscillatory. Also, force acting on particle will be directly proportional to the displacement from mean position and will be towards it.

Hence, A and B are correct.

And there is no condition that for the oscillatory motion to be periodic or periodic motion to be oscillatory.