If $+q$ charge is placed at the cavity center, an equal and opposite charge $-q$ is induced on the inner surface of cavity.
If $+q$ charge is at center then negative charge distribution will be symmetric else the density of negative charge will be more in the side closer to the $+q$ charge.