Bugging - I agree with Tweeds response - you are in serious trouble. 180° level turn (away from the mast), climb or descend as appropriate to MSA (which is only an IFR thing - but you've just gone IFR by definition of being in IMC). MSA (according to the CAA) doesn't exist in the VFR world. If still in IMC declare an emergency on the R/T.
Take that one step further - in the event of an emergency the pilot may take any action deemed necessary to deal with that emergency. If that includes entering Class A airspace then go do it....but tell somebody when you get chance (Aviate, Navigate, Communicate).
I'm actually equally inclined to agree with fmgc's account. If you've gone IMC without a suitable rating (experience, clearance or currency) then it's a 180° turn.
If your scenario is for a flight test, YOU are the (assumed) Captain of the aircraft for the test profile. If an examiner suggests anything other than the 180° turn then remind them, in writing (with a copy to
[email protected]), of "Regulation 6".
The examiner is probably, however, looking for you to over rule them, take "command" of the situation and do the turn. "Commercially viable" goes out the window when you encounter emergencies or break the law (as you are not allowed to enter cloud without that rating, clearance or currency).