Answer:
The sign of charge q is negative.
Explanation:
This is because electric field lines usually emanate from positive charges and terminate at negative charges. The negative charge in the hollow cavity induces a positive charge on the inner shell wall of the hollow shell which in turn induces the negative charge q on the hollow spherical shell.
Since the induced electric charge on the inner wall is positive, the electric field lines from that charge terminates at the inner charge q. Since electric field lines terminate only at negative charges, q is negative.