In the photoelectric effect, the energy of the incident photon is used in part to extract the electron from the metal (and this energy is called work function) and the rest is converted into kinetic energy of the electron. In formula:
where
hf is the energy of the incident photon, which is the product between h (the Planck constant) and f (the photon's frequency)
is the work function
K is the kinetic energy of the photoelectron as it leaves the material
When matter solidifies it first go through liquid state before it becomes solid so the answer is false it does not directly turn into solid state without passing through liquid state