Lines of force come out of positive charge q suspended in cavity.
Cavity 
surface must possess a negative charge since lines of force go and terminate on q.
Therefore a charge +q must exist on outer portions. 