Asking the patient to stick out their tongue and move it side to side is an effective way to assess the function of Cranial Nerve XII (Hypoglossal).